diff options
author | Mans Rullgard <mans@mansr.com> | 2011-07-21 15:39:41 +0400 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-07-21 21:10:58 +0400 |
commit | 5cc2600964c72dad995efb18c918a63e0965f8db (patch) | |
tree | 8b0c518a870efbcb4e2cd275a6d96d1ceabd1453 /libavcodec/dsputil.h | |
parent | 0a72533e9854aa615bb6d1569dd5f0c4cd031429 (diff) |
dsputil: create 16/32-bit dctcoef versions of some functions
High bitdepth H.264 needs 32-bit transform coefficients, whereas
dnxhd does not. This creates a conflict with the templated
functions operating on DCTELEM data. This patch adds a field
allowing the caller to choose the element size in dsputil_init()
and adds the required functions.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 47c13a1adb..0ba36d77ec 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -219,6 +219,11 @@ void ff_put_signed_pixels_clamped_c(const DCTELEM *block, uint8_t *dest, int lin * DSPContext. */ typedef struct DSPContext { + /** + * Size of DCT coefficients. + */ + int dct_bits; + /* pixel ops : interface with DCT */ void (*get_pixels)(DCTELEM *block/*align 16*/, const uint8_t *pixels/*align 8*/, int line_size); void (*diff_pixels)(DCTELEM *block/*align 16*/, const uint8_t *s1/*align 8*/, const uint8_t *s2/*align 8*/, int stride); |