[FFmpeg-devel] [PATCH] Extend show_pix_fmts() to make it print the input/output support
Michael Niedermayer
michaelni
Sat Jan 30 17:21:27 CET 2010
On Sat, Jan 30, 2010 at 04:54:08PM +0100, Stefano Sabatini wrote:
> Hi, as in subject.
>
> Resulting output looks like:
> name nb_channels depth is_alpha input output
> yuv420p 3 8 n y y
> yuyv422 1 8 n y y
> rgb24 3 8 n y y
> bgr24 3 8 n y y
> yuv422p 3 8 n y y
> yuv444p 3 8 n y y
> yuv410p 3 8 n y y
> yuv411p 3 8 n y y
> gray 1 8 n y y
> monow 1 1 n y y
> monob 1 1 n y y
> pal8 4 8 y y n
> yuvj420p 3 8 n n n
> yuvj422p 3 8 n n n
> yuvj444p 3 8 n n n
no ?
> xvmcmc 0 0 n n n
> xvmcidct 0 0 n n n
well
[...]
> This can be parsed to get the list of input/output format with
> something of the kind:
>
> in_pix_fmts=
> $(ffplay -pix_fmts | egrep '[[:alnum:]_]+ +[[:digit:]] +[[:digit:]]+ +[yn] +[y]+ +[yn]' | cut -f1 -d" ")
>
> out_pix_fmts=
> $(ffplay -pix_fmts | egrep '[[:alnum:]_]+ +[[:digit:]] +[[:digit:]]+ +[yn] +[yn]+ +[y]' | cut -f1 -d" ")
how many people can write this and not just look in the source?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100130/34e77993/attachment.pgp>
More information about the ffmpeg-devel
mailing list