2013-11-22 04:46:40 +04:00
|
|
|
/*
|
2016-09-02 00:32:49 +03:00
|
|
|
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
|
2013-11-22 04:46:40 +04:00
|
|
|
*
|
2016-09-02 00:32:49 +03:00
|
|
|
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
|
|
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
|
|
* was not distributed with this source code in the LICENSE file, you can
|
|
|
|
* obtain it at www.aomedia.org/license/software. If the Alliance for Open
|
|
|
|
* Media Patent License 1.0 was not distributed with this source code in the
|
|
|
|
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
2013-11-22 04:46:40 +04:00
|
|
|
*/
|
2016-08-31 00:01:10 +03:00
|
|
|
#ifndef AOMENC_H_
|
|
|
|
#define AOMENC_H_
|
2013-11-22 04:46:40 +04:00
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
#include "aom/aom_encoder.h"
|
2013-11-22 04:46:40 +04:00
|
|
|
|
2014-01-19 00:16:11 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-11-22 04:46:40 +04:00
|
|
|
enum TestDecodeFatality {
|
|
|
|
TEST_DECODE_OFF,
|
|
|
|
TEST_DECODE_FATAL,
|
|
|
|
TEST_DECODE_WARN,
|
|
|
|
};
|
|
|
|
|
2014-07-16 20:37:13 +04:00
|
|
|
typedef enum {
|
|
|
|
I420, // 4:2:0 8+ bit-depth
|
|
|
|
I422, // 4:2:2 8+ bit-depth
|
|
|
|
I444, // 4:4:4 8+ bit-depth
|
2014-10-01 23:17:37 +04:00
|
|
|
I440, // 4:4:0 8+ bit-depth
|
2014-07-16 20:37:13 +04:00
|
|
|
YV12, // 4:2:0 with uv flipped, only 8-bit depth
|
|
|
|
} ColorInputType;
|
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
struct AvxInterface;
|
2014-02-12 09:12:23 +04:00
|
|
|
|
2013-11-22 04:46:40 +04:00
|
|
|
/* Configuration elements common to all streams. */
|
2016-08-31 00:01:10 +03:00
|
|
|
struct AvxEncoderConfig {
|
|
|
|
const struct AvxInterface *codec;
|
2013-11-22 04:46:40 +04:00
|
|
|
int passes;
|
|
|
|
int pass;
|
|
|
|
int usage;
|
|
|
|
int deadline;
|
2014-07-16 20:37:13 +04:00
|
|
|
ColorInputType color_type;
|
2013-11-22 04:46:40 +04:00
|
|
|
int quiet;
|
|
|
|
int verbose;
|
|
|
|
int limit;
|
|
|
|
int skip_frames;
|
|
|
|
int show_psnr;
|
|
|
|
enum TestDecodeFatality test_decode;
|
|
|
|
int have_framerate;
|
2016-08-31 00:01:10 +03:00
|
|
|
struct aom_rational framerate;
|
2013-11-22 04:46:40 +04:00
|
|
|
int out_part;
|
|
|
|
int debug;
|
|
|
|
int show_q_hist_buckets;
|
|
|
|
int show_rate_hist_buckets;
|
|
|
|
int disable_warnings;
|
|
|
|
int disable_warning_prompt;
|
2014-02-21 22:52:09 +04:00
|
|
|
int experimental_bitstream;
|
2013-11-22 04:46:40 +04:00
|
|
|
};
|
|
|
|
|
2014-01-19 00:16:11 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
2016-08-31 00:01:10 +03:00
|
|
|
#endif // AOMENC_H_
|