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

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

Issue 958693004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 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
« 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 18 matching lines...) Expand all
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
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 }
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