| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |