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

Side by Side Diff: source/libvpx/vp9/vp9_cx_iface.c

Issue 1015483002: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 9 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/vp9/encoder/x86/vp9_dct_ssse3.c ('k') | source/libvpx/vpx/vp8cx.h » ('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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 struct vp9_extracfg extra_cfg = ctx->extra_cfg; 687 struct vp9_extracfg extra_cfg = ctx->extra_cfg;
688 extra_cfg.rc_max_inter_bitrate_pct = 688 extra_cfg.rc_max_inter_bitrate_pct =
689 CAST(VP8E_SET_MAX_INTER_BITRATE_PCT, args); 689 CAST(VP8E_SET_MAX_INTER_BITRATE_PCT, args);
690 return update_extra_cfg(ctx, &extra_cfg); 690 return update_extra_cfg(ctx, &extra_cfg);
691 } 691 }
692 692
693 static vpx_codec_err_t ctrl_set_rc_gf_cbr_boost_pct( 693 static vpx_codec_err_t ctrl_set_rc_gf_cbr_boost_pct(
694 vpx_codec_alg_priv_t *ctx, va_list args) { 694 vpx_codec_alg_priv_t *ctx, va_list args) {
695 struct vp9_extracfg extra_cfg = ctx->extra_cfg; 695 struct vp9_extracfg extra_cfg = ctx->extra_cfg;
696 extra_cfg.gf_cbr_boost_pct = 696 extra_cfg.gf_cbr_boost_pct =
697 CAST(VP8E_SET_GF_CBR_BOOST_PCT, args); 697 CAST(VP9E_SET_GF_CBR_BOOST_PCT, args);
698 return update_extra_cfg(ctx, &extra_cfg); 698 return update_extra_cfg(ctx, &extra_cfg);
699 } 699 }
700 700
701 static vpx_codec_err_t ctrl_set_lossless(vpx_codec_alg_priv_t *ctx, 701 static vpx_codec_err_t ctrl_set_lossless(vpx_codec_alg_priv_t *ctx,
702 va_list args) { 702 va_list args) {
703 struct vp9_extracfg extra_cfg = ctx->extra_cfg; 703 struct vp9_extracfg extra_cfg = ctx->extra_cfg;
704 extra_cfg.lossless = CAST(VP9E_SET_LOSSLESS, args); 704 extra_cfg.lossless = CAST(VP9E_SET_LOSSLESS, args);
705 return update_extra_cfg(ctx, &extra_cfg); 705 return update_extra_cfg(ctx, &extra_cfg);
706 } 706 }
707 707
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 {VP8E_SET_SHARPNESS, ctrl_set_sharpness}, 1379 {VP8E_SET_SHARPNESS, ctrl_set_sharpness},
1380 {VP8E_SET_STATIC_THRESHOLD, ctrl_set_static_thresh}, 1380 {VP8E_SET_STATIC_THRESHOLD, ctrl_set_static_thresh},
1381 {VP9E_SET_TILE_COLUMNS, ctrl_set_tile_columns}, 1381 {VP9E_SET_TILE_COLUMNS, ctrl_set_tile_columns},
1382 {VP9E_SET_TILE_ROWS, ctrl_set_tile_rows}, 1382 {VP9E_SET_TILE_ROWS, ctrl_set_tile_rows},
1383 {VP8E_SET_ARNR_MAXFRAMES, ctrl_set_arnr_max_frames}, 1383 {VP8E_SET_ARNR_MAXFRAMES, ctrl_set_arnr_max_frames},
1384 {VP8E_SET_ARNR_STRENGTH, ctrl_set_arnr_strength}, 1384 {VP8E_SET_ARNR_STRENGTH, ctrl_set_arnr_strength},
1385 {VP8E_SET_ARNR_TYPE, ctrl_set_arnr_type}, 1385 {VP8E_SET_ARNR_TYPE, ctrl_set_arnr_type},
1386 {VP8E_SET_TUNING, ctrl_set_tuning}, 1386 {VP8E_SET_TUNING, ctrl_set_tuning},
1387 {VP8E_SET_CQ_LEVEL, ctrl_set_cq_level}, 1387 {VP8E_SET_CQ_LEVEL, ctrl_set_cq_level},
1388 {VP8E_SET_MAX_INTRA_BITRATE_PCT, ctrl_set_rc_max_intra_bitrate_pct}, 1388 {VP8E_SET_MAX_INTRA_BITRATE_PCT, ctrl_set_rc_max_intra_bitrate_pct},
1389 {VP8E_SET_MAX_INTER_BITRATE_PCT, ctrl_set_rc_max_inter_bitrate_pct}, 1389 {VP9E_SET_MAX_INTER_BITRATE_PCT, ctrl_set_rc_max_inter_bitrate_pct},
1390 {VP8E_SET_GF_CBR_BOOST_PCT, ctrl_set_rc_gf_cbr_boost_pct}, 1390 {VP9E_SET_GF_CBR_BOOST_PCT, ctrl_set_rc_gf_cbr_boost_pct},
1391 {VP9E_SET_LOSSLESS, ctrl_set_lossless}, 1391 {VP9E_SET_LOSSLESS, ctrl_set_lossless},
1392 {VP9E_SET_FRAME_PARALLEL_DECODING, ctrl_set_frame_parallel_decoding_mode}, 1392 {VP9E_SET_FRAME_PARALLEL_DECODING, ctrl_set_frame_parallel_decoding_mode},
1393 {VP9E_SET_AQ_MODE, ctrl_set_aq_mode}, 1393 {VP9E_SET_AQ_MODE, ctrl_set_aq_mode},
1394 {VP9E_SET_FRAME_PERIODIC_BOOST, ctrl_set_frame_periodic_boost}, 1394 {VP9E_SET_FRAME_PERIODIC_BOOST, ctrl_set_frame_periodic_boost},
1395 {VP9E_SET_SVC, ctrl_set_svc}, 1395 {VP9E_SET_SVC, ctrl_set_svc},
1396 {VP9E_SET_SVC_PARAMETERS, ctrl_set_svc_parameters}, 1396 {VP9E_SET_SVC_PARAMETERS, ctrl_set_svc_parameters},
1397 {VP9E_REGISTER_CX_CALLBACK, ctrl_register_cx_callback}, 1397 {VP9E_REGISTER_CX_CALLBACK, ctrl_register_cx_callback},
1398 {VP9E_SET_SVC_LAYER_ID, ctrl_set_svc_layer_id}, 1398 {VP9E_SET_SVC_LAYER_ID, ctrl_set_svc_layer_id},
1399 {VP9E_SET_TUNE_CONTENT, ctrl_set_tune_content}, 1399 {VP9E_SET_TUNE_CONTENT, ctrl_set_tune_content},
1400 {VP9E_SET_COLOR_SPACE, ctrl_set_color_space}, 1400 {VP9E_SET_COLOR_SPACE, ctrl_set_color_space},
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 1, // 1 cfg map 1500 1, // 1 cfg map
1501 encoder_usage_cfg_map, // vpx_codec_enc_cfg_map_t 1501 encoder_usage_cfg_map, // vpx_codec_enc_cfg_map_t
1502 encoder_encode, // vpx_codec_encode_fn_t 1502 encoder_encode, // vpx_codec_encode_fn_t
1503 encoder_get_cxdata, // vpx_codec_get_cx_data_fn_t 1503 encoder_get_cxdata, // vpx_codec_get_cx_data_fn_t
1504 encoder_set_config, // vpx_codec_enc_config_set_fn_t 1504 encoder_set_config, // vpx_codec_enc_config_set_fn_t
1505 NULL, // vpx_codec_get_global_headers_fn_t 1505 NULL, // vpx_codec_get_global_headers_fn_t
1506 encoder_get_preview, // vpx_codec_get_preview_frame_fn_t 1506 encoder_get_preview, // vpx_codec_get_preview_frame_fn_t
1507 NULL // vpx_codec_enc_mr_get_mem_loc_fn_t 1507 NULL // vpx_codec_enc_mr_get_mem_loc_fn_t
1508 } 1508 }
1509 }; 1509 };
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/x86/vp9_dct_ssse3.c ('k') | source/libvpx/vpx/vp8cx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698