diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-08-31 22:45:15 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-09-03 01:41:13 +0400 |
commit | 95c0cec03acec0a80cc1c7db48f3b2355d9e767b (patch) | |
tree | e1ad21afa12a7f9b90b9d14ca0102bc7ab5b5904 /libavcodec/jrevdct.c | |
parent | 91d305790ea0f6fe0f54b48236da42181c39c18b (diff) |
idctdsp: Add global function pointers for {add|put}_pixels_clamped functions
These function pointers already existed in the ARM code. Adding them globally
allows calls to the function pointers to access arch-optimized versions of the
functions transparently.
Diffstat (limited to 'libavcodec/jrevdct.c')
-rw-r--r-- | libavcodec/jrevdct.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/jrevdct.c b/libavcodec/jrevdct.c index e6846a1d78..8261269b25 100644 --- a/libavcodec/jrevdct.c +++ b/libavcodec/jrevdct.c @@ -63,7 +63,9 @@ */ #include "libavutil/common.h" + #include "dct.h" +#include "idctdsp.h" #define EIGHT_BIT_SAMPLES @@ -940,3 +942,15 @@ void ff_j_rev_dct(DCTBLOCK data) dataptr++; /* advance pointer to next column */ } } + +void ff_jref_idct_put(uint8_t *dest, int line_size, int16_t *block) +{ + ff_j_rev_dct(block); + ff_put_pixels_clamped(block, dest, line_size); +} + +void ff_jref_idct_add(uint8_t *dest, int line_size, int16_t *block) +{ + ff_j_rev_dct(block); + ff_add_pixels_clamped(block, dest, line_size); +} |