Searched refs:has4ByteStartCode (Results 1 – 2 of 2) sorted by relevance
55 bool has4ByteStartCode = ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 1; in ReadFrame() local57 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()
121 bool has4ByteStartCode = ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 1; in readPicture() local123 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()