43 #ifndef _CL_BITMAP_API_H_
44 #define _CL_BITMAP_API_H_
61 (ClBitmapHandleT hBitmap, ClUint32T bitNum,
103 CL_IN ClUint32T bitNum);
164 CL_IN ClUint32T bitNum);
167 clBitmapAllBitsSet(ClBitmapHandleT hBitmap);
201 CL_IN ClUint32T bitNum);
204 clBitmapAllBitsClear(ClBitmapHandleT hBitmap);
243 CL_IN ClUint32T bitNum,
285 CL_IN void *pCookie);
323 CL_IN void *pCookie);
376 CL_OUT ClUint32T *pNumBits);
410 CL_IN ClUint32T length,
411 CL_OUT ClUint32T *pBitSet);
449 CL_OUT ClUint32T *pListLen,
450 CL_OUT ClUint8T **ppPositionList);
484 CL_IN ClUint8T *pPositionList,
485 CL_OUT ClBitmapHandleT *phBitmap);
524 CL_OUT ClUint32T *pListLen,
525 CL_OUT ClUint32T **ppPositionList);
559 CL_IN ClUint32T *pPositionList,
560 CL_OUT ClBitmapHandleT *phBitmap);
594 CL_IN ClUint8T *pPositionList,
595 CL_IN ClBitmapHandleT hBitmap);
ClInt32T clBitmapIsBitSet(CL_IN ClBitmapHandleT hBitmap, CL_IN ClUint32T bitNum, CL_OUT ClRcT *pRetCode)
Find the status of a bit (Set or Clear) in a bitmap.
ClRcT clBitmapNumBitsSet(CL_IN ClBitmapHandleT hBitmap, CL_OUT ClUint32T *pNumBits)
Number of bits set in a bitmap.
ClRcT clBitmapWalkUnlocked(CL_IN ClBitmapHandleT hBitmap, CL_IN ClBitmapWalkCbT fpUserSetBitWalkCb, CL_IN void *pCookie)
Perform unlocked walk on a bitmap.
ClRcT clBitmapBitSet(CL_IN ClBitmapHandleT hBitmap, CL_IN ClUint32T bitNum)
Set a bit of the bitmap.
ClRcT clBitmap2BufferGet(CL_IN ClBitmapHandleT hBitmap, CL_OUT ClUint32T *pListLen, CL_OUT ClUint8T **ppPositionList)
Get the buffer corresponding to a bitmap.
ClRcT clBitmap2PositionListGet(CL_IN ClBitmapHandleT hBitmap, CL_OUT ClUint32T *pListLen, CL_OUT ClUint32T **ppPositionList)
Get the position list corresponding to a bitmap.
ClRcT clBitmapPositionList2BitmapGet(CL_IN ClUint32T listLen, CL_IN ClUint32T *pPositionList, CL_OUT ClBitmapHandleT *phBitmap)
Get the bitmap corresponding to a bitmap position list.
ClRcT clBitmapBufferBitsCopy(CL_IN ClUint32T listLen, CL_IN ClUint8T *pPositionList, CL_IN ClBitmapHandleT hBitmap)
Set the bitmap bits corresponding to the bits in buffer.
ClRcT clBitmapNextClearBitSetNGet(CL_IN ClBitmapHandleT hBitmap, CL_IN ClUint32T length, CL_OUT ClUint32T *pBitSet)
Set the next clear bit and get that bit number.
ClUint32T clBitmapLen(CL_IN ClBitmapHandleT hBitmap)
Get the length of a bitmap.
ClRcT clBitmapBuffer2BitmapGet(CL_IN ClUint32T listLen, CL_IN ClUint8T *pPositionList, CL_OUT ClBitmapHandleT *phBitmap)
Get the bitmap corresponding to a bitmap buffer.
ClRcT clBitmapDestroy(CL_IN ClBitmapHandleT hBitmap)
Destroy a bitmap.
ClRcT clBitmapBitClear(CL_IN ClBitmapHandleT hBitmap, CL_IN ClUint32T bitNum)
Clear a bit of the bitmap.
ClRcT clBitmapWalk(CL_IN ClBitmapHandleT hBitmap, CL_IN ClBitmapWalkCbT fpUserSetBitWalkCb, CL_IN void *pCookie)
Perform locked walk on a bitmap.
ClRcT clBitmapCreate(CL_OUT ClBitmapHandleT *phBitmap, CL_IN ClUint32T bitNum)
Create a bitmap.
ClRcT(* ClBitmapWalkCbT)(ClBitmapHandleT hBitmap, ClUint32T bitNum, void *pCookie)
Callback function type, which is executed during the walk on a bitmap.
Definition: clBitmapApi.h:61
ClUint32T ClRcT
Clovis return code type.
Definition: clCommon.h:168
#define CL_OUT
CL_OUT macro assists in clearly defining arguments of an API, but has no actual meaning.
Definition: clCommon.h:110
#define CL_IN
CL_IN macro assists in clearly defining arguments of an API, but has no actual meaning.
Definition: clCommon.h:106