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

Side by Side Diff: source/libvpx/vpxdec.c

Issue 290653003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 7 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
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 #include "vpx_ports/mem_ops.h" 26 #include "vpx_ports/mem_ops.h"
27 #include "vpx_ports/vpx_timer.h" 27 #include "vpx_ports/vpx_timer.h"
28 28
29 #if CONFIG_VP8_DECODER || CONFIG_VP9_DECODER 29 #if CONFIG_VP8_DECODER || CONFIG_VP9_DECODER
30 #include "vpx/vp8dx.h" 30 #include "vpx/vp8dx.h"
31 #endif 31 #endif
32 32
33 #include "./md5_utils.h" 33 #include "./md5_utils.h"
34 34
35 #include "./tools_common.h" 35 #include "./tools_common.h"
36 #if CONFIG_WEBM_IO
36 #include "./webmdec.h" 37 #include "./webmdec.h"
38 #endif
37 #include "./y4menc.h" 39 #include "./y4menc.h"
38 40
39 static const char *exec_name; 41 static const char *exec_name;
40 42
41 struct VpxDecInputContext { 43 struct VpxDecInputContext {
42 struct VpxInputContext *vpx_input_ctx; 44 struct VpxInputContext *vpx_input_ctx;
43 struct WebmInputContext *webm_ctx; 45 struct WebmInputContext *webm_ctx;
44 }; 46 };
45 47
46 static const arg_def_t looparg = ARG_DEF(NULL, "loops", 1, 48 static const arg_def_t looparg = ARG_DEF(NULL, "loops", 1,
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 523
522 const char *outfile_pattern = NULL; 524 const char *outfile_pattern = NULL;
523 char outfile_name[PATH_MAX] = {0}; 525 char outfile_name[PATH_MAX] = {0};
524 FILE *outfile = NULL; 526 FILE *outfile = NULL;
525 527
526 MD5Context md5_ctx; 528 MD5Context md5_ctx;
527 unsigned char md5_digest[16]; 529 unsigned char md5_digest[16];
528 530
529 struct VpxDecInputContext input = {0}; 531 struct VpxDecInputContext input = {0};
530 struct VpxInputContext vpx_input_ctx = {0}; 532 struct VpxInputContext vpx_input_ctx = {0};
533 #if CONFIG_WEBM_IO
531 struct WebmInputContext webm_ctx = {0}; 534 struct WebmInputContext webm_ctx = {0};
535 input.webm_ctx = &webm_ctx;
536 #endif
532 input.vpx_input_ctx = &vpx_input_ctx; 537 input.vpx_input_ctx = &vpx_input_ctx;
533 input.webm_ctx = &webm_ctx;
534 538
535 /* Parse command line */ 539 /* Parse command line */
536 exec_name = argv_[0]; 540 exec_name = argv_[0];
537 argv = argv_dup(argc - 1, argv_ + 1); 541 argv = argv_dup(argc - 1, argv_ + 1);
538 542
539 for (argi = argj = argv; (*argj = *argi); argi += arg.argv_step) { 543 for (argi = argj = argv; (*argj = *argi); argi += arg.argv_step) {
540 memset(&arg, 0, sizeof(arg)); 544 memset(&arg, 0, sizeof(arg));
541 arg.argv_step = 1; 545 arg.argv_step = 1;
542 546
543 if (arg_match(&arg, &codecarg, argi)) { 547 if (arg_match(&arg, &codecarg, argi)) {
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 if (arg_match(&arg, &looparg, argi)) { 989 if (arg_match(&arg, &looparg, argi)) {
986 loops = arg_parse_uint(&arg); 990 loops = arg_parse_uint(&arg);
987 break; 991 break;
988 } 992 }
989 } 993 }
990 free(argv); 994 free(argv);
991 for (i = 0; !error && i < loops; i++) 995 for (i = 0; !error && i < loops; i++)
992 error = main_loop(argc, argv_); 996 error = main_loop(argc, argv_);
993 return error; 997 return error;
994 } 998 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698