#include "libavcodec/avcodec.h"
#include "libavcodec/dsputil.h"
-void ff_dsputil_init_armv6(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth);
+void ff_dsputil_init_armv6(DSPContext *c, AVCodecContext *avctx);
#endif /* AVCODEC_ARM_DSPUTIL_ARM_H */
#include "libavcodec/dsputil.h"
#include "dsputil_arm.h"
-av_cold void ff_dsputil_init_arm(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth)
+av_cold void ff_dsputil_init_arm(DSPContext *c, AVCodecContext *avctx)
{
int cpu_flags = av_get_cpu_flags();
if (have_armv6(cpu_flags))
- ff_dsputil_init_armv6(c, avctx, high_bit_depth);
+ ff_dsputil_init_armv6(c, avctx);
}
int ff_sse16_armv6(MpegEncContext *s, uint8_t *blk1, uint8_t *blk2,
int line_size, int h);
-av_cold void ff_dsputil_init_armv6(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth)
+av_cold void ff_dsputil_init_armv6(DSPContext *c, AVCodecContext *avctx)
{
c->pix_abs[0][0] = ff_pix_abs16_armv6;
c->pix_abs[0][1] = ff_pix_abs16_x2_armv6;
av_cold void ff_dsputil_init(DSPContext *c, AVCodecContext *avctx)
{
- const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8;
-
c->sum_abs_dctelem = sum_abs_dctelem_c;
/* TODO [0] 16 [1] 8 */
c->nsse[1] = nsse8_c;
if (ARCH_ARM)
- ff_dsputil_init_arm(c, avctx, high_bit_depth);
+ ff_dsputil_init_arm(c, avctx);
if (ARCH_PPC)
- ff_dsputil_init_ppc(c, avctx, high_bit_depth);
+ ff_dsputil_init_ppc(c, avctx);
if (ARCH_X86)
- ff_dsputil_init_x86(c, avctx, high_bit_depth);
+ ff_dsputil_init_x86(c, avctx);
}
void ff_set_cmp(DSPContext *c, me_cmp_func *cmp, int type);
-void ff_dsputil_init_arm(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth);
-void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth);
-void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth);
+void ff_dsputil_init_arm(DSPContext *c, AVCodecContext *avctx);
+void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx);
+void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx);
#endif /* AVCODEC_DSPUTIL_H */
return score;
}
-av_cold void ff_dsputil_init_altivec(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth)
+av_cold void ff_dsputil_init_altivec(DSPContext *c, AVCodecContext *avctx)
{
c->pix_abs[0][1] = sad16_x2_altivec;
c->pix_abs[0][2] = sad16_y2_altivec;
#include "libavcodec/dsputil.h"
-void ff_dsputil_init_altivec(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth);
+void ff_dsputil_init_altivec(DSPContext *c, AVCodecContext *avctx);
#endif /* AVCODEC_PPC_DSPUTIL_ALTIVEC_H */
#include "libavcodec/dsputil.h"
#include "dsputil_altivec.h"
-av_cold void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth)
+av_cold void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx)
{
if (PPC_ALTIVEC(av_get_cpu_flags())) {
- ff_dsputil_init_altivec(c, avctx, high_bit_depth);
+ ff_dsputil_init_altivec(c, avctx);
}
}
#include "libavcodec/dsputil.h"
#include "dsputil_x86.h"
-av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth)
+av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx)
{
if (CONFIG_ENCODERS)
- ff_dsputilenc_init_mmx(c, avctx, high_bit_depth);
+ ff_dsputilenc_init_mmx(c, avctx);
}
#include "libavcodec/avcodec.h"
#include "libavcodec/dsputil.h"
-void ff_dsputilenc_init_mmx(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth);
+void ff_dsputilenc_init_mmx(DSPContext *c, AVCodecContext *avctx);
void ff_dsputil_init_pix_mmx(DSPContext *c, AVCodecContext *avctx);
#endif /* AVCODEC_X86_DSPUTIL_X86_H */
hadamard_func(sse2)
hadamard_func(ssse3)
-av_cold void ff_dsputilenc_init_mmx(DSPContext *c, AVCodecContext *avctx,
- unsigned high_bit_depth)
+av_cold void ff_dsputilenc_init_mmx(DSPContext *c, AVCodecContext *avctx)
{
int cpu_flags = av_get_cpu_flags();