OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |