X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264dsp.c;h=e247677df35795959bbb3af8b266618310df40d9;hb=0114c571d4c8cc1036850ced924683709390681a;hp=bd35aa30653d1c3639b1168d18a04bf700336ee0;hpb=15f8941108c5372862035ce8e3cbfd2a6cefb241;p=ffmpeg diff --git a/libavcodec/h264dsp.c b/libavcodec/h264dsp.c index bd35aa30653..e247677df35 100644 --- a/libavcodec/h264dsp.c +++ b/libavcodec/h264dsp.c @@ -26,6 +26,7 @@ */ #include +#include "libavutil/avassert.h" #include "avcodec.h" #include "h264dsp.h" @@ -41,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 @@ -106,7 +115,14 @@ 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); break; }