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

Side by Side Diff: source/libvpx/examples/decoder_tmpl.txt

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DEC_INCLUDES 1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DEC_INCLUDES
2 #define VPX_CODEC_DISABLE_COMPAT 1 2 #define VPX_CODEC_DISABLE_COMPAT 1
3 #include "vpx/vpx_decoder.h" 3 #include "vpx/vpx_decoder.h"
4 #include "vpx/vp8dx.h" 4 #include "vpx/vp9dx.h"
5 #define interface (vpx_codec_vp8_dx()) 5 #define interface (vpx_codec_vp8_dx())
6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DEC_INCLUDES 6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DEC_INCLUDES
7 7
8 8
9 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DIE_CODEC 9 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DIE_CODEC
10 static void die_codec(vpx_codec_ctx_t *ctx, const char *s) { 10 static void die_codec(vpx_codec_ctx_t *ctx, const char *s) {
11 const char *detail = vpx_codec_error_detail(ctx); 11 const char *detail = vpx_codec_error_detail(ctx);
12 12
13 printf("%s: %s\n", s, vpx_codec_error(ctx)); 13 printf("%s: %s\n", s, vpx_codec_error(ctx));
14 if(detail) 14 if(detail)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 buf += img->stride[plane]; 53 buf += img->stride[plane];
54 } 54 }
55 } 55 }
56 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PROCESS_DX 56 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PROCESS_DX
57 57
58 58
59 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DESTROY 59 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DESTROY
60 if(vpx_codec_destroy(&codec)) 60 if(vpx_codec_destroy(&codec))
61 die_codec(&codec, "Failed to destroy codec"); 61 die_codec(&codec, "Failed to destroy codec");
62 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DESTROY 62 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DESTROY
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698