#include "common/webmenc.h"
#include <stdio.h>
#include <string.h>
#include <memory>
#include <new>
#include <string>
#include "common/av1_config.h"
#include "third_party/libwebm/mkvmuxer/mkvmuxer.h"
#include "third_party/libwebm/mkvmuxer/mkvmuxerutil.h"
#include "third_party/libwebm/mkvmuxer/mkvwriter.h"
namespace {
const uint64_t kDebugTrackUid = …;
const int kVideoTrackNumber = …;
int skip_input_output_arg(const char *arg, const char *input_fname) { … }
}
char *extract_encoder_settings(const char *version, const char **argv, int argc,
const char *input_fname) { … }
int write_webm_file_header(struct WebmOutputContext *webm_ctx,
aom_codec_ctx_t *encoder_ctx,
const aom_codec_enc_cfg_t *cfg,
stereo_format_t stereo_fmt, unsigned int fourcc,
const struct AvxRational *par,
const char *encoder_settings) { … }
int write_webm_block(struct WebmOutputContext *webm_ctx,
const aom_codec_enc_cfg_t *cfg,
const aom_codec_cx_pkt_t *pkt) { … }
int write_webm_file_footer(struct WebmOutputContext *webm_ctx) { … }