summaryrefslogtreecommitdiffstats
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-07-21 12:39:41 +0100
committerMans Rullgard <mans@mansr.com>2011-07-21 18:10:58 +0100
commit5cc2600964c72dad995efb18c918a63e0965f8db (patch)
tree8b0c518a870efbcb4e2cd275a6d96d1ceabd1453 /libavcodec/dsputil.h
parent0a72533e9854aa615bb6d1569dd5f0c4cd031429 (diff)
downloadffmpeg-streaming-5cc2600964c72dad995efb18c918a63e0965f8db.zip
ffmpeg-streaming-5cc2600964c72dad995efb18c918a63e0965f8db.tar.gz
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 47c13a1..0ba36d7 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);
OpenPOWER on IntegriCloud