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

Side by Side Diff: source/libvpx/vpx/vp8cx.h

Issue 55493002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 1 month 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/vpx/vp8.h ('k') | source/libvpx/vpx/vp8dx.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 #ifndef VP8CX_H
11 #define VP8CX_H
11 12
12 /*!\defgroup vp8_encoder WebM VP8 Encoder 13 /*!\defgroup vp8_encoder WebM VP8 Encoder
13 * \ingroup vp8 14 * \ingroup vp8
14 * 15 *
15 * @{ 16 * @{
16 */ 17 */
17 #include "vp8.h" 18 #include "vp8.h"
18 19
19 /*!\file 20 /*!\file
20 * \brief Provides definitions for using the VP8 encoder algorithm within the 21 * \brief Provides definitions for using the VP8 encoder algorithm within the
21 * vpx Codec Interface. 22 * vpx Codec Interface.
22 */ 23 */
23 #ifndef VP8CX_H 24
24 #define VP8CX_H 25 #ifdef __cplusplus
25 #include "vpx_codec_impl_top.h" 26 extern "C" {
27 #endif
26 28
27 /*!\name Algorithm interface for VP8 29 /*!\name Algorithm interface for VP8
28 * 30 *
29 * This interface provides the capability to encode raw VP8 streams, as would 31 * This interface provides the capability to encode raw VP8 streams, as would
30 * be found in AVI files. 32 * be found in AVI files.
31 * @{ 33 * @{
32 */ 34 */
33 extern vpx_codec_iface_t vpx_codec_vp8_cx_algo; 35 extern vpx_codec_iface_t vpx_codec_vp8_cx_algo;
34 extern vpx_codec_iface_t *vpx_codec_vp8_cx(void); 36 extern vpx_codec_iface_t *vpx_codec_vp8_cx(void);
35 37
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } VPX_SCALING_MODE; 215 } VPX_SCALING_MODE;
214 216
215 217
216 /*!\brief vpx region of interest map 218 /*!\brief vpx region of interest map
217 * 219 *
218 * These defines the data structures for the region of interest map 220 * These defines the data structures for the region of interest map
219 * 221 *
220 */ 222 */
221 223
222 typedef struct vpx_roi_map { 224 typedef struct vpx_roi_map {
223 unsigned char *roi_map; /**< specify an id between 0 and 3 for each 16x16 region within a frame */ 225 /*! An id between 0 and 3 for each 16x16 region within a frame. */
224 unsigned int rows; /**< number of rows */ 226 unsigned char *roi_map;
225 unsigned int cols; /**< number of cols */ 227 unsigned int rows; /**< Number of rows. */
228 unsigned int cols; /**< Number of columns. */
226 // TODO(paulwilkins): broken for VP9 which has 8 segments 229 // TODO(paulwilkins): broken for VP9 which has 8 segments
227 // q and loop filter deltas for each segment 230 // q and loop filter deltas for each segment
228 // (see MAX_MB_SEGMENTS) 231 // (see MAX_MB_SEGMENTS)
229 int delta_q[4]; 232 int delta_q[4]; /**< Quantizer deltas. */
230 int delta_lf[4]; 233 int delta_lf[4]; /**< Loop filter deltas. */
231 // Static breakout threshold for each segment 234 /*! Static breakout threshold for each segment. */
232 unsigned int static_threshold[4]; 235 unsigned int static_threshold[4];
233 } vpx_roi_map_t; 236 } vpx_roi_map_t;
234 237
235 /*!\brief vpx active region map 238 /*!\brief vpx active region map
236 * 239 *
237 * These defines the data structures for active region map 240 * These defines the data structures for active region map
238 * 241 *
239 */ 242 */
240 243
241 244
242 typedef struct vpx_active_map { 245 typedef struct vpx_active_map {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 330
328 VPX_CTRL_USE_TYPE(VP8E_SET_MAX_INTRA_BITRATE_PCT, unsigned int) 331 VPX_CTRL_USE_TYPE(VP8E_SET_MAX_INTRA_BITRATE_PCT, unsigned int)
329 332
330 VPX_CTRL_USE_TYPE(VP9E_SET_LOSSLESS, unsigned int) 333 VPX_CTRL_USE_TYPE(VP9E_SET_LOSSLESS, unsigned int)
331 334
332 VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int) 335 VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int)
333 336
334 VPX_CTRL_USE_TYPE(VP9E_SET_MAX_Q, unsigned int) 337 VPX_CTRL_USE_TYPE(VP9E_SET_MAX_Q, unsigned int)
335 VPX_CTRL_USE_TYPE(VP9E_SET_MIN_Q, unsigned int) 338 VPX_CTRL_USE_TYPE(VP9E_SET_MIN_Q, unsigned int)
336 /*! @} - end defgroup vp8_encoder */ 339 /*! @} - end defgroup vp8_encoder */
337 #include "vpx_codec_impl_bottom.h" 340 #ifdef __cplusplus
341 } // extern "C"
338 #endif 342 #endif
343
344 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vpx/vp8.h ('k') | source/libvpx/vpx/vp8dx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698