dsputil: update per-arch init funcs for non-h264 high bit depth
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
@@ -333,7 +333,7 @@ DEFFUNC(avg,no_rnd,xy,16,OP_XY,PACK)
|
||||
|
||||
void dsputil_init_align(DSPContext* c, AVCodecContext *avctx)
|
||||
{
|
||||
const int high_bit_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8;
|
||||
const int high_bit_depth = avctx->bits_per_raw_sample > 8;
|
||||
|
||||
if (!high_bit_depth) {
|
||||
c->put_pixels_tab[0][0] = put_rnd_pixels16_o;
|
||||
|
||||
@@ -92,7 +92,7 @@ static void idct_add(uint8_t *dest, int line_size, DCTELEM *block)
|
||||
void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx)
|
||||
{
|
||||
const int idct_algo= avctx->idct_algo;
|
||||
const int high_bit_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8;
|
||||
const int high_bit_depth = avctx->bits_per_raw_sample > 8;
|
||||
dsputil_init_align(c,avctx);
|
||||
|
||||
if (!high_bit_depth)
|
||||
|
||||
Reference in New Issue
Block a user