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

Side by Side Diff: source/libvpx/vpx_scale/yv12config.h

Issue 554673004: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 3 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/vpx_scale/generic/yv12extend.c ('k') | source/libvpx/vpxdec.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) 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 uint8_t *buffer_alloc; 49 uint8_t *buffer_alloc;
50 int buffer_alloc_sz; 50 int buffer_alloc_sz;
51 int border; 51 int border;
52 int frame_size; 52 int frame_size;
53 53
54 int corrupted; 54 int corrupted;
55 int flags; 55 int flags;
56 } YV12_BUFFER_CONFIG; 56 } YV12_BUFFER_CONFIG;
57 57
58 #define YV12_FLAG_HIGHBITDEPTH 1
59
58 int vp8_yv12_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, 60 int vp8_yv12_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
59 int width, int height, int border); 61 int width, int height, int border);
60 int vp8_yv12_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, 62 int vp8_yv12_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
61 int width, int height, int border); 63 int width, int height, int border);
62 int vp8_yv12_de_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf); 64 int vp8_yv12_de_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf);
63 65
64 int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, 66 int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
65 int width, int height, int ss_x, int ss_y, 67 int width, int height, int ss_x, int ss_y,
68 #if CONFIG_VP9_HIGHBITDEPTH
69 int use_highbitdepth,
70 #endif
66 int border); 71 int border);
67 72
68 // Updates the yv12 buffer config with the frame buffer. If cb is not 73 // Updates the yv12 buffer config with the frame buffer. If cb is not
69 // NULL, then libvpx is using the frame buffer callbacks to handle memory. 74 // NULL, then libvpx is using the frame buffer callbacks to handle memory.
70 // If cb is not NULL, libvpx will call cb with minimum size in bytes needed 75 // If cb is not NULL, libvpx will call cb with minimum size in bytes needed
71 // to decode the current frame. If cb is NULL, libvpx will allocate memory 76 // to decode the current frame. If cb is NULL, libvpx will allocate memory
72 // internally to decode the current frame. Returns 0 on success. Returns < 0 77 // internally to decode the current frame. Returns 0 on success. Returns < 0
73 // on failure. 78 // on failure.
74 int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, 79 int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
75 int width, int height, int ss_x, int ss_y, 80 int width, int height, int ss_x, int ss_y,
81 #if CONFIG_VP9_HIGHBITDEPTH
82 int use_highbitdepth,
83 #endif
76 int border, 84 int border,
77 vpx_codec_frame_buffer_t *fb, 85 vpx_codec_frame_buffer_t *fb,
78 vpx_get_frame_buffer_cb_fn_t cb, 86 vpx_get_frame_buffer_cb_fn_t cb,
79 void *cb_priv); 87 void *cb_priv);
80 int vp9_free_frame_buffer(YV12_BUFFER_CONFIG *ybf); 88 int vp9_free_frame_buffer(YV12_BUFFER_CONFIG *ybf);
81 89
82 #ifdef __cplusplus 90 #ifdef __cplusplus
83 } 91 }
84 #endif 92 #endif
85 93
86 #endif // VPX_SCALE_YV12CONFIG_H_ 94 #endif // VPX_SCALE_YV12CONFIG_H_
OLDNEW
« no previous file with comments | « source/libvpx/vpx_scale/generic/yv12extend.c ('k') | source/libvpx/vpxdec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698