mirror of https://git.ffmpeg.org/ffmpeg.git
h264pred: 12 and 14 bit support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
69d5e40e5a
commit
5d05acba0e
|
@ -40,6 +40,14 @@
|
||||||
#include "h264pred_template.c"
|
#include "h264pred_template.c"
|
||||||
#undef BIT_DEPTH
|
#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){
|
static void pred4x4_vertical_vp8_c(uint8_t *src, const uint8_t *topright, int stride){
|
||||||
const unsigned lt = src[-1-1*stride];
|
const unsigned lt = src[-1-1*stride];
|
||||||
LOAD_TOP_EDGE
|
LOAD_TOP_EDGE
|
||||||
|
@ -528,6 +536,12 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co
|
||||||
case 10:
|
case 10:
|
||||||
H264_PRED(10)
|
H264_PRED(10)
|
||||||
break;
|
break;
|
||||||
|
case 12:
|
||||||
|
H264_PRED(12)
|
||||||
|
break;
|
||||||
|
case 14:
|
||||||
|
H264_PRED(14)
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
av_assert0(bit_depth<=8);
|
av_assert0(bit_depth<=8);
|
||||||
H264_PRED(8)
|
H264_PRED(8)
|
||||||
|
|
Loading…
Reference in New Issue