diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-20 14:20:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-20 14:25:27 +0100 |
commit | 28245fb466d8deb401127e88f24aa82671936aee (patch) | |
tree | 801f6dc18556ce5b7cb137a509bcce298103c3bf /libavcodec | |
parent | c62cb1112ffc32492c99aa1e94324fc6a951abe9 (diff) | |
parent | 0e02b381b4850bbc5b8e1ce6e17447968a2ae8b5 (diff) | |
download | ffmpeg-28245fb466d8deb401127e88f24aa82671936aee.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
Remove put_no_rnd_pixels_l2 function pointer for w=16 from dsputil.
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dsputil.c | 3 | ||||
-rw-r--r-- | libavcodec/dsputil.h | 2 | ||||
-rw-r--r-- | libavcodec/dsputil_template.c | 4 | ||||
-rw-r--r-- | libavcodec/vp3.c | 2 | ||||
-rw-r--r-- | libavcodec/vp56.c | 6 | ||||
-rw-r--r-- | libavcodec/x86/dsputil_mmx.c | 8 |
6 files changed, 7 insertions, 18 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index a075ea48a0..4b3db63707 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -3053,8 +3053,7 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx) c->clear_blocks = FUNCC(clear_blocks ## dct , depth);\ c->add_pixels8 = FUNCC(add_pixels8 ## dct , depth);\ c->add_pixels4 = FUNCC(add_pixels4 ## dct , depth);\ - c->put_no_rnd_pixels_l2[0] = FUNCC(put_no_rnd_pixels16_l2, depth);\ - c->put_no_rnd_pixels_l2[1] = FUNCC(put_no_rnd_pixels8_l2 , depth);\ + c->put_no_rnd_pixels_l2 = FUNCC(put_no_rnd_pixels8_l2 , depth);\ \ c->put_h264_chroma_pixels_tab[0] = FUNCC(put_h264_chroma_mc8 , depth);\ c->put_h264_chroma_pixels_tab[1] = FUNCC(put_h264_chroma_mc4 , depth);\ diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 153e3a6fc9..3410a40341 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -309,7 +309,7 @@ typedef struct DSPContext { */ op_pixels_func avg_no_rnd_pixels_tab[4][4]; - void (*put_no_rnd_pixels_l2[2])(uint8_t *block/*align width (8 or 16)*/, const uint8_t *a/*align 1*/, const uint8_t *b/*align 1*/, int line_size, int h); + void (*put_no_rnd_pixels_l2)(uint8_t *block/*align 8*/, const uint8_t *a/*align 1*/, const uint8_t *b/*align 1*/, int line_size, int h); /** * Thirdpel motion compensation with rounding (a+b+1)>>1. diff --git a/libavcodec/dsputil_template.c b/libavcodec/dsputil_template.c index d3bd30adb8..26167d808f 100644 --- a/libavcodec/dsputil_template.c +++ b/libavcodec/dsputil_template.c @@ -582,10 +582,6 @@ PIXOP2(put, op_put) #define put_no_rnd_pixels8_c put_pixels8_c #define put_no_rnd_pixels16_c put_pixels16_c -static void FUNCC(put_no_rnd_pixels16_l2)(uint8_t *dst, const uint8_t *a, const uint8_t *b, int stride, int h){ - FUNC(put_no_rnd_pixels16_l2)(dst, a, b, stride, stride, stride, h); -} - static void FUNCC(put_no_rnd_pixels8_l2)(uint8_t *dst, const uint8_t *a, const uint8_t *b, int stride, int h){ FUNC(put_no_rnd_pixels8_l2)(dst, a, b, stride, stride, stride, h); } diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 62416172de..98e8e729d8 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1564,7 +1564,7 @@ static void render_slice(Vp3DecodeContext *s, int slice) motion_source, stride, 8); }else{ int d= (motion_x ^ motion_y)>>31; // d is 0 if motion_x and _y have the same sign, else -1 - s->dsp.put_no_rnd_pixels_l2[1]( + s->dsp.put_no_rnd_pixels_l2( output_plane + first_pixel, motion_source - d, motion_source + stride + 1 + d, diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c index 581ba517bc..13bbb02481 100644 --- a/libavcodec/vp56.c +++ b/libavcodec/vp56.c @@ -373,9 +373,9 @@ static void vp56_mc(VP56Context *s, int b, int plane, uint8_t *src, s->filter(s, dst, src_block, src_offset, src_offset+overlap_offset, stride, s->mv[b], mask, s->filter_selection, b<4); else - s->dsp.put_no_rnd_pixels_l2[1](dst, src_block+src_offset, - src_block+src_offset+overlap_offset, - stride, 8); + s->dsp.put_no_rnd_pixels_l2(dst, src_block+src_offset, + src_block+src_offset+overlap_offset, + stride, 8); } else { s->dsp.put_pixels_tab[1][0](dst, src_block+src_offset, stride, 8); } diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c index 46b5b51349..b71951e8da 100644 --- a/libavcodec/x86/dsputil_mmx.c +++ b/libavcodec/x86/dsputil_mmx.c @@ -1928,11 +1928,6 @@ static void put_vp_no_rnd_pixels8_l2_mmx(uint8_t *dst, const uint8_t *a, const u :"memory"); // STOP_TIMER("put_vp_no_rnd_pixels8_l2_mmx") } -static void put_vp_no_rnd_pixels16_l2_mmx(uint8_t *dst, const uint8_t *a, const uint8_t *b, int stride, int h) -{ - put_vp_no_rnd_pixels8_l2_mmx(dst, a, b, stride, h); - put_vp_no_rnd_pixels8_l2_mmx(dst+8, a+8, b+8, stride, h); -} #if CONFIG_DIRAC_DECODER #define DIRAC_PIXOP(OPNAME, EXT)\ @@ -2182,8 +2177,7 @@ static void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx, int mm_flags) c->add_bytes = add_bytes_mmx; - c->put_no_rnd_pixels_l2[0]= put_vp_no_rnd_pixels16_l2_mmx; - c->put_no_rnd_pixels_l2[1]= put_vp_no_rnd_pixels8_l2_mmx; + c->put_no_rnd_pixels_l2= put_vp_no_rnd_pixels8_l2_mmx; if (CONFIG_H263_DECODER || CONFIG_H263_ENCODER) { c->h263_v_loop_filter = h263_v_loop_filter_mmx; |