Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-08-31 22:45:15 +0400
committerDiego Biurrun <diego@biurrun.de>2014-09-03 01:41:13 +0400
commit95c0cec03acec0a80cc1c7db48f3b2355d9e767b (patch)
treee1ad21afa12a7f9b90b9d14ca0102bc7ab5b5904 /libavcodec/jrevdct.c
parent91d305790ea0f6fe0f54b48236da42181c39c18b (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.c14
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);
+}