mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Deprecate obsolete XvMC hardware decoding support
XvMC has long ago been superseded by newer acceleration APIs, such as VDPAU, and few downstreams still support it. Furthermore XvMC is not implemented within the hwaccel framework, but requires its own specific code in the MPEG-1/2 decoder, which is a maintenance burden.
This commit is contained in:
parent
c7f7bfc9e3
commit
19e30a58fc
18 changed files with 151 additions and 45 deletions
|
|
@ -611,11 +611,15 @@ 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
|
||||
if (!(CONFIG_MPEG_XVMC_DECODER && avctx->xvmc_acceleration > 1)) {
|
||||
/* XvMCCreateBlocks() may not allocate 16-byte aligned blocks */
|
||||
c->clear_block = ff_clear_block_sse;
|
||||
c->clear_blocks = ff_clear_blocks_sse;
|
||||
#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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue