1*77c1e3ccSAndroid Build Coastguard Worker /* 2*77c1e3ccSAndroid Build Coastguard Worker * Copyright (c) 2016, Alliance for Open Media. All rights reserved. 3*77c1e3ccSAndroid Build Coastguard Worker * 4*77c1e3ccSAndroid Build Coastguard Worker * This source code is subject to the terms of the BSD 2 Clause License and 5*77c1e3ccSAndroid Build Coastguard Worker * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License 6*77c1e3ccSAndroid Build Coastguard Worker * was not distributed with this source code in the LICENSE file, you can 7*77c1e3ccSAndroid Build Coastguard Worker * obtain it at www.aomedia.org/license/software. If the Alliance for Open 8*77c1e3ccSAndroid Build Coastguard Worker * Media Patent License 1.0 was not distributed with this source code in the 9*77c1e3ccSAndroid Build Coastguard Worker * PATENTS file, you can obtain it at www.aomedia.org/license/patent. 10*77c1e3ccSAndroid Build Coastguard Worker */ 11*77c1e3ccSAndroid Build Coastguard Worker #ifndef AOM_APPS_AOMENC_H_ 12*77c1e3ccSAndroid Build Coastguard Worker #define AOM_APPS_AOMENC_H_ 13*77c1e3ccSAndroid Build Coastguard Worker 14*77c1e3ccSAndroid Build Coastguard Worker #include "aom/aom_codec.h" 15*77c1e3ccSAndroid Build Coastguard Worker #include "aom/aom_encoder.h" 16*77c1e3ccSAndroid Build Coastguard Worker #include "av1/arg_defs.h" 17*77c1e3ccSAndroid Build Coastguard Worker 18*77c1e3ccSAndroid Build Coastguard Worker #ifdef __cplusplus 19*77c1e3ccSAndroid Build Coastguard Worker extern "C" { 20*77c1e3ccSAndroid Build Coastguard Worker #endif 21*77c1e3ccSAndroid Build Coastguard Worker 22*77c1e3ccSAndroid Build Coastguard Worker typedef enum { 23*77c1e3ccSAndroid Build Coastguard Worker I420, // 4:2:0 8+ bit-depth 24*77c1e3ccSAndroid Build Coastguard Worker I422, // 4:2:2 8+ bit-depth 25*77c1e3ccSAndroid Build Coastguard Worker I444, // 4:4:4 8+ bit-depth 26*77c1e3ccSAndroid Build Coastguard Worker YV12, // 4:2:0 with uv flipped, only 8-bit depth 27*77c1e3ccSAndroid Build Coastguard Worker NV12, // 4:2:0 with uv interleaved, only 8-bit depth 28*77c1e3ccSAndroid Build Coastguard Worker } ColorInputType; 29*77c1e3ccSAndroid Build Coastguard Worker 30*77c1e3ccSAndroid Build Coastguard Worker /* Configuration elements common to all streams. */ 31*77c1e3ccSAndroid Build Coastguard Worker struct AvxEncoderConfig { 32*77c1e3ccSAndroid Build Coastguard Worker aom_codec_iface_t *codec; 33*77c1e3ccSAndroid Build Coastguard Worker int passes; 34*77c1e3ccSAndroid Build Coastguard Worker int pass; 35*77c1e3ccSAndroid Build Coastguard Worker unsigned int usage; 36*77c1e3ccSAndroid Build Coastguard Worker ColorInputType color_type; 37*77c1e3ccSAndroid Build Coastguard Worker int quiet; 38*77c1e3ccSAndroid Build Coastguard Worker int verbose; 39*77c1e3ccSAndroid Build Coastguard Worker int limit; 40*77c1e3ccSAndroid Build Coastguard Worker int skip_frames; 41*77c1e3ccSAndroid Build Coastguard Worker int show_psnr; 42*77c1e3ccSAndroid Build Coastguard Worker enum TestDecodeFatality test_decode; 43*77c1e3ccSAndroid Build Coastguard Worker int have_framerate; 44*77c1e3ccSAndroid Build Coastguard Worker struct aom_rational framerate; 45*77c1e3ccSAndroid Build Coastguard Worker int debug; 46*77c1e3ccSAndroid Build Coastguard Worker int show_q_hist_buckets; 47*77c1e3ccSAndroid Build Coastguard Worker int show_rate_hist_buckets; 48*77c1e3ccSAndroid Build Coastguard Worker int disable_warnings; 49*77c1e3ccSAndroid Build Coastguard Worker int disable_warning_prompt; 50*77c1e3ccSAndroid Build Coastguard Worker int experimental_bitstream; 51*77c1e3ccSAndroid Build Coastguard Worker aom_chroma_sample_position_t csp; 52*77c1e3ccSAndroid Build Coastguard Worker cfg_options_t encoder_config; 53*77c1e3ccSAndroid Build Coastguard Worker }; 54*77c1e3ccSAndroid Build Coastguard Worker 55*77c1e3ccSAndroid Build Coastguard Worker #ifdef __cplusplus 56*77c1e3ccSAndroid Build Coastguard Worker } // extern "C" 57*77c1e3ccSAndroid Build Coastguard Worker #endif 58*77c1e3ccSAndroid Build Coastguard Worker 59*77c1e3ccSAndroid Build Coastguard Worker #endif // AOM_APPS_AOMENC_H_ 60