Mercurial > libavcodec.hg
comparison dsputil.c @ 11921:f2007d7c3f1d libavcodec
Native VP8 decoder.
Patch by David Conrad <lessen42 gmail com> and myself.
author | rbultje |
---|---|
date | Tue, 22 Jun 2010 19:24:09 +0000 |
parents | eaf3ffb5df56 |
children | 56aba5a9761c |
comparison
equal
deleted
inserted
replaced
11920:7d04a6cec75f | 11921:f2007d7c3f1d |
---|---|
37 #include "config.h" | 37 #include "config.h" |
38 #include "lpc.h" | 38 #include "lpc.h" |
39 #include "ac3dec.h" | 39 #include "ac3dec.h" |
40 #include "vorbis.h" | 40 #include "vorbis.h" |
41 #include "png.h" | 41 #include "png.h" |
42 #include "vp8dsp.h" | |
42 | 43 |
43 uint8_t ff_cropTbl[256 + 2 * MAX_NEG_CROP] = {0, }; | 44 uint8_t ff_cropTbl[256 + 2 * MAX_NEG_CROP] = {0, }; |
44 uint32_t ff_squareTbl[512] = {0, }; | 45 uint32_t ff_squareTbl[512] = {0, }; |
45 | 46 |
46 // 0x7f7f7f7f or 0x7f7f7f7f7f7f7f7f or whatever, depending on the cpu's native arithmetic size | 47 // 0x7f7f7f7f or 0x7f7f7f7f7f7f7f7f or whatever, depending on the cpu's native arithmetic size |
2653 } | 2654 } |
2654 static void avg_rv40_qpel8_mc33_c(uint8_t *dst, uint8_t *src, int stride){ | 2655 static void avg_rv40_qpel8_mc33_c(uint8_t *dst, uint8_t *src, int stride){ |
2655 avg_pixels8_xy2_c(dst, src, stride, 8); | 2656 avg_pixels8_xy2_c(dst, src, stride, 8); |
2656 } | 2657 } |
2657 #endif /* CONFIG_RV40_DECODER */ | 2658 #endif /* CONFIG_RV40_DECODER */ |
2659 | |
2660 #if CONFIG_VP8_DECODER | |
2661 void ff_put_vp8_pixels16_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y) { | |
2662 put_pixels16_c(dst, src, stride, h); | |
2663 } | |
2664 void ff_put_vp8_pixels8_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y) { | |
2665 put_pixels8_c(dst, src, stride, h); | |
2666 } | |
2667 void ff_put_vp8_pixels4_c(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y) { | |
2668 put_pixels4_c(dst, src, stride, h); | |
2669 } | |
2670 #endif | |
2658 | 2671 |
2659 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){ | 2672 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){ |
2660 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; | 2673 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; |
2661 int i; | 2674 int i; |
2662 | 2675 |