| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 10 matching lines...) Expand all Loading... |
| 21 #include "./vpx_config.h" | 21 #include "./vpx_config.h" |
| 22 #include "../vpx_ports/vpx_timer.h" | 22 #include "../vpx_ports/vpx_timer.h" |
| 23 #include "vpx/vp8cx.h" | 23 #include "vpx/vp8cx.h" |
| 24 #include "vpx/vpx_encoder.h" | 24 #include "vpx/vpx_encoder.h" |
| 25 | 25 |
| 26 #include "../tools_common.h" | 26 #include "../tools_common.h" |
| 27 #include "../video_writer.h" | 27 #include "../video_writer.h" |
| 28 | 28 |
| 29 static const char *exec_name; | 29 static const char *exec_name; |
| 30 | 30 |
| 31 void usage_exit() { | 31 void usage_exit(void) { |
| 32 exit(EXIT_FAILURE); | 32 exit(EXIT_FAILURE); |
| 33 } | 33 } |
| 34 | 34 |
| 35 // Denoiser states, for temporal denoising. | 35 // Denoiser states, for temporal denoising. |
| 36 enum denoiserState { | 36 enum denoiserState { |
| 37 kDenoiserOff, | 37 kDenoiserOff, |
| 38 kDenoiserOnYOnly, | 38 kDenoiserOnYOnly, |
| 39 kDenoiserOnYUV, | 39 kDenoiserOnYUV, |
| 40 kDenoiserOnYUVAggressive, | 40 kDenoiserOnYUVAggressive, |
| 41 kDenoiserOnAdaptive | 41 kDenoiserOnAdaptive |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 if (vpx_codec_destroy(&codec)) | 801 if (vpx_codec_destroy(&codec)) |
| 802 die_codec(&codec, "Failed to destroy codec"); | 802 die_codec(&codec, "Failed to destroy codec"); |
| 803 | 803 |
| 804 // Try to rewrite the output file headers with the actual frame count. | 804 // Try to rewrite the output file headers with the actual frame count. |
| 805 for (i = 0; i < cfg.ts_number_layers; ++i) | 805 for (i = 0; i < cfg.ts_number_layers; ++i) |
| 806 vpx_video_writer_close(outfile[i]); | 806 vpx_video_writer_close(outfile[i]); |
| 807 | 807 |
| 808 vpx_img_free(&raw); | 808 vpx_img_free(&raw); |
| 809 return EXIT_SUCCESS; | 809 return EXIT_SUCCESS; |
| 810 } | 810 } |
| OLD | NEW |