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

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

Issue 592203002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/examples/postproc.c ('k') | source/libvpx/examples/simple_decoder.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 29 matching lines...) Expand all
40 // Observing The Effects 40 // Observing The Effects
41 // --------------------- 41 // ---------------------
42 // Use the `simple_decoder` example to decode this sample, and observe 42 // Use the `simple_decoder` example to decode this sample, and observe
43 // the change in the image at frames 22, 33, and 44. 43 // the change in the image at frames 22, 33, and 44.
44 44
45 #include <assert.h> 45 #include <assert.h>
46 #include <stdio.h> 46 #include <stdio.h>
47 #include <stdlib.h> 47 #include <stdlib.h>
48 #include <string.h> 48 #include <string.h>
49 49
50 #define VPX_CODEC_DISABLE_COMPAT 1
51 #include "vpx/vp8cx.h" 50 #include "vpx/vp8cx.h"
52 #include "vpx/vpx_encoder.h" 51 #include "vpx/vpx_encoder.h"
53 52
54 #include "./tools_common.h" 53 #include "./tools_common.h"
55 #include "./video_writer.h" 54 #include "./video_writer.h"
56 55
57 static const char *exec_name; 56 static const char *exec_name;
58 57
59 void usage_exit() { 58 void usage_exit() {
60 fprintf(stderr, "Usage: %s <codec> <width> <height> <infile> <outfile>\n", 59 fprintf(stderr, "Usage: %s <codec> <width> <height> <infile> <outfile>\n",
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 printf("Processed %d frames.\n", frame_count); 246 printf("Processed %d frames.\n", frame_count);
248 247
249 vpx_img_free(&raw); 248 vpx_img_free(&raw);
250 if (vpx_codec_destroy(&codec)) 249 if (vpx_codec_destroy(&codec))
251 die_codec(&codec, "Failed to destroy codec."); 250 die_codec(&codec, "Failed to destroy codec.");
252 251
253 vpx_video_writer_close(writer); 252 vpx_video_writer_close(writer);
254 253
255 return EXIT_SUCCESS; 254 return EXIT_SUCCESS;
256 } 255 }
OLDNEW
« no previous file with comments | « source/libvpx/examples/postproc.c ('k') | source/libvpx/examples/simple_decoder.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698