Searched refs:index_sz (Results 1 – 9 of 9) sorted by relevance
65 const unsigned int index_sz = 2 + mag * (frames - 1); in MutateEncoderOutputHook() local66 if ((marker & 0xe0) == 0xc0 && pkt->data.frame.sz >= index_sz && in MutateEncoderOutputHook()67 buffer[index_sz - 1] == marker) { in MutateEncoderOutputHook()69 modified_buf_.resize(pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook()70 memcpy(&modified_buf_[0], (uint8_t *)pkt->data.frame.buf + index_sz, in MutateEncoderOutputHook()71 pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook()74 modified_pkt_.data.frame.sz -= index_sz; in MutateEncoderOutputHook()
114 const unsigned int index_sz = 2 + mag * frames; in GetNumFramesInPkt() local119 if (!((marker & 0xe0) == 0xc0 && pkt->data.frame.sz >= index_sz && in GetNumFramesInPkt()120 buffer[pkt->data.frame.sz - index_sz] == marker)) { in GetNumFramesInPkt()
59 const unsigned int index_sz = 2 + mag * frames; in MutateEncoderOutputHook() local60 if ((marker & 0xe0) == 0xc0 && pkt->data.frame.sz >= index_sz && in MutateEncoderOutputHook()61 buffer[pkt->data.frame.sz - index_sz] == marker) { in MutateEncoderOutputHook()64 modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz]; in MutateEncoderOutputHook()65 memcpy(modified_buf_, pkt->data.frame.buf, pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook()68 modified_pkt_.data.frame.sz -= index_sz; in MutateEncoderOutputHook()
117 const unsigned int index_sz = 2 + mag * frames; in GetNumFramesInPkt() local122 if (!((marker & 0xe0) == 0xc0 && pkt->data.frame.sz >= index_sz && in GetNumFramesInPkt()123 buffer[pkt->data.frame.sz - index_sz] == marker)) { in GetNumFramesInPkt()
383 const size_t index_sz = 2 + mag * frames; in parse_superframe_index() local386 if (data_sz < index_sz) return VPX_CODEC_CORRUPT_FRAME; in parse_superframe_index()388 const uint8_t marker2 = *(data + data_sz - index_sz); in parse_superframe_index()396 const uint8_t *x = &data[data_sz - index_sz + 1]; in parse_superframe_index()
540 const size_t index_sz = 2 + mag * frames; in vp9_parse_superframe_index() local544 if (data_sz < index_sz) return VPX_CODEC_CORRUPT_FRAME; in vp9_parse_superframe_index()548 read_marker(decrypt_cb, decrypt_state, data + data_sz - index_sz); in vp9_parse_superframe_index()559 const uint8_t *x = &data[data_sz - index_sz + 1]; in vp9_parse_superframe_index()
575 const size_t index_sz = 2 + mag * frames; in parse_superframe_index() local579 if (data_sz < index_sz) return VPX_CODEC_CORRUPT_FRAME; in parse_superframe_index()582 const uint8_t marker2 = *(data + data_sz - index_sz); in parse_superframe_index()593 const uint8_t *x = &data[data_sz - index_sz + 1]; in parse_superframe_index()
1010 int mag, index_sz; in write_superframe_index() local1027 index_sz = 2 + (mag + 1) * ctx->pending_frame_count; in write_superframe_index()1028 if (ctx->pending_cx_data_sz + index_sz < ctx->cx_data_sz) { in write_superframe_index()1056 ctx->pending_cx_data_sz += index_sz; in write_superframe_index()1058 index_sz += index_sz_test; in write_superframe_index()1061 return index_sz; in write_superframe_index()
678 const size_t index_sz = 2 + mag * frames; in ParseSuperframeIndex() local680 if (data_sz >= index_sz && data[data_sz - index_sz] == marker) { in ParseSuperframeIndex()682 const uint8_t* x = data + data_sz - index_sz + 1; in ParseSuperframeIndex()