[FFmpeg-devel] [PATCH] Move the video size and rate abbreviations system from libavformat to libavcodec
Michael Niedermayer
michaelni
Tue Jun 5 21:15:11 CEST 2007
Hi
On Sun, Jun 03, 2007 at 11:15:06AM +0200, Stefano Sabatini wrote:
> On date Saturday 2007-06-02 22:23:30 +0200, Michael Niedermayer encoded:
> > Hi
> >
> > On Sat, Jun 02, 2007 at 07:18:56PM +0200, Stefano Sabatini wrote:
> > > On date Saturday 2007-06-02 17:30:22 +0200, Stefano Sabatini encoded:
> > > > Hi to all FFmpeg developers.
> > > >
> > > > This patch tries to fix some problems with the video size and rate
> > > > abbreviations system of FFmpeg, some of which have been discussed in
> > > > the "List supported video size and rate abbreviations" thread.
> > > >
> > > > Suggested changelog message:
> > > > "Redesigns the video size and rate abbreviations system"
> > > >
> > > > The patch does as follows:
> > > >
> > > > * moves the size and rate abbreviations system code (AbvEntry struct
> > > > definition, frame_abvs array, parse_image_size and parse_frame_rate
> > > > functions) from libavformat/utils.c to libavcodec/utils.c.
> > > >
> > > > * splits the frame_abvs array into two different video size and rate
> > > > abbreviations arrays (defined by two distinct struct) in this way:
> > > >
> > > > * AbvEntry -> AVVideoSizeAbbr
> > > > -> AVVideoRateAbbr
> > > > * frame_abvs -> avcodec_video_rate_abbrs
> > > > -> avcodec_video_size_abbrs
> > > >
> > > > AVVideo{Size,Rate}Abbr are defined in libavcodec/avcodec.h,
> > > > avcodec_video_{size,rate}_abbrs are defined in libavcodec/utils.c
> > > > and exported in libavcodec/avcodec.h.
> > > >
> > > > * changes the names of the functions parse_image_size and
> > > > parse_frame_rate in this way:
> > > >
> > > > * parse_image_size -> avcodec_parse_video_size
> > > > * parse_frame_rate -> avcodec_parse_video_rate
> > > >
> > > > Every parse_image_size and parse_frame_rate invocation present in
> > > > the code (namely in ffmpeg.c, ffplay.c and ffserver.c) is changed
> > > > accordingly.
> > > >
> > > > * updates the documentation.
> >
> > so many things in a single patch :(
> > please split it
>
> OK, let's start with something simpler.
> I'm also renaming the thread.
>
> The attached patch does as follows:
>
> * moves the size and rate abbreviations system code (AbvEntry struct
> definition, frame_abvs array, parse_image_size and parse_frame_rate
> functions) from libavformat/utils.c to libavcodec/utils.c, where
> they seem to fit more properly.
>
> parse_image_size and parse_frame_rate are now exported in
> libavcodec/avcodec.h.
>
> Suggested changelog message:
> "Moves the video size and rate abbreviations system code from
> libavformat to libavcodec."
the patch is probably ok (assuming it doesnt change the code and assuming
i didnt miss any possible ABI compatibility issues)
also maybe the minor version of lavc should be increased with the change
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070605/f683c5bd/attachment.pgp>
More information about the ffmpeg-devel
mailing list