Lines Matching full:ptra
43 struct bim_UInt16BytePyrImage* ptrA )
45 bbs_UInt16Arr_init( cpA, &ptrA->arrE );
46 ptrA->widthE = 0;
47 ptrA->heightE = 0;
48 ptrA->depthE = 0;
49 ptrA->typeE = bim_UINT16_PYRAMIDAL_IMG;
55 struct bim_UInt16BytePyrImage* ptrA )
57 bbs_UInt16Arr_exit( cpA, &ptrA->arrE );
58 ptrA->widthE = 0;
59 ptrA->heightE = 0;
60 ptrA->depthE = 0;
74 struct bim_UInt16BytePyrImage* ptrA,
78 if( ptrA->arrE.allocatedSizeE < srcPtrA->arrE.allocatedSizeE )
85 ptrA->widthE = srcPtrA->widthE;
86 ptrA->heightE = srcPtrA->heightE;
87 ptrA->depthE = srcPtrA->depthE;
88 bbs_UInt16Arr_copy( cpA, &ptrA->arrE, &srcPtrA->arrE );
94 const struct bim_UInt16BytePyrImage* ptrA,
97 if( ptrA->widthE != srcPtrA->widthE ) return FALSE;
98 if( ptrA->heightE != srcPtrA->heightE ) return FALSE;
99 if( ptrA->depthE != srcPtrA->depthE ) return FALSE;
100 return bbs_UInt16Arr_equal( cpA, &ptrA->arrE, &srcPtrA->arrE );
114 const struct bim_UInt16BytePyrImage* ptrA,
119 uint32 baseSizeL = ( ptrA->widthE * ptrA->heightE ) >> 1;
122 if( levelA >= ptrA->depthE )
125 "levelA = %i out of range [0,%i]", levelA, ptrA->depthE - 1 );
134 return ptrA->arrE.arrPtrE + offsL;
140 const struct bim_UInt16BytePyrImage* ptrA,
151 return bbs_UInt16Arr_heapSize( cpA, &ptrA->arrE, sizeL );
165 struct bim_UInt16BytePyrImage* ptrA,
175 if( ptrA->arrE.arrPtrE != 0 )
177 bim_UInt16BytePyrImage_size( cpA, ptrA, widthA, heightA, depthA );
186 bbs_ERROR0( "void bim_UInt16BytePyrImage_create( struct bim_UInt16BytePyrImage* ptrA, uint32 widthA, uint32 heightA, uint32 depthA ):\n"
192 bbs_ERROR1( "void bim_UInt16BytePyrImage_create( struct bim_UInt16BytePyrImage* ptrA, uint32 widthA, uint32 heightA, uint32 depthA ):\n"
199 ptrA->widthE = widthA;
200 ptrA->heightE = heightA;
201 ptrA->depthE = depthA;
207 bbs_UInt16Arr_create( cpA, &ptrA->arrE, sizeL, mspA );
213 struct bim_UInt16BytePyrImage* ptrA,
226 bbs_ERROR0( "void bim_UInt16BytePyrImage_size( struct bim_UInt16BytePyrImage* ptrA, uint32 widthA, uint32 heightA, uint32 depthA ):\n"
233 bbs_ERROR1( "void bim_UInt16BytePyrImage_size( struct bim_UInt16BytePyrImage* ptrA, uint32 widthA, uint32 heightA, uint32 depthA ):\n"
239 ptrA->widthE = widthA;
240 ptrA->heightE = heightA;
241 ptrA->depthE = depthA;
248 if( sizeL > ptrA->arrE.allocatedSizeE )
250 bbs_ERROR0( "void bim_UInt16BytePyrImage_size( struct bim_UInt16BytePyrImage* ptrA, uint32 widthA, uint32 heightA, uint32 depthA ):\n"
255 bbs_UInt16Arr_size( cpA, &ptrA->arrE, sizeL );
269 const struct bim_UInt16BytePyrImage* ptrA )
273 + bbs_SIZEOF16( ptrA->widthE )
274 + bbs_SIZEOF16( ptrA->heightE )
275 + bbs_SIZEOF16( ptrA->depthE )
276 + bbs_UInt16Arr_memSize( cpA, &ptrA->arrE );
282 const struct bim_UInt16BytePyrImage* ptrA,
285 uint32 memSizeL = bim_UInt16BytePyrImage_memSize( cpA, ptrA );
288 memPtrA += bbs_memWrite32( &ptrA->widthE, memPtrA );
289 memPtrA += bbs_memWrite32( &ptrA->heightE, memPtrA );
290 memPtrA += bbs_memWrite32( &ptrA->depthE, memPtrA );
291 bbs_UInt16Arr_memWrite( cpA, &ptrA->arrE, memPtrA );
298 struct bim_UInt16BytePyrImage* ptrA,
310 ptrA->widthE = widthL;
311 ptrA->heightE = heightL;
312 ptrA->depthE = depthL;
313 bbs_UInt16Arr_memRead( cpA, &ptrA->arrE, memPtrA, mspA );
315 if( memSizeL != bim_UInt16BytePyrImage_memSize( cpA, ptrA ) )
317 bbs_ERR0( bbs_ERR_CORRUPT_DATA, "uint32 bim_UInt16BytePyrImage_memRead( const struct bim_UInt16BytePyrImage* ptrA, const void* memPtrA ):\n"
334 const struct bim_UInt16BytePyrImage* ptrA,
337 uint16ImageA->widthE = ptrA->widthE;
338 uint16ImageA->heightE = ptrA->heightE;
339 uint16ImageA->arrE.sizeE = ptrA->widthE * ptrA->heightE;
340 uint16ImageA->arrE.allocatedSizeE = ptrA->widthE * ptrA->heightE;
341 uint16ImageA->arrE.arrPtrE = ptrA->arrE.arrPtrE;