[FFmpeg-cvslog] h264pred: 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:33:51 2012 +0200| [5d05acba0e8c300b0a51ffc73c27f71ef1cafa13] | committer: Michael Niedermayer

h264pred: 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=5d05acba0e8c300b0a51ffc73c27f71ef1cafa13
---

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

diff --git a/libavcodec/h264pred.c b/libavcodec/h264pred.c
index 9943d93..a9d454a 100644
--- a/libavcodec/h264pred.c
+++ b/libavcodec/h264pred.c
@@ -40,6 +40,14 @@
 #include "h264pred_template.c"
 #undef BIT_DEPTH
 
+#define BIT_DEPTH 12
+#include "h264pred_template.c"
+#undef BIT_DEPTH
+
+#define BIT_DEPTH 14
+#include "h264pred_template.c"
+#undef BIT_DEPTH
+
 static void pred4x4_vertical_vp8_c(uint8_t *src, const uint8_t *topright, int stride){
     const unsigned lt = src[-1-1*stride];
     LOAD_TOP_EDGE
@@ -528,6 +536,12 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co
         case 10:
             H264_PRED(10)
             break;
+        case 12:
+            H264_PRED(12)
+            break;
+        case 14:
+            H264_PRED(14)
+            break;
         default:
             av_assert0(bit_depth<=8);
             H264_PRED(8)



More information about the ffmpeg-cvslog mailing list