Home
last modified time | relevance | path

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

/external/libaom/libaom/test/
Dsuperframe_test.cc64 const unsigned int index_sz = 2 + mag * (frames - 1); in MutateEncoderOutputHook() local
65 if ((marker & 0xe0) == 0xc0 && pkt->data.frame.sz >= index_sz && in MutateEncoderOutputHook()
66 buffer[index_sz - 1] == marker) { in MutateEncoderOutputHook()
68 modified_buf_.resize(pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook()
69 memcpy(&modified_buf_[0], (uint8_t *)pkt->data.frame.buf + index_sz, in MutateEncoderOutputHook()
70 pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook()
73 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.cc370 const size_t index_sz = 2 + mag * frames; in parse_superframe_index() local
373 if (data_sz < index_sz) return VPX_CODEC_CORRUPT_FRAME; in parse_superframe_index()
375 const uint8_t marker2 = *(data + data_sz - index_sz); in parse_superframe_index()
383 const uint8_t *x = &data[data_sz - index_sz + 1]; in parse_superframe_index()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decoder.c481 const size_t index_sz = 2 + mag * frames; in vp9_parse_superframe_index() local
485 if (data_sz < index_sz) return VPX_CODEC_CORRUPT_FRAME; in vp9_parse_superframe_index()
489 read_marker(decrypt_cb, decrypt_state, data + data_sz - index_sz); in vp9_parse_superframe_index()
500 const uint8_t *x = &data[data_sz - index_sz + 1]; in vp9_parse_superframe_index()
/external/libvpx/libvpx/examples/
Dvp9_spatial_svc_encoder.c559 const size_t index_sz = 2 + mag * frames; in parse_superframe_index() local
563 if (data_sz < index_sz) return VPX_CODEC_CORRUPT_FRAME; in parse_superframe_index()
566 const uint8_t marker2 = *(data + data_sz - index_sz); in parse_superframe_index()
577 const uint8_t *x = &data[data_sz - index_sz + 1]; in parse_superframe_index()
/external/libvpx/libvpx/vp9/
Dvp9_cx_iface.c989 int mag, index_sz; in write_superframe_index() local
1006 index_sz = 2 + (mag + 1) * ctx->pending_frame_count; in write_superframe_index()
1007 if (ctx->pending_cx_data_sz + index_sz < ctx->cx_data_sz) { in write_superframe_index()
1035 ctx->pending_cx_data_sz += index_sz; in write_superframe_index()
1037 index_sz += index_sz_test; in write_superframe_index()
1040 return index_sz; in write_superframe_index()