Move the video size and rate abbreviations system from libavformat to libavcodec

patch by Stefano Sabatini: [stefano dot sabatini minus lala poste dot it]
original thread:
[FFmpeg-devel] [PATCH] Redesign the video size and rateabbreviations system
date: 06/02/2007 05:30 PM

Originally committed as revision 9288 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini 2007-06-12 08:06:54 +00:00 committed by Benoit Fouet
parent 0a4f20c6c5
commit 26ef3220cf
4 changed files with 145 additions and 105 deletions

View file

@ -763,13 +763,15 @@ void dump_format(AVFormatContext *ic,
/**
* parses width and height out of string str.
* @deprecated Use av_parse_video_frame_size instead.
*/
int parse_image_size(int *width_ptr, int *height_ptr, const char *str);
attribute_deprecated int parse_image_size(int *width_ptr, int *height_ptr, const char *str);
/**
* Converts frame rate from string to a fraction.
* @deprecated Use av_parse_video_frame_rate instead.
*/
int parse_frame_rate(int *frame_rate, int *frame_rate_base, const char *arg);
attribute_deprecated int parse_frame_rate(int *frame_rate, int *frame_rate_base, const char *arg);
/**
* Converts date string to number of seconds since Jan 1st, 1970.