Lines Matching refs:webm_ctx
80 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()
210 webm_ctx->last_pts_ns = pts_ns; in write_webm_block()
221 int write_webm_file_footer(struct WebmOutputContext *webm_ctx) { in write_webm_file_footer() argument
222 if (!webm_ctx->writer || !webm_ctx->segment) { in write_webm_file_footer()
227 reinterpret_cast<mkvmuxer::MkvWriter *>(webm_ctx->writer); in write_webm_file_footer()
229 reinterpret_cast<mkvmuxer::Segment *>(webm_ctx->segment); in write_webm_file_footer()
233 webm_ctx->writer = NULL; in write_webm_file_footer()
234 webm_ctx->segment = NULL; in write_webm_file_footer()