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

Side by Side Diff: source/libvpx/examples/vp8cx_set_ref.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/twopass_encoder.c ('k') | source/libvpx/examples/vp9_lossless_encoder.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // key-frame (indicated by a 'K'). Supply that frame number as an argument 46 // key-frame (indicated by a 'K'). Supply that frame number as an argument
47 // to this example, and observe that no key-frame is generated. 47 // to this example, and observe that no key-frame is generated.
48 48
49 #include <stdio.h> 49 #include <stdio.h>
50 #include <stdlib.h> 50 #include <stdlib.h>
51 #include <string.h> 51 #include <string.h>
52 52
53 #include "vpx/vp8cx.h" 53 #include "vpx/vp8cx.h"
54 #include "vpx/vpx_encoder.h" 54 #include "vpx/vpx_encoder.h"
55 55
56 #include "./tools_common.h" 56 #include "../tools_common.h"
57 #include "./video_writer.h" 57 #include "../video_writer.h"
58 58
59 static const char *exec_name; 59 static const char *exec_name;
60 60
61 void usage_exit() { 61 void usage_exit() {
62 fprintf(stderr, "Usage: %s <width> <height> <infile> <outfile> <frame>\n", 62 fprintf(stderr, "Usage: %s <width> <height> <infile> <outfile> <frame>\n",
63 exec_name); 63 exec_name);
64 exit(EXIT_FAILURE); 64 exit(EXIT_FAILURE);
65 } 65 }
66 66
67 static int encode_frame(vpx_codec_ctx_t *codec, 67 static int encode_frame(vpx_codec_ctx_t *codec,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 printf("Processed %d frames.\n", frame_count); 185 printf("Processed %d frames.\n", frame_count);
186 186
187 vpx_img_free(&raw); 187 vpx_img_free(&raw);
188 if (vpx_codec_destroy(&codec)) 188 if (vpx_codec_destroy(&codec))
189 die_codec(&codec, "Failed to destroy codec."); 189 die_codec(&codec, "Failed to destroy codec.");
190 190
191 vpx_video_writer_close(writer); 191 vpx_video_writer_close(writer);
192 192
193 return EXIT_SUCCESS; 193 return EXIT_SUCCESS;
194 } 194 }
OLDNEW
« no previous file with comments | « source/libvpx/examples/twopass_encoder.c ('k') | source/libvpx/examples/vp9_lossless_encoder.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698