Home
last modified time | relevance | path

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

/third_party/openh264/test/api/
DBaseThreadDecoderTest.cpp55 bool has4ByteStartCode = ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 1; in ReadFrame() local
57 if (!has4ByteStartCode) { in ReadFrame()
60 if (has4ByteStartCode || has3ByteStartCode) { in ReadFrame()
61 int32_t byteOffset = has4ByteStartCode ? 4 : 3; in ReadFrame()
62 uint8_t nal_unit_type = has4ByteStartCode ? (ptr[4] & 0x1F) : (ptr[3] & 0x1F); in ReadFrame()
/third_party/openh264/codec/console/dec/src/
Dh264dec.cpp121 bool has4ByteStartCode = ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 1; in readPicture() local
123 if (!has4ByteStartCode) { in readPicture()
126 if (has4ByteStartCode || has3ByteStartCode) { in readPicture()
127 int32_t byteOffset = has4ByteStartCode ? 4 : 3; in readPicture()
128 uint8_t nal_unit_type = has4ByteStartCode ? (ptr[4] & 0x1F) : (ptr[3] & 0x1F); in readPicture()
146 pSpsBuf = ptr + (has4ByteStartCode ? 4 : 3); in readPicture()