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

Side by Side Diff: source/libvpx/vpx/src/vpx_codec.c

Issue 341293003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 6 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/src/svc_encodeframe.c ('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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 else { 118 else {
119 vpx_codec_ctrl_fn_map_t *entry; 119 vpx_codec_ctrl_fn_map_t *entry;
120 120
121 res = VPX_CODEC_ERROR; 121 res = VPX_CODEC_ERROR;
122 122
123 for (entry = ctx->iface->ctrl_maps; entry && entry->fn; entry++) { 123 for (entry = ctx->iface->ctrl_maps; entry && entry->fn; entry++) {
124 if (!entry->ctrl_id || entry->ctrl_id == ctrl_id) { 124 if (!entry->ctrl_id || entry->ctrl_id == ctrl_id) {
125 va_list ap; 125 va_list ap;
126 126
127 va_start(ap, ctrl_id); 127 va_start(ap, ctrl_id);
128 res = entry->fn(ctx->priv->alg_priv, ctrl_id, ap); 128 res = entry->fn(ctx->priv->alg_priv, ap);
129 va_end(ap); 129 va_end(ap);
130 break; 130 break;
131 } 131 }
132 } 132 }
133 } 133 }
134 134
135 return SAVE_STATUS(ctx, res); 135 return SAVE_STATUS(ctx, res);
136 } 136 }
137 137
138 //------------------------------------------------------------------------------ 138 //------------------------------------------------------------------------------
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 cfg.w = si->w; 175 cfg.w = si->w;
176 cfg.h = si->h; 176 cfg.h = si->h;
177 177
178 if (mmaps[i].sz < mem_reqs[i].calc_sz(&cfg, init_flags)) { 178 if (mmaps[i].sz < mem_reqs[i].calc_sz(&cfg, init_flags)) {
179 return VPX_CODEC_MEM_ERROR; 179 return VPX_CODEC_MEM_ERROR;
180 } 180 }
181 } 181 }
182 } 182 }
183 return VPX_CODEC_OK; 183 return VPX_CODEC_OK;
184 } 184 }
OLDNEW
« no previous file with comments | « source/libvpx/vpx/src/svc_encodeframe.c ('k') | source/libvpx/vpx/vpx_codec.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698