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

Side by Side Diff: source/libvpx/vpx/vp8dx.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/vpx/vp8cx.h ('k') | source/libvpx/vpx/vpx_codec.mk » ('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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 * by the last decode 66 * by the last decode
67 */ 67 */
68 VP8D_GET_LAST_REF_USED, 68 VP8D_GET_LAST_REF_USED,
69 69
70 /** decryption function to decrypt encoded buffer data immediately 70 /** decryption function to decrypt encoded buffer data immediately
71 * before decoding. Takes a vp8_decrypt_init, which contains 71 * before decoding. Takes a vp8_decrypt_init, which contains
72 * a callback function and opaque context pointer. 72 * a callback function and opaque context pointer.
73 */ 73 */
74 VP8D_SET_DECRYPTOR, 74 VP8D_SET_DECRYPTOR,
75 75
76 /** control function to get the display dimensions for the current frame. */
77 VP9D_GET_DISPLAY_SIZE,
78
76 /** For testing. */ 79 /** For testing. */
77 VP9_INVERT_TILE_DECODE_ORDER, 80 VP9_INVERT_TILE_DECODE_ORDER,
78 81
82 /** control function to set the vp9 decoder into using the least recently
83 * used frame buffer when a new buffer is requested. Takes an int and if
84 * the value is zero will turn off using lru cache. The value of zero is
85 * the default. If the value is anything besides zero, then that will turn
86 * on lru cache.*/
87 VP9D_SET_FRAME_BUFFER_LRU_CACHE,
88
79 VP8_DECODER_CTRL_ID_MAX 89 VP8_DECODER_CTRL_ID_MAX
80 }; 90 };
81 91
82 /*!\brief Structure to hold decryption state 92 /*!\brief Structure to hold decryption state
83 * 93 *
84 * Defines a structure to hold the decryption state and access function. 94 * Defines a structure to hold the decryption state and access function.
85 */ 95 */
86 typedef struct vp8_decrypt_init { 96 typedef struct vp8_decrypt_init {
87 /** Decrypt n bytes of data from input -> output, using the decrypt_state 97 /** Decrypt n bytes of data from input -> output, using the decrypt_state
88 * passed in VP8D_SET_DECRYPTOR. 98 * passed in VP8D_SET_DECRYPTOR.
89 */ 99 */
90 void (*decrypt_cb)(void *decrypt_state, const unsigned char *input, 100 void (*decrypt_cb)(void *decrypt_state, const unsigned char *input,
91 unsigned char *output, int count); 101 unsigned char *output, int count);
92 /*! Decryption state. */ 102 /*! Decryption state. */
93 void *decrypt_state; 103 void *decrypt_state;
94 } vp8_decrypt_init; 104 } vp8_decrypt_init;
95 105
96 /*!\brief VP8 decoder control function parameter type 106 /*!\brief VP8 decoder control function parameter type
97 * 107 *
98 * Defines the data types that VP8D control functions take. Note that 108 * Defines the data types that VP8D control functions take. Note that
99 * additional common controls are defined in vp8.h 109 * additional common controls are defined in vp8.h
100 * 110 *
101 */ 111 */
102 112
103 113
104 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *) 114 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *)
105 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *) 115 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *)
106 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *) 116 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *)
107 VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vp8_decrypt_init *) 117 VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vp8_decrypt_init *)
118 VPX_CTRL_USE_TYPE(VP9D_GET_DISPLAY_SIZE, int *)
108 VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int) 119 VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int)
120 VPX_CTRL_USE_TYPE(VP9D_SET_FRAME_BUFFER_LRU_CACHE, int)
109 121
110 /*! @} - end defgroup vp8_decoder */ 122 /*! @} - end defgroup vp8_decoder */
111 123
112 #ifdef __cplusplus 124 #ifdef __cplusplus
113 } // extern "C" 125 } // extern "C"
114 #endif 126 #endif
115 127
116 #endif 128 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vpx/vp8cx.h ('k') | source/libvpx/vpx/vpx_codec.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698