[FFmpeg-devel] [PATCH] Generalize pixel format enum fields to int formats

S.N. Hemanth Meenakshisundaram smeenaks
Mon Jul 19 11:44:07 CEST 2010


avfilter_add_colorspace and avfilter_add_sampleformat merged,
avfilter_all_colorspaces and avfilter_all_sampleformats merged.

Also patched vf_scale since it uses avfilter_add_colorspace and wouldn't
compile with this change.

Using a union in place of enum PixelFormat formats would require nearly
all the existing filters to be patched. For the moment, int works for
both video and audio filters, so keeping it as int. I can generalize
this later on if other types of filters are introduced and its format
isn't an int.

Regards,

---
 libavfilter/avfilter.h |   18 +++++++++---------
 libavfilter/defaults.c |    2 +-
 libavfilter/formats.c  |   30 +++++++++++++++---------------
 libavfilter/vf_scale.c |    4 ++--
 4 files changed, 27 insertions(+), 27 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Generalize-pixel-format-enum-fields-to-int-formats.patch
Type: text/x-patch
Size: 6416 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100719/5cdf21de/attachment.bin>



More information about the ffmpeg-devel mailing list