Convert XvMC to hwaccel v3
Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
c19f193c6b
commit
1c63aed232
@@ -583,17 +583,11 @@ static av_cold void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx,
|
||||
const int high_bit_depth = avctx->bits_per_raw_sample > 8;
|
||||
|
||||
if (!high_bit_depth) {
|
||||
#if FF_API_XVMC
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (!(CONFIG_MPEG_XVMC_DECODER && avctx->xvmc_acceleration > 1)) {
|
||||
if (!(CONFIG_XVMC && avctx->hwaccel && avctx->hwaccel->decode_mb)) {
|
||||
/* XvMCCreateBlocks() may not allocate 16-byte aligned blocks */
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif /* FF_API_XVMC */
|
||||
c->clear_block = ff_clear_block_sse;
|
||||
c->clear_blocks = ff_clear_blocks_sse;
|
||||
#if FF_API_XVMC
|
||||
}
|
||||
#endif /* FF_API_XVMC */
|
||||
}
|
||||
|
||||
c->vector_clipf = ff_vector_clipf_sse;
|
||||
|
Reference in New Issue
Block a user