]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/jrevdct.c
dvbsubdec: check memory allocations and propagate errors
[ffmpeg] / libavcodec / jrevdct.c
index e6846a1d788fc18bba74a0f147162d5167c34544..8261269b25225d1fc4521997c0160d5838a7f305 100644 (file)
@@ -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);
+}