Home
last modified time | relevance | path

Searched refs:index_sz (Results 1 – 9 of 9) sorted by relevance

/external/libaom/libaom/test/
Dsuperframe_test.cc65 const unsigned int index_sz = 2 + mag * (frames - 1); in MutateEncoderOutputHook() local
66 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()
Darf_freq_test.cc114 const unsigned int index_sz = 2 + mag * frames; in GetNumFramesInPkt() local
119 if (!((marker & 0xe0) == 0xc0 && pkt->data.frame.sz >= index_sz && in GetNumFramesInPkt()
120 buffer[pkt->data.frame.sz - index_sz] == marker)) { in GetNumFramesInPkt()
/external/libvpx/libvpx/test/
Dsuperframe_test.cc59 const unsigned int index_sz = 2 + mag * frames; in MutateEncoderOutputHook() local
60 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()
Dvp9_arf_freq_test.cc117 const unsigned int index_sz = 2 + mag * frames; in GetNumFramesInPkt() local
122 if (!((marker & 0xe0) == 0xc0 && pkt->data.frame.sz >= index_sz && in GetNumFramesInPkt()
123 buffer[pkt->data.frame.sz - index_sz] == marker)) { in GetNumFramesInPkt()
Dsvc_datarate_test.cc383 const size_t index_sz = 2 + mag * frames; in parse_superframe_index() local
386 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()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decoder.c540 const size_t index_sz = 2 + mag * frames; in vp9_parse_superframe_index() local
544 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()
/external/libvpx/libvpx/examples/
Dvp9_spatial_svc_encoder.c575 const size_t index_sz = 2 + mag * frames; in parse_superframe_index() local
579 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()
/external/libvpx/libvpx/vp9/
Dvp9_cx_iface.c1010 int mag, index_sz; in write_superframe_index() local
1027 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()
/external/libwebm/
Dwebm_info.cc678 const size_t index_sz = 2 + mag * frames; in ParseSuperframeIndex() local
680 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()