Lines Matching refs:data_sz
259 size_t data_sz, in decoder_peek_si_internal() argument
266 if (data + data_sz <= data || data_sz < 1) return AOM_CODEC_INVALID_PARAM; in decoder_peek_si_internal()
278 data, data_sz, si->is_annexb, &obu_header, &payload_size, &bytes_read); in decoder_peek_si_internal()
285 if (data_sz < bytes_read + payload_size) return AOM_CODEC_CORRUPT_FRAME; in decoder_peek_si_internal()
287 data_sz -= bytes_read + payload_size; in decoder_peek_si_internal()
290 data, data_sz, si->is_annexb, &obu_header, &payload_size, &bytes_read); in decoder_peek_si_internal()
295 data_sz -= bytes_read; in decoder_peek_si_internal()
296 if (data_sz < payload_size) return AOM_CODEC_CORRUPT_FRAME; in decoder_peek_si_internal()
300 if (data_sz < 2) return AOM_CODEC_CORRUPT_FRAME; in decoder_peek_si_internal()
302 struct aom_read_bit_buffer rb = { data, data + data_sz, 0, NULL, NULL }; in decoder_peek_si_internal()
331 if (data_sz < 1) return AOM_CODEC_CORRUPT_FRAME; in decoder_peek_si_internal()
332 struct aom_read_bit_buffer rb = { data, data + data_sz, 0, NULL, NULL }; in decoder_peek_si_internal()
345 data_sz -= payload_size; in decoder_peek_si_internal()
346 if (data_sz == 0) break; // exit if we're out of OBUs in decoder_peek_si_internal()
348 data, data_sz, si->is_annexb, &obu_header, &payload_size, &bytes_read); in decoder_peek_si_internal()
356 static aom_codec_err_t decoder_peek_si(const uint8_t *data, size_t data_sz, in decoder_peek_si() argument
358 return decoder_peek_si_internal(data, data_sz, si, NULL); in decoder_peek_si()
525 const uint8_t **data, size_t data_sz, in decode_one() argument
536 decoder_peek_si_internal(*data, data_sz, &ctx->si, &is_intra_only); in decode_one()
545 frame_worker_data->data_size = data_sz; in decode_one()
575 const uint8_t *data, size_t data_sz, in decoder_inspect() argument
591 res = av1_receive_compressed_data(frame_worker_data->pbi, data_sz, &data); in decoder_inspect()
607 const uint8_t *data, size_t data_sz, in decoder_decode() argument
613 return decoder_inspect(ctx, data, data_sz, user_priv); in decoder_decode()
637 if (data == NULL && data_sz == 0) { in decoder_decode()
641 if (data == NULL || data_sz == 0) return AOM_CODEC_INVALID_PARAM; in decoder_decode()
653 const uint8_t *data_end = data + data_sz; in decoder_decode()
659 if (aom_uleb_decode(data_start, data_sz, &temporal_unit_size, in decoder_decode()