FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dv_profile.h File Reference
#include <stdint.h>
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  AVDVProfile
 

Macros

#define DV_PROFILE_BYTES   (6 * 80) /* 6 DIF blocks */
 

Functions

const AVDVProfileav_dv_frame_profile (const AVDVProfile *sys, const uint8_t *frame, unsigned buf_size)
 Get a DV profile for the provided compressed frame. More...
 
const AVDVProfileav_dv_codec_profile (int width, int height, enum AVPixelFormat pix_fmt)
 Get a DV profile for the provided stream parameters. More...
 
const AVDVProfileav_dv_codec_profile2 (int width, int height, enum AVPixelFormat pix_fmt, AVRational frame_rate)
 Get a DV profile for the provided stream parameters. More...
 

Macro Definition Documentation

#define DV_PROFILE_BYTES   (6 * 80) /* 6 DIF blocks */

Definition at line 30 of file dv_profile.h.

Referenced by avpriv_dv_produce_packet(), dv_read_header(), and ff_dv_frame_profile().

Function Documentation

const AVDVProfile* av_dv_frame_profile ( const AVDVProfile sys,
const uint8_t frame,
unsigned  buf_size 
)

Get a DV profile for the provided compressed frame.

Parameters
systhe profile used for the previous frame, may be NULL
framethe compressed data buffer
buf_sizesize of the buffer in bytes
Returns
the DV profile for the supplied data or NULL on failure

Definition at line 300 of file dv_profile.c.

Referenced by avpriv_dv_produce_packet(), dv_read_header(), and mxf_parse_dv_frame().

const AVDVProfile* av_dv_codec_profile ( int  width,
int  height,
enum AVPixelFormat  pix_fmt 
)

Get a DV profile for the provided stream parameters.

Definition at line 306 of file dv_profile.c.

const AVDVProfile* av_dv_codec_profile2 ( int  width,
int  height,
enum AVPixelFormat  pix_fmt,
AVRational  frame_rate 
)

Get a DV profile for the provided stream parameters.

The frame rate is used as a best-effort parameter.

Definition at line 316 of file dv_profile.c.

Referenced by av_dv_codec_profile(), dv_init_mux(), and dvvideo_encode_init().