[FFmpeg-cvslog] h264dsp: 12 and 14 bit support

Michael Niedermayer git at videolan.org
Tue Jul 10 02:19:54 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul  5 01:34:12 2012 +0200| [1465ecf0598ee1d6218b19476994e1afd14287c3] | committer: Michael Niedermayer

h264dsp: 12 and 14 bit support

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1465ecf0598ee1d6218b19476994e1afd14287c3
---

 libavcodec/h264dsp.c |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/libavcodec/h264dsp.c b/libavcodec/h264dsp.c
index 6e329f2..e247677 100644
--- a/libavcodec/h264dsp.c
+++ b/libavcodec/h264dsp.c
@@ -42,6 +42,14 @@
 #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);



More information about the ffmpeg-cvslog mailing list