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

Side by Side Diff: source/libvpx/examples/decode_to_md5.c

Issue 592203002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/examples.mk ('k') | source/libvpx/examples/decode_with_drops.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 15 matching lines...) Expand all
26 // Processing The Decoded Data 26 // Processing The Decoded Data
27 // --------------------------- 27 // ---------------------------
28 // Each row of the image is passed to the MD5 accumulator. First the Y plane 28 // Each row of the image is passed to the MD5 accumulator. First the Y plane
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 #define VPX_CODEC_DISABLE_COMPAT 1
37
38 #include "vpx/vp8dx.h" 36 #include "vpx/vp8dx.h"
39 #include "vpx/vpx_decoder.h" 37 #include "vpx/vpx_decoder.h"
40 38
41 #include "./md5_utils.h" 39 #include "./md5_utils.h"
42 #include "./tools_common.h" 40 #include "./tools_common.h"
43 #include "./video_reader.h" 41 #include "./video_reader.h"
44 #include "./vpx_config.h" 42 #include "./vpx_config.h"
45 43
46 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]) {
47 int plane, y; 45 int plane, y;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 128
131 printf("Processed %d frames.\n", frame_cnt); 129 printf("Processed %d frames.\n", frame_cnt);
132 if (vpx_codec_destroy(&codec)) 130 if (vpx_codec_destroy(&codec))
133 die_codec(&codec, "Failed to destroy codec."); 131 die_codec(&codec, "Failed to destroy codec.");
134 132
135 vpx_video_reader_close(reader); 133 vpx_video_reader_close(reader);
136 134
137 fclose(outfile); 135 fclose(outfile);
138 return EXIT_SUCCESS; 136 return EXIT_SUCCESS;
139 } 137 }
OLDNEW
« no previous file with comments | « source/libvpx/examples.mk ('k') | source/libvpx/examples/decode_with_drops.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698