libavcore/parseutils.h File Reference

misc parsing utilities for libavcore More...

#include "libavutil/rational.h"

Go to the source code of this file.

Functions

int av_parse_video_size (int *width_ptr, int *height_ptr, const char *str)
 Parse str and put in width_ptr and height_ptr the detected values.
int av_parse_video_rate (AVRational *rate, const char *str)
 Parse str and store the detected values in *rate.


Detailed Description

misc parsing utilities for libavcore

Definition in file parseutils.h.


Function Documentation

int av_parse_video_rate ( AVRational rate,
const char *  str 
)

Parse str and store the detected values in *rate.

Parameters:
[in,out] rate pointer to the AVRational which will contain the detected frame rate
[in] str the string to parse: it has to be a string in the format rate_num / rate_den, a float number or a valid video rate abbreviation
Returns:
>= 0 on success, a negative error code otherwise

Definition at line 117 of file parseutils.c.

Referenced by av_parse_video_frame_rate(), opt_frame_rate(), parse_ffconfig(), and parse_frame_rate().

int av_parse_video_size ( int *  width_ptr,
int *  height_ptr,
const char *  str 
)

Parse str and put in width_ptr and height_ptr the detected values.

Parameters:
[in,out] width_ptr pointer to the variable which will contain the detected width value
[in,out] height_ptr pointer to the variable which will contain the detected height value
[in] str the string to parse: it has to be a string in the format width x height or a valid video size abbreviation.
Returns:
>= 0 on success, a negative error code otherwise

Definition at line 89 of file parseutils.c.

Referenced by av_parse_video_frame_size(), opt_frame_size(), parse_ffconfig(), and parse_image_size().


Generated on Wed Nov 17 12:34:26 2010 for FFmpeg by  doxygen 1.5.6