• Ivan Uskov's avatar
    libavcodec/qsvenc.c delay in 1 microsecond replaced to more appropriate 500 microseconds · 947c2aa4
    Ivan Uskov authored
    This commit replaces the 1 microsecond delay by 500 microsecond for the
    case when the MFX library does return MFX_WRN_DEVICE_BUSY status.
    In general this warning never appears for simple encoding or
    transcoding session because the GPU is so fast so it almost always is not busy and
    any delay value just does not executes.
    But for heavy transcoding tasks for example, when several QSV sessions
    are running simultaneously then using a 1-microsecond delay may
    result in 1000 iterations per each frame.
    So here possible a paradoxical case when GPU loading also loads CPU by dummy tasks.
    Official MFX/QSV samples by Intel are using 1 millisecond (i.e. 1000
    microseconds) everywhere where MFX_WRN_DEVICE_BUSY does appear.
    So 500us is a much more optimal value than 1us.
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    947c2aa4
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
cmdutils_opencl.c Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_dxva2.c Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffmpeg_vda.c Loading commit data...
ffmpeg_vdpau.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver_config.c Loading commit data...
ffserver_config.h Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...