blob: d867e9d9548a5a0bc915e6790da28d9f96d15b33 [file] [log] [blame]
Tom Finegan49dc9ca2013-11-21 16:46:40 -08001/*
2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10#ifndef VPXENC_H_
11#define VPXENC_H_
12
13#include "vpx/vpx_encoder.h"
14
James Zern25cfd8e2014-01-18 12:16:11 -080015#ifdef __cplusplus
16extern "C" {
17#endif
18
Tom Finegan49dc9ca2013-11-21 16:46:40 -080019enum TestDecodeFatality {
20 TEST_DECODE_OFF,
21 TEST_DECODE_FATAL,
22 TEST_DECODE_WARN,
23};
24
Deb Mukherjee090f4d42014-07-16 09:37:13 -070025typedef enum {
26 I420, // 4:2:0 8+ bit-depth
27 I422, // 4:2:2 8+ bit-depth
28 I444, // 4:4:4 8+ bit-depth
Deb Mukherjeea30774c2014-10-01 12:17:37 -070029 I440, // 4:4:0 8+ bit-depth
Deb Mukherjee090f4d42014-07-16 09:37:13 -070030 YV12, // 4:2:0 with uv flipped, only 8-bit depth
31} ColorInputType;
32
Dmitry Kovalev70d96642014-02-11 21:12:23 -080033struct VpxInterface;
34
Tom Finegan49dc9ca2013-11-21 16:46:40 -080035/* Configuration elements common to all streams. */
36struct VpxEncoderConfig {
Dmitry Kovalev70d96642014-02-11 21:12:23 -080037 const struct VpxInterface *codec;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080038 int passes;
39 int pass;
40 int usage;
41 int deadline;
Deb Mukherjee090f4d42014-07-16 09:37:13 -070042 ColorInputType color_type;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080043 int quiet;
44 int verbose;
45 int limit;
46 int skip_frames;
47 int show_psnr;
48 enum TestDecodeFatality test_decode;
49 int have_framerate;
50 struct vpx_rational framerate;
51 int out_part;
52 int debug;
53 int show_q_hist_buckets;
54 int show_rate_hist_buckets;
55 int disable_warnings;
56 int disable_warning_prompt;
Alex Conversed66bd222014-02-21 10:52:09 -080057 int experimental_bitstream;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080058};
59
James Zern25cfd8e2014-01-18 12:16:11 -080060#ifdef __cplusplus
61} // extern "C"
62#endif
63
Tom Finegan49dc9ca2013-11-21 16:46:40 -080064#endif // VPXENC_H_