FFmpeg
Data Structures | Enumerations | Functions
codec_par.h File Reference
#include <stdint.h>
#include "libavutil/avutil.h"
#include "libavutil/rational.h"
#include "libavutil/pixfmt.h"
#include "codec_id.h"

Go to the source code of this file.

Data Structures

struct  AVCodecParameters
 This struct describes the properties of an encoded stream. More...
 

Enumerations

enum  AVFieldOrder {
  AV_FIELD_UNKNOWN, AV_FIELD_PROGRESSIVE, AV_FIELD_TT, AV_FIELD_BB,
  AV_FIELD_TB, AV_FIELD_BT
}
 

Functions

AVCodecParametersavcodec_parameters_alloc (void)
 Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0). More...
 
void avcodec_parameters_free (AVCodecParameters **par)
 Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied pointer. More...
 
int avcodec_parameters_copy (AVCodecParameters *dst, const AVCodecParameters *src)
 Copy the contents of src to dst. More...
 

Enumeration Type Documentation

Enumerator
AV_FIELD_UNKNOWN 
AV_FIELD_PROGRESSIVE 
AV_FIELD_TT 
AV_FIELD_BB 
AV_FIELD_TB 
AV_FIELD_BT 

Definition at line 36 of file codec_par.h.

Function Documentation

AVCodecParameters* avcodec_parameters_alloc ( void  )

Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0).

The returned struct must be freed with avcodec_parameters_free().

Definition at line 2070 of file utils.c.

Referenced by av_bsf_alloc(), avformat_new_stream(), ff_mov_init_hinting(), ff_rtsp_open_transport_ctx(), flv_read_packet(), mov_create_chapter_track(), mov_create_timecode_track(), and new_output_stream().

void avcodec_parameters_free ( AVCodecParameters **  par)

Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied pointer.

Definition at line 2080 of file utils.c.

Referenced by av_bsf_free(), ff_mov_close_hinting(), ff_mov_init_hinting(), ff_rtsp_open_transport_ctx(), ffmpeg_cleanup(), flv_read_packet(), free_stream(), and mov_free().

int avcodec_parameters_copy ( AVCodecParameters dst,
const AVCodecParameters src 
)