Home
last modified time | relevance | path

Searched refs:itemlen (Results 1 – 2 of 2) sorted by relevance

/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_dec/tests/
DJPEGTest.c217 int itemlen = 0; local
256 itemlen = (lh << 8) | ll;
258 if ( itemlen < 2 ) {
262 Data = (uchar *)malloc(itemlen);
272 ReadFile(infile, Data+2, itemlen-2, &got, NULL);
274 got = fread(Data+2, 1, itemlen-2, infile); /* Read the whole section.*/
276 if ( got != itemlen-2 ) {
280 PRINT("Jpeg section marker 0x%02x size %d\n",marker, itemlen);
/hardware/qcom/camera/QCamera2/HAL/test/
Dqcamera_test.cpp565 size_t itemlen; in ReadSectionsFromBuffer() local
595 itemlen = (lh << 8) | ll; in ReadSectionsFromBuffer()
597 if (itemlen < 2) { in ReadSectionsFromBuffer()
602 mSections[mSectionsRead].Size = itemlen; in ReadSectionsFromBuffer()
604 Data = (unsigned char *)malloc(itemlen); in ReadSectionsFromBuffer()
615 if (pos+itemlen-2 > buffer_size) { in ReadSectionsFromBuffer()
620 memcpy(Data+2, buffer+pos, itemlen-2); // Read the whole section. in ReadSectionsFromBuffer()
621 pos += itemlen-2; in ReadSectionsFromBuffer()