Hi,

On Sat, Jan 26, 2013 at 4:58 PM, Daniel Kang <[email protected]> wrote:
> ---
> Make hpeldsp.asm
> ---
>  libavcodec/x86/Makefile               |    2 +
>  libavcodec/x86/dsputil.asm            |  142 ++++++
>  libavcodec/x86/dsputil_avg_template.c |  789 ++---------------------------
>  libavcodec/x86/dsputil_mmx.c          |  874 
> ++++++++++++---------------------
>  libavcodec/x86/hpeldsp.asm            |  465 ++++++++++++++++++
>  libavcodec/x86/mpeg4qpel.asm          |  422 ++++++++++++++++
>  libavcodec/x86/vc1dsp_mmx.c           |    4 +
>  7 files changed, 1386 insertions(+), 1312 deletions(-)
>  create mode 100644 libavcodec/x86/hpeldsp.asm
>  create mode 100644 libavcodec/x86/mpeg4qpel.asm
>
> diff --git a/libavcodec/x86/Makefile b/libavcodec/x86/Makefile
> index 9b8b653..1feb060 100644
> --- a/libavcodec/x86/Makefile
> +++ b/libavcodec/x86/Makefile
> @@ -71,3 +71,5 @@ YASM-OBJS-$(CONFIG_VP8_DECODER)        += x86/vp8dsp.o
>  YASM-OBJS                              += x86/dsputil.o                 \
>                                            x86/deinterlace.o             \
>                                            x86/fmtconvert.o              \
> +                                          x86/hpeldsp.o                 \
> +                                          x86/mpeg4qpel.o               \
> diff --git a/libavcodec/x86/dsputil.asm b/libavcodec/x86/dsputil.asm
> index 65f4b37..7953a5d 100644
> --- a/libavcodec/x86/dsputil.asm
> +++ b/libavcodec/x86/dsputil.asm
> @@ -22,6 +22,11 @@
>  %include "libavutil/x86/x86util.asm"
>
>  SECTION_RODATA
> +cextern pb_1
> +cextern pw_3
> +cextern pw_15
> +cextern pw_16
> +cextern pw_20
>  pb_f: times 16 db 15
>  pb_zzzzzzzz77777777: times 8 db -1
>  pb_7: times 8 db 7
> @@ -879,3 +884,140 @@ cglobal avg_pixels16, 4,5,4
>      lea          r0, [r0+r2*4]
>      jnz       .loop
>      REP_RET
> +
> +
> +; put_no_rnd_pixels8_l2(uint8_t *dst, uint8_t *src1, uint8_t *src2, int 
> dstStride, int src1Stride, int h)
> +%macro PUT_NO_RND_PIXELS8_L2 0
> +cglobal put_no_rnd_pixels8_l2, 6,6

I believe these are only used in mpeg4 qpel, so they can also be moved
to mpeg4qpel.asm.

Otherwise looks pretty good.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to