Module rsmpeg::avutil[][src]

Expand description

Everything related to libavutil.

Structs

AVAudioFifo
AVDictionary
AVDictionaryEntry
AVDictionaryEntryMut
AVDictionaryEntryRef
AVDictionaryMut
AVDictionaryRef
AVFrame
AVFrameSideData
AVFrameSideDataRef
AVFrameWithImageBuffer

It’s a AVFrame binded with AVImage, the AVFrame copies the buffer pointer from the AVImage.

AVImage

AVImage is a image buffer holder. It’s a self referential structure.

AVMmap

A read-only file buffer, the file is mmaped when available.

AVRational

Rational number (pair of numerator and denominator).

AVSamples

Functions

av_add_q

Add two rationals. Returns b+c.

av_cmp_q

Compare two rationals.

av_d2q

Convert a double precision floating point number to a rational. In case of infinity, the returned value is expressed as {1, 0} or {-1, 0} depending on the sign.

av_div_q

Divide one rational by another. Returns b/c.

av_gcd_q

Return the best rational so that a and b are multiple of it. If the resulting denominator is larger than max_den, return def.

av_get_channel_layout_nb_channels
av_get_default_channel_layout
av_image_fill_arrays

Setup the data pointers and linesizes based on the specified image parameters and the provided array.

av_inv_q

Invert a rational. @param q value @return 1 / q

av_make_q

Create an AVRational.

av_mul_q

Multiply two rationals. Returns b*c.

av_nearer_q

Find which of the two rationals is closer to another rational.

av_q2d

Convert an AVRational to a double. @param a AVRational to convert @return a in floating-point form @see av_d2q()

av_q2intfloat

Convert an AVRational to a IEEE 32-bit float expressed in fixed-point format.

av_sub_q

Subtract one rational from another. Returns b-c.

get_bytes_per_sample

Return number of bytes per sample, return None when sample format is unknown.

get_packed_sample_fmt

Get the packed alternative form of the given sample format, return None on error.

get_planar_sample_fmt

Get the planar alternative form of the given sample format. return None on error.

get_sample_fmt

Return a sample format corresponding to name, or None on error.

get_sample_fmt_name

Return the name of given sample_fmt, or None if sample_fmt is not recognized.

is_planar

Check if the sample format is planar.

Type Definitions

AVMotionVector
AVPixelFormat

Pixel format.

AVSampleFormat