h264dsp: 12 and 14 bit support
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jul 2012 23:34:12 +0000 (01:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Jul 2012 00:17:52 +0000 (02:17 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264dsp.c

index 6e329f2..e247677 100644 (file)
 #include "h264dsp_template.c"
 #undef BIT_DEPTH
 
+#define BIT_DEPTH 12
+#include "h264dsp_template.c"
+#undef BIT_DEPTH
+
+#define BIT_DEPTH 14
+#include "h264dsp_template.c"
+#undef BIT_DEPTH
+
 void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, const int chroma_format_idc)
 {
 #undef FUNC
@@ -107,6 +115,12 @@ void ff_h264dsp_init(H264DSPContext *c, const int bit_depth, const int chroma_fo
     case 10:
         H264_DSP(10);
         break;
+    case 12:
+        H264_DSP(12);
+        break;
+    case 14:
+        H264_DSP(14);
+        break;
     default:
         av_assert0(bit_depth<=8);
         H264_DSP(8);