| 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 25 matching lines...) Expand all Loading... |
| 36 // Codec Specific Postprocessing Controls | 36 // Codec Specific Postprocessing Controls |
| 37 // -------------------------------------- | 37 // -------------------------------------- |
| 38 // Some codecs provide fine grained controls over their built-in | 38 // Some codecs provide fine grained controls over their built-in |
| 39 // postprocessors. VP8 is one example. The following sample code toggles | 39 // postprocessors. VP8 is one example. The following sample code toggles |
| 40 // postprocessing on and off every 15 frames. | 40 // postprocessing on and off every 15 frames. |
| 41 | 41 |
| 42 #include <stdio.h> | 42 #include <stdio.h> |
| 43 #include <stdlib.h> | 43 #include <stdlib.h> |
| 44 #include <string.h> | 44 #include <string.h> |
| 45 | 45 |
| 46 #define VPX_CODEC_DISABLE_COMPAT 1 | |
| 47 | |
| 48 #include "vpx/vp8dx.h" | 46 #include "vpx/vp8dx.h" |
| 49 #include "vpx/vpx_decoder.h" | 47 #include "vpx/vpx_decoder.h" |
| 50 | 48 |
| 51 #include "./tools_common.h" | 49 #include "./tools_common.h" |
| 52 #include "./video_reader.h" | 50 #include "./video_reader.h" |
| 53 #include "./vpx_config.h" | 51 #include "./vpx_config.h" |
| 54 | 52 |
| 55 static const char *exec_name; | 53 static const char *exec_name; |
| 56 | 54 |
| 57 void usage_exit() { | 55 void usage_exit() { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 die_codec(&codec, "Failed to destroy codec"); | 129 die_codec(&codec, "Failed to destroy codec"); |
| 132 | 130 |
| 133 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", | 131 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", |
| 134 info->frame_width, info->frame_height, argv[2]); | 132 info->frame_width, info->frame_height, argv[2]); |
| 135 | 133 |
| 136 vpx_video_reader_close(reader); | 134 vpx_video_reader_close(reader); |
| 137 | 135 |
| 138 fclose(outfile); | 136 fclose(outfile); |
| 139 return EXIT_SUCCESS; | 137 return EXIT_SUCCESS; |
| 140 } | 138 } |
| OLD | NEW |