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

Side by Side Diff: source/libvpx/vp9/common/vp9_onyx.h

Issue 111463005: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years 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/vp9/common/vp9_mv.h ('k') | source/libvpx/vp9/common/vp9_onyxc_int.h » ('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) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 MODE_SECONDPASS = 0x4, 57 MODE_SECONDPASS = 0x4,
58 MODE_SECONDPASS_BEST = 0x5, 58 MODE_SECONDPASS_BEST = 0x5,
59 } MODE; 59 } MODE;
60 60
61 typedef enum { 61 typedef enum {
62 FRAMEFLAGS_KEY = 1, 62 FRAMEFLAGS_KEY = 1,
63 FRAMEFLAGS_GOLDEN = 2, 63 FRAMEFLAGS_GOLDEN = 2,
64 FRAMEFLAGS_ALTREF = 4, 64 FRAMEFLAGS_ALTREF = 4,
65 } FRAMETYPE_FLAGS; 65 } FRAMETYPE_FLAGS;
66 66
67 typedef enum {
68 NO_AQ = 0,
69 VARIANCE_AQ = 1,
70 COMPLEXITY_AQ = 2,
71 AQ_MODES_COUNT // This should always be the last member of the enum
72 } AQ_MODES;
73
67 typedef struct { 74 typedef struct {
68 int version; // 4 versions of bitstream defined: 75 int version; // 4 versions of bitstream defined:
69 // 0 - best quality/slowest decode, 76 // 0 - best quality/slowest decode,
70 // 3 - lowest quality/fastest decode 77 // 3 - lowest quality/fastest decode
71 int width; // width of data passed to the compressor 78 int width; // width of data passed to the compressor
72 int height; // height of data passed to the compressor 79 int height; // height of data passed to the compressor
73 double framerate; // set to passed in framerate 80 double framerate; // set to passed in framerate
74 int64_t target_bandwidth; // bandwidth to be used in kilobits per second 81 int64_t target_bandwidth; // bandwidth to be used in kilobits per second
75 82
76 int noise_sensitivity; // pre processing blur: recommendation 0 83 int noise_sensitivity; // pre processing blur: recommendation 0
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int64_t starting_buffer_level; // in seconds 128 int64_t starting_buffer_level; // in seconds
122 int64_t optimal_buffer_level; 129 int64_t optimal_buffer_level;
123 int64_t maximum_buffer_size; 130 int64_t maximum_buffer_size;
124 131
125 // controlling quality 132 // controlling quality
126 int fixed_q; 133 int fixed_q;
127 int worst_allowed_q; 134 int worst_allowed_q;
128 int best_allowed_q; 135 int best_allowed_q;
129 int cq_level; 136 int cq_level;
130 int lossless; 137 int lossless;
138 int aq_mode; // Adaptive Quantization mode
131 139
132 // two pass datarate control 140 // two pass datarate control
133 int two_pass_vbrbias; // two pass datarate control tweaks 141 int two_pass_vbrbias; // two pass datarate control tweaks
134 int two_pass_vbrmin_section; 142 int two_pass_vbrmin_section;
135 int two_pass_vbrmax_section; 143 int two_pass_vbrmax_section;
136 // END DATARATE CONTROL OPTIONS 144 // END DATARATE CONTROL OPTIONS
137 // ---------------------------------------------------------------- 145 // ----------------------------------------------------------------
138 146
139 // Spatial scalability 147 // Spatial scalability
140 int ss_number_layers; 148 int ss_number_layers;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 186
179 void vp9_change_config(VP9_PTR onyx, VP9_CONFIG *oxcf); 187 void vp9_change_config(VP9_PTR onyx, VP9_CONFIG *oxcf);
180 188
181 // receive a frames worth of data. caller can assume that a copy of this 189 // receive a frames worth of data. caller can assume that a copy of this
182 // frame is made and not just a copy of the pointer.. 190 // frame is made and not just a copy of the pointer..
183 int vp9_receive_raw_frame(VP9_PTR comp, unsigned int frame_flags, 191 int vp9_receive_raw_frame(VP9_PTR comp, unsigned int frame_flags,
184 YV12_BUFFER_CONFIG *sd, int64_t time_stamp, 192 YV12_BUFFER_CONFIG *sd, int64_t time_stamp,
185 int64_t end_time_stamp); 193 int64_t end_time_stamp);
186 194
187 int vp9_get_compressed_data(VP9_PTR comp, unsigned int *frame_flags, 195 int vp9_get_compressed_data(VP9_PTR comp, unsigned int *frame_flags,
188 unsigned long *size, unsigned char *dest, 196 size_t *size, uint8_t *dest,
189 int64_t *time_stamp, int64_t *time_end, 197 int64_t *time_stamp, int64_t *time_end,
190 int flush); 198 int flush);
191 199
192 int vp9_get_preview_raw_frame(VP9_PTR comp, YV12_BUFFER_CONFIG *dest, 200 int vp9_get_preview_raw_frame(VP9_PTR comp, YV12_BUFFER_CONFIG *dest,
193 vp9_ppflags_t *flags); 201 vp9_ppflags_t *flags);
194 202
195 int vp9_use_as_reference(VP9_PTR comp, int ref_frame_flags); 203 int vp9_use_as_reference(VP9_PTR comp, int ref_frame_flags);
196 204
197 int vp9_update_reference(VP9_PTR comp, int ref_frame_flags); 205 int vp9_update_reference(VP9_PTR comp, int ref_frame_flags);
198 206
(...skipping 15 matching lines...) Expand all
214 222
215 int vp9_set_active_map(VP9_PTR comp, unsigned char *map, 223 int vp9_set_active_map(VP9_PTR comp, unsigned char *map,
216 unsigned int rows, unsigned int cols); 224 unsigned int rows, unsigned int cols);
217 225
218 int vp9_set_internal_size(VP9_PTR comp, 226 int vp9_set_internal_size(VP9_PTR comp,
219 VPX_SCALING horiz_mode, VPX_SCALING vert_mode); 227 VPX_SCALING horiz_mode, VPX_SCALING vert_mode);
220 228
221 int vp9_set_size_literal(VP9_PTR comp, unsigned int width, 229 int vp9_set_size_literal(VP9_PTR comp, unsigned int width,
222 unsigned int height); 230 unsigned int height);
223 231
224 int vp9_switch_layer(VP9_PTR comp, int layer);
225
226 void vp9_set_svc(VP9_PTR comp, int use_svc); 232 void vp9_set_svc(VP9_PTR comp, int use_svc);
227 233
228 int vp9_get_quantizer(VP9_PTR c); 234 int vp9_get_quantizer(VP9_PTR c);
229 235
230 #ifdef __cplusplus 236 #ifdef __cplusplus
231 } 237 }
232 #endif 238 #endif
233 239
234 #endif // VP9_COMMON_VP9_ONYX_H_ 240 #endif // VP9_COMMON_VP9_ONYX_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_mv.h ('k') | source/libvpx/vp9/common/vp9_onyxc_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698