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 18 matching lines...) Expand all Loading... |
29 // is processed, then U, then V. It is important to honor the image's `stride` | 29 // is processed, then U, then V. It is important to honor the image's `stride` |
30 // values. | 30 // values. |
31 | 31 |
32 #include <stdio.h> | 32 #include <stdio.h> |
33 #include <stdlib.h> | 33 #include <stdlib.h> |
34 #include <string.h> | 34 #include <string.h> |
35 | 35 |
36 #include "vpx/vp8dx.h" | 36 #include "vpx/vp8dx.h" |
37 #include "vpx/vpx_decoder.h" | 37 #include "vpx/vpx_decoder.h" |
38 | 38 |
39 #include "./md5_utils.h" | 39 #include "../md5_utils.h" |
40 #include "./tools_common.h" | 40 #include "../tools_common.h" |
41 #include "./video_reader.h" | 41 #include "../video_reader.h" |
42 #include "./vpx_config.h" | 42 #include "./vpx_config.h" |
43 | 43 |
44 static void get_image_md5(const vpx_image_t *img, unsigned char digest[16]) { | 44 static void get_image_md5(const vpx_image_t *img, unsigned char digest[16]) { |
45 int plane, y; | 45 int plane, y; |
46 MD5Context md5; | 46 MD5Context md5; |
47 | 47 |
48 MD5Init(&md5); | 48 MD5Init(&md5); |
49 | 49 |
50 for (plane = 0; plane < 3; ++plane) { | 50 for (plane = 0; plane < 3; ++plane) { |
51 const unsigned char *buf = img->planes[plane]; | 51 const unsigned char *buf = img->planes[plane]; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 printf("Processed %d frames.\n", frame_cnt); | 129 printf("Processed %d frames.\n", frame_cnt); |
130 if (vpx_codec_destroy(&codec)) | 130 if (vpx_codec_destroy(&codec)) |
131 die_codec(&codec, "Failed to destroy codec."); | 131 die_codec(&codec, "Failed to destroy codec."); |
132 | 132 |
133 vpx_video_reader_close(reader); | 133 vpx_video_reader_close(reader); |
134 | 134 |
135 fclose(outfile); | 135 fclose(outfile); |
136 return EXIT_SUCCESS; | 136 return EXIT_SUCCESS; |
137 } | 137 } |
OLD | NEW |