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

Side by Side Diff: source/libvpx/examples/vpx_temporal_svc_encoder.c

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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/examples/vp9_spatial_svc_encoder.c ('k') | source/libvpx/libs.mk » ('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) 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
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
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 }
OLDNEW
« no previous file with comments | « source/libvpx/examples/vp9_spatial_svc_encoder.c ('k') | source/libvpx/libs.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698