| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // | 49 // |
| 50 // Making The Drop Decision | 50 // Making The Drop Decision |
| 51 // ------------------------ | 51 // ------------------------ |
| 52 // The example decides whether to drop the frame based on the current | 52 // The example decides whether to drop the frame based on the current |
| 53 // frame number, immediately before decoding the frame. | 53 // frame number, immediately before decoding the frame. |
| 54 | 54 |
| 55 #include <stdio.h> | 55 #include <stdio.h> |
| 56 #include <stdlib.h> | 56 #include <stdlib.h> |
| 57 #include <string.h> | 57 #include <string.h> |
| 58 | 58 |
| 59 #define VPX_CODEC_DISABLE_COMPAT 1 | |
| 60 | |
| 61 #include "vpx/vp8dx.h" | 59 #include "vpx/vp8dx.h" |
| 62 #include "vpx/vpx_decoder.h" | 60 #include "vpx/vpx_decoder.h" |
| 63 | 61 |
| 64 #include "./tools_common.h" | 62 #include "./tools_common.h" |
| 65 #include "./video_reader.h" | 63 #include "./video_reader.h" |
| 66 #include "./vpx_config.h" | 64 #include "./vpx_config.h" |
| 67 | 65 |
| 68 static const char *exec_name; | 66 static const char *exec_name; |
| 69 | 67 |
| 70 void usage_exit() { | 68 void usage_exit() { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 die_codec(&codec, "Failed to destroy codec."); | 143 die_codec(&codec, "Failed to destroy codec."); |
| 146 | 144 |
| 147 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", | 145 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", |
| 148 info->frame_width, info->frame_height, argv[2]); | 146 info->frame_width, info->frame_height, argv[2]); |
| 149 | 147 |
| 150 vpx_video_reader_close(reader); | 148 vpx_video_reader_close(reader); |
| 151 fclose(outfile); | 149 fclose(outfile); |
| 152 | 150 |
| 153 return EXIT_SUCCESS; | 151 return EXIT_SUCCESS; |
| 154 } | 152 } |
| OLD | NEW |