blob: 6b08916a7e557d8b7835a43d42f1306044152288 [file] [log] [blame]
Tom Finegan00a35aa2013-11-14 12:37:42 -08001/*
Krishna Rapaka7319db52021-09-28 20:35:29 -07002 * Copyright (c) 2021, Alliance for Open Media. All rights reserved
Tom Finegan00a35aa2013-11-14 12:37:42 -08003 *
Vibhoothi41c6dd72021-10-12 18:48:26 +00004 * This source code is subject to the terms of the BSD 3-Clause Clear License
5 * and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
6 * License was not distributed with this source code in the LICENSE file, you
7 * can obtain it at aomedia.org/license/software-license/bsd-3-c-c/. If the
8 * Alliance for Open Media Patent License 1.0 was not distributed with this
9 * source code in the PATENTS file, you can obtain it at
10 * aomedia.org/license/patent-license/.
Tom Finegan00a35aa2013-11-14 12:37:42 -080011 */
James Zerne1cbb132018-08-22 14:10:36 -070012#ifndef AOM_COMMON_IVFENC_H_
13#define AOM_COMMON_IVFENC_H_
Tom Finegan00a35aa2013-11-14 12:37:42 -080014
Tom Finegandd3e2a52018-05-23 14:33:09 -070015#include "common/tools_common.h"
Tom Finegan00a35aa2013-11-14 12:37:42 -080016
Yaowu Xuf883b422016-08-30 14:01:10 -070017struct aom_codec_enc_cfg;
18struct aom_codec_cx_pkt;
Tom Finegan00a35aa2013-11-14 12:37:42 -080019
20#ifdef __cplusplus
21extern "C" {
22#endif
23
Yaowu Xuf883b422016-08-30 14:01:10 -070024void ivf_write_file_header(FILE *outfile, const struct aom_codec_enc_cfg *cfg,
clang-format6c4d83e2016-08-08 19:03:30 -070025 uint32_t fourcc, int frame_cnt);
Dmitry Kovalev373b0f92014-01-29 17:57:21 -080026
27void ivf_write_frame_header(FILE *outfile, int64_t pts, size_t frame_size);
28
29void ivf_write_frame_size(FILE *outfile, size_t frame_size);
Tom Finegan00a35aa2013-11-14 12:37:42 -080030
31#ifdef __cplusplus
clang-format6c4d83e2016-08-08 19:03:30 -070032} /* extern "C" */
Tom Finegan00a35aa2013-11-14 12:37:42 -080033#endif
34
James Zerne1cbb132018-08-22 14:10:36 -070035#endif // AOM_COMMON_IVFENC_H_