Home
last modified time | relevance | path

Searched refs:webm_ctx (Results 1 – 14 of 14) sorted by relevance

/external/libvpx/
Dwebmdec.cc21 void reset(struct WebmInputContext *const webm_ctx) { in reset() argument
22 if (webm_ctx->reader != nullptr) { in reset()
24 reinterpret_cast<mkvparser::MkvReader *>(webm_ctx->reader); in reset()
27 if (webm_ctx->segment != nullptr) { in reset()
29 reinterpret_cast<mkvparser::Segment *>(webm_ctx->segment); in reset()
32 if (webm_ctx->buffer != nullptr) { in reset()
33 delete[] webm_ctx->buffer; in reset()
35 webm_ctx->reader = nullptr; in reset()
36 webm_ctx->segment = nullptr; in reset()
37 webm_ctx->buffer = nullptr; in reset()
[all …]
Dwebmenc.cc23 void write_webm_file_header(struct WebmOutputContext *webm_ctx, in write_webm_file_header() argument
27 mkvmuxer::MkvWriter *const writer = new mkvmuxer::MkvWriter(webm_ctx->stream); in write_webm_file_header()
37 if (!webm_ctx->debug) { in write_webm_file_header()
63 if (webm_ctx->debug) { in write_webm_file_header()
66 webm_ctx->writer = writer; in write_webm_file_header()
67 webm_ctx->segment = segment; in write_webm_file_header()
70 void write_webm_block(struct WebmOutputContext *webm_ctx, in write_webm_block() argument
74 reinterpret_cast<mkvmuxer::Segment *>(webm_ctx->segment); in write_webm_block()
77 if (pts_ns <= webm_ctx->last_pts_ns) pts_ns = webm_ctx->last_pts_ns + 1000000; in write_webm_block()
78 webm_ctx->last_pts_ns = pts_ns; in write_webm_block()
[all …]
Dwebmdec.h40 int file_is_webm(struct WebmInputContext *webm_ctx,
55 int webm_read_frame(struct WebmInputContext *webm_ctx, uint8_t **buffer,
59 int webm_guess_framerate(struct WebmInputContext *webm_ctx,
63 void webm_free(struct WebmInputContext *webm_ctx);
Dwebmenc.h40 void write_webm_file_header(struct WebmOutputContext *webm_ctx,
45 void write_webm_block(struct WebmOutputContext *webm_ctx,
49 void write_webm_file_footer(struct WebmOutputContext *webm_ctx);
Dvpxdec.c47 struct WebmInputContext *webm_ctx; member
273 return webm_read_frame(input->webm_ctx, buf, bytes_in_buffer); in dec_read_frame()
575 struct WebmInputContext webm_ctx; in main_loop() local
576 memset(&(webm_ctx), 0, sizeof(webm_ctx)); in main_loop()
577 input.webm_ctx = &webm_ctx; in main_loop()
718 else if (file_is_webm(input.webm_ctx, input.vpx_input_ctx)) in main_loop()
754 if (webm_guess_framerate(input.webm_ctx, input.vpx_input_ctx)) { in main_loop()
1099 webm_free(input.webm_ctx); in main_loop()
Dvpxenc.c694 struct WebmOutputContext webm_ctx; member
876 stream->webm_ctx.last_pts_ns = -1; in new_stream()
877 stream->webm_ctx.writer = NULL; in new_stream()
878 stream->webm_ctx.segment = NULL; in new_stream()
882 stream->webm_ctx.debug = global->debug; in new_stream()
1277 stream->webm_ctx.stream = stream->file; in open_output_file()
1278 write_webm_file_header(&stream->webm_ctx, cfg, stream->config.stereo_fmt, in open_output_file()
1298 write_webm_file_footer(&stream->webm_ctx); in close_output_file()
1491 write_webm_block(&stream->webm_ctx, cfg, pkt); in get_cx_data()
/external/libaom/common/
Dwebmdec.cc23 void reset(struct WebmInputContext *const webm_ctx) { in reset() argument
24 if (webm_ctx->reader != NULL) { in reset()
26 reinterpret_cast<mkvparser::MkvReader *>(webm_ctx->reader); in reset()
29 if (webm_ctx->segment != NULL) { in reset()
31 reinterpret_cast<mkvparser::Segment *>(webm_ctx->segment); in reset()
34 if (webm_ctx->buffer != NULL) { in reset()
35 delete[] webm_ctx->buffer; in reset()
37 webm_ctx->reader = NULL; in reset()
38 webm_ctx->segment = NULL; in reset()
39 webm_ctx->buffer = NULL; in reset()
[all …]
Dwebmenc.cc80 int write_webm_file_header(struct WebmOutputContext *webm_ctx, in write_webm_file_header() argument
87 new (std::nothrow) mkvmuxer::MkvWriter(webm_ctx->stream)); in write_webm_file_header()
113 if (!webm_ctx->debug) { in write_webm_file_header()
189 if (webm_ctx->debug) { in write_webm_file_header()
193 webm_ctx->writer = writer.release(); in write_webm_file_header()
194 webm_ctx->segment = segment.release(); in write_webm_file_header()
198 int write_webm_block(struct WebmOutputContext *webm_ctx, in write_webm_block() argument
201 if (!webm_ctx->segment) { in write_webm_block()
206 reinterpret_cast<mkvmuxer::Segment *>(webm_ctx->segment); in write_webm_block()
209 if (pts_ns <= webm_ctx->last_pts_ns) pts_ns = webm_ctx->last_pts_ns + 1000000; in write_webm_block()
[all …]
Dwebmdec.h41 int file_is_webm(struct WebmInputContext *webm_ctx,
57 int webm_read_frame(struct WebmInputContext *webm_ctx, uint8_t **buffer,
61 int webm_guess_framerate(struct WebmInputContext *webm_ctx,
65 void webm_free(struct WebmInputContext *webm_ctx);
Dwebmenc.h54 int write_webm_file_header(struct WebmOutputContext *webm_ctx,
61 int write_webm_block(struct WebmOutputContext *webm_ctx,
65 int write_webm_file_footer(struct WebmOutputContext *webm_ctx);
Dvideo_reader.c26 struct WebmInputContext webm_ctx; member
58 file_is_webm(&reader->webm_ctx, &reader->input_ctx)) { in aom_video_reader_open()
105 return !webm_read_frame(&reader->webm_ctx, &reader->buffer, in aom_video_reader_read_frame()
/external/libaom/tools/
Ddump_obu.cc39 memset(webm_ctx, 0, sizeof(*webm_ctx)); in Init()
46 WebmInputContext *webm_ctx = nullptr; member
62 if (file_is_webm(ctx->webm_ctx, ctx->avx_ctx)) return FILE_TYPE_WEBM; in GetFileType()
88 if (webm_read_frame(ctx->webm_ctx, &ctx->unit_buffer, unit_size, in ReadTemporalUnit()
129 WebmInputContext webm_ctx; in main() local
130 input_ctx.webm_ctx = &webm_ctx; in main()
/external/libaom/apps/
Daomdec.c55 struct WebmInputContext *webm_ctx; member
238 return webm_read_frame(input->webm_ctx, buf, bytes_in_buffer, in read_frame()
484 struct WebmInputContext webm_ctx; in main_loop() local
485 memset(&webm_ctx, 0, sizeof(webm_ctx)); in main_loop()
486 input.webm_ctx = &webm_ctx; in main_loop()
631 } else if (using_file && file_is_webm(input.webm_ctx, input.aom_input_ctx)) { in main_loop()
676 if (webm_guess_framerate(input.webm_ctx, input.aom_input_ctx)) { in main_loop()
1030 webm_free(input.webm_ctx); in main_loop()
Daomenc.c549 struct WebmOutputContext webm_ctx; member
826 stream->webm_ctx.last_pts_ns = -1; in new_stream()
827 stream->webm_ctx.writer = NULL; in new_stream()
828 stream->webm_ctx.segment = NULL; in new_stream()
832 stream->webm_ctx.debug = global->debug; in new_stream()
1429 stream->webm_ctx.stream = stream->file; in open_output_file()
1430 if (write_webm_file_header(&stream->webm_ctx, &stream->encoder, cfg, in open_output_file()
1456 if (write_webm_file_footer(&stream->webm_ctx) != 0) { in close_output_file()
1731 if (write_webm_block(&stream->webm_ctx, cfg, pkt) != 0) { in get_cx_data()
2377 if (stream->config.write_webm && !stream->webm_ctx.debug) { in main()