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

Side by Side Diff: source/libvpx/vp8/vp8_cx_iface.c

Issue 1339513003: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 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
« no previous file with comments | « source/libvpx/vp8/encoder/pickinter.c ('k') | source/libvpx/vp8/vp8_dx_iface.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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 #endif 230 #endif
231 231
232 RANGE_CHECK(cfg, ts_number_layers, 1, 5); 232 RANGE_CHECK(cfg, ts_number_layers, 1, 5);
233 233
234 if (cfg->ts_number_layers > 1) 234 if (cfg->ts_number_layers > 1)
235 { 235 {
236 unsigned int i; 236 unsigned int i;
237 RANGE_CHECK_HI(cfg, ts_periodicity, 16); 237 RANGE_CHECK_HI(cfg, ts_periodicity, 16);
238 238
239 for (i=1; i<cfg->ts_number_layers; i++) 239 for (i=1; i<cfg->ts_number_layers; i++)
240 if (cfg->ts_target_bitrate[i] <= cfg->ts_target_bitrate[i-1] && 240 if (cfg->ts_target_bitrate[i] <= cfg->ts_target_bitrate[i-1] &&
241 cfg->rc_target_bitrate > 0) 241 cfg->rc_target_bitrate > 0)
242 ERROR("ts_target_bitrate entries are not strictly increasing"); 242 ERROR("ts_target_bitrate entries are not strictly increasing");
243 243
244 RANGE_CHECK(cfg, ts_rate_decimator[cfg->ts_number_layers-1], 1, 1); 244 RANGE_CHECK(cfg, ts_rate_decimator[cfg->ts_number_layers-1], 1, 1);
245 for (i=cfg->ts_number_layers-2; i>0; i--) 245 for (i=cfg->ts_number_layers-2; i>0; i--)
246 if (cfg->ts_rate_decimator[i-1] != 2*cfg->ts_rate_decimator[i]) 246 if (cfg->ts_rate_decimator[i-1] != 2*cfg->ts_rate_decimator[i])
247 ERROR("ts_rate_decimator factors are not powers of 2"); 247 ERROR("ts_rate_decimator factors are not powers of 2");
248 248
249 RANGE_CHECK_HI(cfg, ts_layer_id[i], cfg->ts_number_layers-1); 249 RANGE_CHECK_HI(cfg, ts_layer_id[i], cfg->ts_number_layers-1);
250 } 250 }
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 1, /* 1 cfg map */ 1387 1, /* 1 cfg map */
1388 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t cfg_maps; */ 1388 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t cfg_maps; */
1389 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ 1389 vp8e_encode, /* vpx_codec_encode_fn_t encode; */
1390 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t get_cx_data; */ 1390 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t get_cx_data; */
1391 vp8e_set_config, 1391 vp8e_set_config,
1392 NULL, 1392 NULL,
1393 vp8e_get_preview, 1393 vp8e_get_preview,
1394 vp8e_mr_alloc_mem, 1394 vp8e_mr_alloc_mem,
1395 } /* encoder functions */ 1395 } /* encoder functions */
1396 }; 1396 };
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/pickinter.c ('k') | source/libvpx/vp8/vp8_dx_iface.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698