From 2ed008204d5467be03a0a3af1e293b2f7038d0a0 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 11 Feb 2013 17:04:27 -0800 Subject: h264: Add add_pixels4/8() to h264dsp, and remove add_pixels4 from dsputil MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These functions are mostly H264-specific (the only other user I can spot is bink), and this allows us to special-case some functionality for H264. Also remove the 16-bit-coeff with >8bpp versions (unused) and merge the duplicate 32-bit-coeff for >8bpp (identical). Signed-off-by: Martin Storsjö --- libavcodec/h264dsp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavcodec/h264dsp.h') diff --git a/libavcodec/h264dsp.h b/libavcodec/h264dsp.h index c6bcd9e..757caf8 100644 --- a/libavcodec/h264dsp.h +++ b/libavcodec/h264dsp.h @@ -101,6 +101,10 @@ typedef struct H264DSPContext { void (*h264_luma_dc_dequant_idct)(int16_t *output, int16_t *input /*align 16*/, int qmul); void (*h264_chroma_dc_dequant_idct)(int16_t *block, int qmul); + + /* bypass-transform */ + void (*h264_add_pixels8)(uint8_t *dst, int16_t *block, int stride); + void (*h264_add_pixels4)(uint8_t *dst, int16_t *block, int stride); } H264DSPContext; void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, -- cgit v1.1