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

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

Issue 7671004: Update libvpx snapshot to v0.9.7-p1 (Cayuga). (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: '' Created 9 years, 4 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
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 24 matching lines...) Expand all
35 35
36 va_start(ap, fmt); 36 va_start(ap, fmt);
37 vprintf(fmt, ap); 37 vprintf(fmt, ap);
38 if(fmt[strlen(fmt)-1] != '\n') 38 if(fmt[strlen(fmt)-1] != '\n')
39 printf("\n"); 39 printf("\n");
40 exit(EXIT_FAILURE); 40 exit(EXIT_FAILURE);
41 } 41 }
42 42
43 @DIE_CODEC 43 @DIE_CODEC
44 44
45 @HELPERS
46
45 int main(int argc, char **argv) { 47 int main(int argc, char **argv) {
46 FILE *infile, *outfile; 48 FILE *infile, *outfile;
47 vpx_codec_ctx_t codec; 49 vpx_codec_ctx_t codec;
48 int flags = 0, frame_cnt = 0; 50 int flags = 0, frame_cnt = 0;
49 unsigned char file_hdr[IVF_FILE_HDR_SZ]; 51 unsigned char file_hdr[IVF_FILE_HDR_SZ];
50 unsigned char frame_hdr[IVF_FRAME_HDR_SZ]; 52 unsigned char frame_hdr[IVF_FRAME_HDR_SZ];
51 unsigned char frame[256*1024]; 53 unsigned char frame[256*1024];
52 vpx_codec_err_t res; 54 vpx_codec_err_t res;
53 @@@@EXTRA_VARS 55 @@@@EXTRA_VARS
54 56
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 @@@@@@@@@@@@PROCESS_DX 94 @@@@@@@@@@@@PROCESS_DX
93 } 95 }
94 } 96 }
95 printf("Processed %d frames.\n",frame_cnt); 97 printf("Processed %d frames.\n",frame_cnt);
96 @@@@DESTROY 98 @@@@DESTROY
97 99
98 fclose(outfile); 100 fclose(outfile);
99 fclose(infile); 101 fclose(infile);
100 return EXIT_SUCCESS; 102 return EXIT_SUCCESS;
101 } 103 }
OLDNEW
« no previous file with comments | « source/libvpx/examples/decode_with_partial_drops.txt ('k') | source/libvpx/examples/encoder_tmpl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698