diff options
author | James Almer <jamrial@gmail.com> | 2017-01-08 01:04:39 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-01-13 04:53:04 +0300 |
commit | 5ac1dd8e231987c022a860c6b1961b038a84b613 (patch) | |
tree | 594a5e75a7b36a95985fef7779071900a763266a /libavcodec/ppc | |
parent | 3222786c5ad9f6ca94ca4cd80a4329a276d65aaa (diff) |
lossless_videodsp: move shared functions from huffyuvdsp
Several codecs other than huffyuv use them.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/Makefile | 2 | ||||
-rw-r--r-- | libavcodec/ppc/lossless_videodsp_altivec.c (renamed from libavcodec/ppc/huffyuvdsp_altivec.c) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ppc/Makefile b/libavcodec/ppc/Makefile index 56a13981b5..ae774a07f2 100644 --- a/libavcodec/ppc/Makefile +++ b/libavcodec/ppc/Makefile @@ -10,8 +10,8 @@ OBJS-$(CONFIG_H264CHROMA) += ppc/h264chroma_init.o OBJS-$(CONFIG_H264DSP) += ppc/h264dsp.o ppc/hpeldsp_altivec.o OBJS-$(CONFIG_H264QPEL) += ppc/h264qpel.o OBJS-$(CONFIG_HPELDSP) += ppc/hpeldsp_altivec.o -OBJS-$(CONFIG_HUFFYUVDSP) += ppc/huffyuvdsp_altivec.o OBJS-$(CONFIG_IDCTDSP) += ppc/idctdsp.o +OBJS-$(CONFIG_LLVIDDSP) += ppc/lossless_videodsp_altivec.o OBJS-$(CONFIG_ME_CMP) += ppc/me_cmp.o OBJS-$(CONFIG_MPEGAUDIODSP) += ppc/mpegaudiodsp_altivec.o OBJS-$(CONFIG_MPEGVIDEO) += ppc/mpegvideo_altivec.o \ diff --git a/libavcodec/ppc/huffyuvdsp_altivec.c b/libavcodec/ppc/lossless_videodsp_altivec.c index 6701524e4a..e17abaa8f9 100644 --- a/libavcodec/ppc/huffyuvdsp_altivec.c +++ b/libavcodec/ppc/lossless_videodsp_altivec.c @@ -30,7 +30,7 @@ #include "libavutil/ppc/cpu.h" #include "libavutil/ppc/types_altivec.h" #include "libavutil/ppc/util_altivec.h" -#include "libavcodec/huffyuvdsp.h" +#include "libavcodec/lossless_videodsp.h" #if HAVE_ALTIVEC static void add_bytes_altivec(uint8_t *dst, uint8_t *src, intptr_t w) @@ -51,7 +51,7 @@ static void add_bytes_altivec(uint8_t *dst, uint8_t *src, intptr_t w) } #endif /* HAVE_ALTIVEC */ -av_cold void ff_huffyuvdsp_init_ppc(HuffYUVDSPContext *c) +av_cold void ff_llviddsp_init_ppc(LLVidDSPContext *c, AVCodecContext *avctx) { #if HAVE_ALTIVEC if (!PPC_ALTIVEC(av_get_cpu_flags())) |