Home
last modified time | relevance | path

Searched refs:obu_ctx (Results 1 – 6 of 6) sorted by relevance

/external/libaom/libaom/common/
Dobudec.c272 int file_is_obu(struct ObuDecInputContext *obu_ctx) { in file_is_obu() argument
273 if (!obu_ctx || !obu_ctx->avx_ctx) return 0; in file_is_obu()
275 struct AvxInputContext *avx_ctx = obu_ctx->avx_ctx; in file_is_obu()
277 const int is_annexb = obu_ctx->is_annexb; in file_is_obu()
337 obu_ctx->buffer = (uint8_t *)malloc(OBU_BUFFER_SIZE); in file_is_obu()
338 if (!obu_ctx->buffer) { in file_is_obu()
343 obu_ctx->buffer_capacity = OBU_BUFFER_SIZE; in file_is_obu()
345 memcpy(obu_ctx->buffer, &detect_buf[0], bytes_read); in file_is_obu()
346 obu_ctx->bytes_buffered = bytes_read; in file_is_obu()
350 if (payload_length > (obu_ctx->buffer_capacity - bytes_read)) { in file_is_obu()
[all …]
Dvideo_reader.c25 struct ObuDecInputContext obu_ctx; member
46 reader->obu_ctx.avx_ctx = &reader->input_ctx; in aom_video_reader_open()
47 reader->obu_ctx.is_annexb = 1; in aom_video_reader_open()
61 } else if (file_is_obu(&reader->obu_ctx)) { in aom_video_reader_open()
65 reader->info.is_annexb = reader->obu_ctx.is_annexb; in aom_video_reader_open()
79 obudec_free(&reader->obu_ctx); in aom_video_reader_close()
92 return !obudec_read_temporal_unit(&reader->obu_ctx, &reader->buffer, in aom_video_reader_read_frame()
Dobudec.h31 int file_is_obu(struct ObuDecInputContext *obu_ctx);
38 int obudec_read_temporal_unit(struct ObuDecInputContext *obu_ctx,
42 void obudec_free(struct ObuDecInputContext *obu_ctx);
/external/libaom/libaom/tools/
Ddump_obu.cc36 memset(obu_ctx, 0, sizeof(*obu_ctx)); in Init()
37 obu_ctx->avx_ctx = avx_ctx; in Init()
44 ObuDecInputContext *obu_ctx = nullptr; member
58 if (file_is_obu(ctx->obu_ctx)) return FILE_TYPE_OBU; in GetFileType()
76 if (obudec_read_temporal_unit(ctx->obu_ctx, &ctx->unit_buffer, unit_size, in ReadTemporalUnit()
122 ObuDecInputContext obu_ctx; in main() local
123 input_ctx.obu_ctx = &obu_ctx; in main()
/external/libaom/libaom/examples/
Dscalable_decoder.c103 struct ObuDecInputContext obu_ctx = { &aom_input_ctx, NULL, 0, 0, 0 }; in main() local
114 obu_ctx.avx_ctx->file = inputfile; in main()
115 obu_ctx.avx_ctx->filename = argv[1]; in main()
136 if (!file_is_obu(&obu_ctx)) in main()
151 while (!obudec_read_temporal_unit(&obu_ctx, &buf, &bytes_in_buffer, in main()
/external/libaom/libaom/apps/
Daomdec.c54 struct ObuDecInputContext *obu_ctx; member
244 return obudec_read_temporal_unit(input->obu_ctx, buf, bytes_in_buffer, in read_frame()
486 struct ObuDecInputContext obu_ctx = { NULL, NULL, 0, 0, 0 }; in main_loop() local
489 obu_ctx.avx_ctx = &aom_input_ctx; in main_loop()
490 input.obu_ctx = &obu_ctx; in main_loop()
572 input.obu_ctx->is_annexb = 1; in main_loop()
622 else if (file_is_obu(&obu_ctx)) in main_loop()
986 obudec_free(input.obu_ctx); in main_loop()