[MPlayer-dev-eng] [RFC] Split out hwaccel code
Roberto Togni
rxt at rtogni.it
Sun Mar 6 21:52:45 CET 2016
Hi,
this is a proposed patch to split the hwaccel code out of vd_ffmpeg,
and put it into its own driver (vd_ffhw, but better names are welcome).
The main purpose of this is to be able to change vd_ffmpeg code without
the risk of breaking hwaccel (difficult to test if you don't have the
hardware); at the same time it allows to work on hwaccel in a small and
clean decoder, without all the special cases needed for the many
formats supported by vd_ffmpeg.
This also permit to use hwaccel by passing only "-vfm ffhw -vo vdpau"
on the commandline, without specifying the codec (now you have to use
"-vo vdpau -vc xxxvdpau"). If you add -vfm ffhw and the codec is not
supported by hwaccel, MPlayer will fall back to vd_ffmpeg.
The current syntax with -vc is also supported, so backward
compatibility is guaranteed.
The code is tested only with h264 and vaapi over vdpau; xvmc and other
vdpau formats are untested.
Hopefully this should accelerate the addition of more hwaccel formats
(eg. vaapi), and ease the work on buffer management in vd_ffmpeg (today
dr1 mostly fails).
Please comment.
Ciao,
Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vd_ffhw.c
Type: text/x-c++src
Size: 21136 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20160306/289715be/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwsplit.diff
Type: text/x-patch
Size: 11619 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20160306/289715be/attachment-0001.bin>
More information about the MPlayer-dev-eng
mailing list