| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |