Home
last modified time | relevance | path

Searched refs:nalStart (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libstagefright/foundation/
Davc_utils.cpp280 const uint8_t **nalStart, size_t *nalSize, in getNextNALUnit() argument
285 *nalStart = NULL; in getNextNALUnit()
336 *nalStart = &data[startOffset]; in getNextNALUnit()
351 const uint8_t *nalStart; in FindNAL() local
353 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in FindNAL()
354 if (nalSize > 0 && (nalStart[0] & 0x1f) == nalType) { in FindNAL()
356 memcpy(buffer->data(), nalStart, nalSize); in FindNAL()
470 const uint8_t *nalStart; in IsIDR() local
472 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in IsIDR()
478 unsigned nalType = nalStart[0] & 0x1f; in IsIDR()
[all …]
/frameworks/av/media/libstagefright/foundation/tests/AVCUtils/
DAVCUtilsUnitTest.cpp192 const uint8_t *nalStart; in TEST_P() local
203 status_t result = getNextNALUnit(&sanityData, &smallBufferSize, &nalStart, &nalSize, true); in TEST_P()
206 while (!getNextNALUnit(&data, &chunkLength, &nalStart, &nalSize, true)) { in TEST_P()
209 if ((nalStart[0] & kSPSmask) != kSPSStartCode) continue; in TEST_P()
215 memcpy(spsBuffer->data(), nalStart, nalSize); in TEST_P()
257 const uint8_t *nalStart; in TEST_P() local
264 while (!getNextNALUnit(&data, &chunkLength, &nalStart, &nalSize, true)) { in TEST_P()
266 ASSERT_TRUE(nalSize > 0 && (nalStart[0] & kSPSmask) == kSPSStartCode) in TEST_P()
271 profile = nalStart[1]; in TEST_P()
272 level = nalStart[3]; in TEST_P()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
Davc_utils.h80 const uint8_t **nalStart, size_t *nalSize,
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp1344 const uint8_t *nalStart; in dequeueAccessUnitH264() local
1351 while ((err = getNextNALUnit(&data, &size, &nalStart, &nalSize)) == OK) { in dequeueAccessUnitH264()
1354 unsigned nalType = nalStart[0] & 0x1f; in dequeueAccessUnitH264()
1363 ABitReader br(nalStart + 1, nalSize); in dequeueAccessUnitH264()
1505 pos.nalOffset = nalStart - mBuffer->data(); in dequeueAccessUnitH264()
/frameworks/av/media/libstagefright/
DMediaCodec.cpp3717 const uint8_t *nalStart; in amendOutputFormatWithCodecSpecificData() local
3719 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in amendOutputFormatWithCodecSpecificData()
3722 memcpy(csd->data() + 4, nalStart, nalSize); in amendOutputFormatWithCodecSpecificData()