From 5a41999d81459297183c4e27618e38f8ba719853 Mon Sep 17 00:00:00 2001 From: Mickaƫl Raulet Date: Tue, 15 Jul 2014 00:16:53 +0200 Subject: hevc/rext: basic infrastructure for supporting range extension - support for 4:2:2 and 4:4:4 up to 12 bits - add a new profile for range extension (cherry picked from commit d3c067fa65bbc871758d28aa07f54123430ca346) Signed-off-by: Michael Niedermayer --- libavcodec/hevcpred.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavcodec/hevcpred.c') diff --git a/libavcodec/hevcpred.c b/libavcodec/hevcpred.c index 4dfbfbfed0..4598229b36 100644 --- a/libavcodec/hevcpred.c +++ b/libavcodec/hevcpred.c @@ -36,6 +36,10 @@ #include "hevcpred_template.c" #undef BIT_DEPTH +#define BIT_DEPTH 12 +#include "hevcpred_template.c" +#undef BIT_DEPTH + void ff_hevc_pred_init(HEVCPredContext *hpc, int bit_depth) { #undef FUNC @@ -63,6 +67,9 @@ void ff_hevc_pred_init(HEVCPredContext *hpc, int bit_depth) case 10: HEVC_PRED(10); break; + case 12: + HEVC_PRED(12); + break; default: HEVC_PRED(8); break; -- cgit v1.2.3