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

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

Issue 958693004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 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/decode_with_drops.c ('k') | source/libvpx/examples/resize_util.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 28 matching lines...) Expand all
39 // postprocessors. VP8 is one example. The following sample code toggles 39 // postprocessors. VP8 is one example. The following sample code toggles
40 // postprocessing on and off every 15 frames. 40 // postprocessing on and off every 15 frames.
41 41
42 #include <stdio.h> 42 #include <stdio.h>
43 #include <stdlib.h> 43 #include <stdlib.h>
44 #include <string.h> 44 #include <string.h>
45 45
46 #include "vpx/vp8dx.h" 46 #include "vpx/vp8dx.h"
47 #include "vpx/vpx_decoder.h" 47 #include "vpx/vpx_decoder.h"
48 48
49 #include "./tools_common.h" 49 #include "../tools_common.h"
50 #include "./video_reader.h" 50 #include "../video_reader.h"
51 #include "./vpx_config.h" 51 #include "./vpx_config.h"
52 52
53 static const char *exec_name; 53 static const char *exec_name;
54 54
55 void usage_exit() { 55 void usage_exit() {
56 fprintf(stderr, "Usage: %s <infile> <outfile>\n", exec_name); 56 fprintf(stderr, "Usage: %s <infile> <outfile>\n", exec_name);
57 exit(EXIT_FAILURE); 57 exit(EXIT_FAILURE);
58 } 58 }
59 59
60 int main(int argc, char **argv) { 60 int main(int argc, char **argv) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 die_codec(&codec, "Failed to destroy codec"); 129 die_codec(&codec, "Failed to destroy codec");
130 130
131 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", 131 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n",
132 info->frame_width, info->frame_height, argv[2]); 132 info->frame_width, info->frame_height, argv[2]);
133 133
134 vpx_video_reader_close(reader); 134 vpx_video_reader_close(reader);
135 135
136 fclose(outfile); 136 fclose(outfile);
137 return EXIT_SUCCESS; 137 return EXIT_SUCCESS;
138 } 138 }
OLDNEW
« no previous file with comments | « source/libvpx/examples/decode_with_drops.c ('k') | source/libvpx/examples/resize_util.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698