Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: source/libvpx/vpxenc.h

Issue 394353005: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vpxdec.c ('k') | source/libvpx/vpxenc.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #ifndef VPXENC_H_ 10 #ifndef VPXENC_H_
11 #define VPXENC_H_ 11 #define VPXENC_H_
12 12
13 #include "vpx/vpx_encoder.h" 13 #include "vpx/vpx_encoder.h"
14 14
15 #ifdef __cplusplus 15 #ifdef __cplusplus
16 extern "C" { 16 extern "C" {
17 #endif 17 #endif
18 18
19 enum TestDecodeFatality { 19 enum TestDecodeFatality {
20 TEST_DECODE_OFF, 20 TEST_DECODE_OFF,
21 TEST_DECODE_FATAL, 21 TEST_DECODE_FATAL,
22 TEST_DECODE_WARN, 22 TEST_DECODE_WARN,
23 }; 23 };
24 24
25 typedef 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
29 YV12, // 4:2:0 with uv flipped, only 8-bit depth
30 } ColorInputType;
31
25 struct VpxInterface; 32 struct VpxInterface;
26 33
27 /* Configuration elements common to all streams. */ 34 /* Configuration elements common to all streams. */
28 struct VpxEncoderConfig { 35 struct VpxEncoderConfig {
29 const struct VpxInterface *codec; 36 const struct VpxInterface *codec;
30 int passes; 37 int passes;
31 int pass; 38 int pass;
32 int usage; 39 int usage;
33 int deadline; 40 int deadline;
34 int use_i420; 41 ColorInputType color_type;
35 int quiet; 42 int quiet;
36 int verbose; 43 int verbose;
37 int limit; 44 int limit;
38 int skip_frames; 45 int skip_frames;
39 int show_psnr; 46 int show_psnr;
40 enum TestDecodeFatality test_decode; 47 enum TestDecodeFatality test_decode;
41 int have_framerate; 48 int have_framerate;
42 struct vpx_rational framerate; 49 struct vpx_rational framerate;
43 int out_part; 50 int out_part;
44 int debug; 51 int debug;
45 int show_q_hist_buckets; 52 int show_q_hist_buckets;
46 int show_rate_hist_buckets; 53 int show_rate_hist_buckets;
47 int disable_warnings; 54 int disable_warnings;
48 int disable_warning_prompt; 55 int disable_warning_prompt;
49 int experimental_bitstream; 56 int experimental_bitstream;
50 }; 57 };
51 58
52 #ifdef __cplusplus 59 #ifdef __cplusplus
53 } // extern "C" 60 } // extern "C"
54 #endif 61 #endif
55 62
56 #endif // VPXENC_H_ 63 #endif // VPXENC_H_
OLDNEW
« no previous file with comments | « source/libvpx/vpxdec.c ('k') | source/libvpx/vpxenc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698