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

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

Issue 812033011: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 5 years, 11 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/vp8/encoder/temporal_filter.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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 * situation. 377 * situation.
378 */ 378 */
379 if(mr_cfg) 379 if(mr_cfg)
380 { 380 {
381 oxcf->mr_total_resolutions = mr_cfg->mr_total_resolutions; 381 oxcf->mr_total_resolutions = mr_cfg->mr_total_resolutions;
382 oxcf->mr_encoder_id = mr_cfg->mr_encoder_id; 382 oxcf->mr_encoder_id = mr_cfg->mr_encoder_id;
383 oxcf->mr_down_sampling_factor.num = mr_cfg->mr_down_sampling_factor.num; 383 oxcf->mr_down_sampling_factor.num = mr_cfg->mr_down_sampling_factor.num;
384 oxcf->mr_down_sampling_factor.den = mr_cfg->mr_down_sampling_factor.den; 384 oxcf->mr_down_sampling_factor.den = mr_cfg->mr_down_sampling_factor.den;
385 oxcf->mr_low_res_mode_info = mr_cfg->mr_low_res_mode_info; 385 oxcf->mr_low_res_mode_info = mr_cfg->mr_low_res_mode_info;
386 } 386 }
387 #else
388 (void)mr_cfg;
387 #endif 389 #endif
388 390
389 oxcf->cpu_used = vp8_cfg.cpu_used; 391 oxcf->cpu_used = vp8_cfg.cpu_used;
390 oxcf->encode_breakout = vp8_cfg.static_thresh; 392 oxcf->encode_breakout = vp8_cfg.static_thresh;
391 oxcf->play_alternate = vp8_cfg.enable_auto_alt_ref; 393 oxcf->play_alternate = vp8_cfg.enable_auto_alt_ref;
392 oxcf->noise_sensitivity = vp8_cfg.noise_sensitivity; 394 oxcf->noise_sensitivity = vp8_cfg.noise_sensitivity;
393 oxcf->Sharpness = vp8_cfg.Sharpness; 395 oxcf->Sharpness = vp8_cfg.Sharpness;
394 oxcf->token_partitions = vp8_cfg.token_partitions; 396 oxcf->token_partitions = vp8_cfg.token_partitions;
395 397
396 oxcf->two_pass_stats_in = cfg.rc_twopass_stats_in; 398 oxcf->two_pass_stats_in = cfg.rc_twopass_stats_in;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 shared_mem_loc->mb_info = calloc(mb_rows*mb_cols, sizeof(LOWER_RES_MB_INFO)) ; 623 shared_mem_loc->mb_info = calloc(mb_rows*mb_cols, sizeof(LOWER_RES_MB_INFO)) ;
622 if(!(shared_mem_loc->mb_info)) 624 if(!(shared_mem_loc->mb_info))
623 { 625 {
624 res = VPX_CODEC_MEM_ERROR; 626 res = VPX_CODEC_MEM_ERROR;
625 } 627 }
626 else 628 else
627 { 629 {
628 *mem_loc = (void *)shared_mem_loc; 630 *mem_loc = (void *)shared_mem_loc;
629 res = VPX_CODEC_OK; 631 res = VPX_CODEC_OK;
630 } 632 }
633 #else
634 (void)cfg;
635 (void)mem_loc;
631 #endif 636 #endif
632 return res; 637 return res;
633 } 638 }
634 639
635 static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx, 640 static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx,
636 vpx_codec_priv_enc_mr_cfg_t *mr_cfg) 641 vpx_codec_priv_enc_mr_cfg_t *mr_cfg)
637 { 642 {
638 vpx_codec_err_t res = VPX_CODEC_OK; 643 vpx_codec_err_t res = VPX_CODEC_OK;
639 644
640 645
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1, /* 1 cfg map */ 1386 1, /* 1 cfg map */
1382 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t peek_si; */ 1387 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t peek_si; */
1383 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ 1388 vp8e_encode, /* vpx_codec_encode_fn_t encode; */
1384 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t frame_get; */ 1389 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t frame_get; */
1385 vp8e_set_config, 1390 vp8e_set_config,
1386 NULL, 1391 NULL,
1387 vp8e_get_preview, 1392 vp8e_get_preview,
1388 vp8e_mr_alloc_mem, 1393 vp8e_mr_alloc_mem,
1389 } /* encoder functions */ 1394 } /* encoder functions */
1390 }; 1395 };
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/temporal_filter.c ('k') | source/libvpx/vp8/vp8_dx_iface.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698