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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 static const struct arg_enum_list tune_content_enum[] = { | 408 static const struct arg_enum_list tune_content_enum[] = { |
409 {"default", VP9E_CONTENT_DEFAULT}, | 409 {"default", VP9E_CONTENT_DEFAULT}, |
410 {"screen", VP9E_CONTENT_SCREEN}, | 410 {"screen", VP9E_CONTENT_SCREEN}, |
411 {NULL, 0} | 411 {NULL, 0} |
412 }; | 412 }; |
413 | 413 |
414 static const arg_def_t tune_content = ARG_DEF_ENUM( | 414 static const arg_def_t tune_content = ARG_DEF_ENUM( |
415 NULL, "tune-content", 1, "Tune content type", tune_content_enum); | 415 NULL, "tune-content", 1, "Tune content type", tune_content_enum); |
416 | 416 |
417 static const arg_def_t *vp9_args[] = { | 417 static const arg_def_t *vp9_args[] = { |
418 &cpu_used, &auto_altref, &noise_sens, &sharpness, &static_thresh, | 418 &cpu_used, &auto_altref, &sharpness, &static_thresh, |
419 &tile_cols, &tile_rows, &arnr_maxframes, &arnr_strength, &arnr_type, | 419 &tile_cols, &tile_rows, &arnr_maxframes, &arnr_strength, &arnr_type, |
420 &tune_ssim, &cq_level, &max_intra_rate_pct, &lossless, | 420 &tune_ssim, &cq_level, &max_intra_rate_pct, &lossless, |
421 &frame_parallel_decoding, &aq_mode, &frame_periodic_boost, &tune_content, | 421 &frame_parallel_decoding, &aq_mode, &frame_periodic_boost, |
| 422 &noise_sens, &tune_content, |
422 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH | 423 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH |
423 &bitdeptharg, &inbitdeptharg, | 424 &bitdeptharg, &inbitdeptharg, |
424 #endif | 425 #endif |
425 NULL | 426 NULL |
426 }; | 427 }; |
427 static const int vp9_arg_ctrl_map[] = { | 428 static const int vp9_arg_ctrl_map[] = { |
428 VP8E_SET_CPUUSED, VP8E_SET_ENABLEAUTOALTREF, | 429 VP8E_SET_CPUUSED, VP8E_SET_ENABLEAUTOALTREF, |
429 VP8E_SET_NOISE_SENSITIVITY, VP8E_SET_SHARPNESS, VP8E_SET_STATIC_THRESHOLD, | 430 VP8E_SET_SHARPNESS, VP8E_SET_STATIC_THRESHOLD, |
430 VP9E_SET_TILE_COLUMNS, VP9E_SET_TILE_ROWS, | 431 VP9E_SET_TILE_COLUMNS, VP9E_SET_TILE_ROWS, |
431 VP8E_SET_ARNR_MAXFRAMES, VP8E_SET_ARNR_STRENGTH, VP8E_SET_ARNR_TYPE, | 432 VP8E_SET_ARNR_MAXFRAMES, VP8E_SET_ARNR_STRENGTH, VP8E_SET_ARNR_TYPE, |
432 VP8E_SET_TUNING, VP8E_SET_CQ_LEVEL, VP8E_SET_MAX_INTRA_BITRATE_PCT, | 433 VP8E_SET_TUNING, VP8E_SET_CQ_LEVEL, VP8E_SET_MAX_INTRA_BITRATE_PCT, |
433 VP9E_SET_LOSSLESS, VP9E_SET_FRAME_PARALLEL_DECODING, VP9E_SET_AQ_MODE, | 434 VP9E_SET_LOSSLESS, VP9E_SET_FRAME_PARALLEL_DECODING, VP9E_SET_AQ_MODE, |
434 VP9E_SET_FRAME_PERIODIC_BOOST, VP9E_SET_TUNE_CONTENT, | 435 VP9E_SET_FRAME_PERIODIC_BOOST, VP9E_SET_NOISE_SENSITIVITY, |
| 436 VP9E_SET_TUNE_CONTENT, |
435 0 | 437 0 |
436 }; | 438 }; |
437 #endif | 439 #endif |
438 | 440 |
439 static const arg_def_t *no_args[] = { NULL }; | 441 static const arg_def_t *no_args[] = { NULL }; |
440 | 442 |
441 void usage_exit() { | 443 void usage_exit() { |
442 int i; | 444 int i; |
443 | 445 |
444 fprintf(stderr, "Usage: %s <options> -o dst_filename src_filename \n", | 446 fprintf(stderr, "Usage: %s <options> -o dst_filename src_filename \n", |
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2341 | 2343 |
2342 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH | 2344 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH |
2343 if (allocated_raw_shift) | 2345 if (allocated_raw_shift) |
2344 vpx_img_free(&raw_shift); | 2346 vpx_img_free(&raw_shift); |
2345 #endif | 2347 #endif |
2346 vpx_img_free(&raw); | 2348 vpx_img_free(&raw); |
2347 free(argv); | 2349 free(argv); |
2348 free(streams); | 2350 free(streams); |
2349 return res ? EXIT_FAILURE : EXIT_SUCCESS; | 2351 return res ? EXIT_FAILURE : EXIT_SUCCESS; |
2350 } | 2352 } |
OLD | NEW |