Libav
Data Structures | Macros | Enumerations | Functions | Variables
avconv.h File Reference
#include "config.h"
#include <stdint.h>
#include <stdio.h>
#include <pthread.h>
#include "cmdutils.h"
#include "libavformat/avformat.h"
#include "libavformat/avio.h"
#include "libavcodec/avcodec.h"
#include "libavfilter/avfilter.h"
#include "libavutil/avutil.h"
#include "libavutil/dict.h"
#include "libavutil/fifo.h"
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"

Go to the source code of this file.

Data Structures

struct  HWAccel
 
struct  StreamMap
 
struct  MetadataMap
 
struct  OptionsContext
 
struct  InputFilter
 
struct  OutputFilter
 
struct  FilterGraph
 
struct  InputStream
 
struct  InputFile
 
struct  OutputStream
 
struct  OutputFile
 

Macros

#define VSYNC_AUTO   -1
 
#define VSYNC_PASSTHROUGH   0
 
#define VSYNC_CFR   1
 
#define VSYNC_VFR   2
 

Enumerations

enum  HWAccelID {
  HWACCEL_NONE = 0, HWACCEL_AUTO, HWACCEL_VDPAU, HWACCEL_DXVA2,
  HWACCEL_VDA, HWACCEL_QSV, HWACCEL_VAAPI
}
 

Functions

void reset_options (OptionsContext *o)
 
void show_usage (void)
 
void opt_output_file (void *optctx, const char *filename)
 
void assert_avoptions (AVDictionary *m)
 
int guess_input_channel_layout (InputStream *ist)
 
int configure_filtergraph (FilterGraph *fg)
 
int configure_output_filter (FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
 
int ist_in_filtergraph (FilterGraph *fg, InputStream *ist)
 
int filtergraph_is_simple (FilterGraph *fg)
 
int init_simple_filtergraph (InputStream *ist, OutputStream *ost)
 
int init_complex_filtergraph (FilterGraph *fg)
 
int ifilter_parameters_from_frame (InputFilter *ifilter, const AVFrame *frame)
 
int avconv_parse_options (int argc, char **argv)
 
int vdpau_init (AVCodecContext *s)
 
int dxva2_init (AVCodecContext *s)
 
int vda_init (AVCodecContext *s)
 
int qsv_init (AVCodecContext *s)
 
int qsv_transcode_init (OutputStream *ost)
 
int vaapi_decode_init (AVCodecContext *avctx)
 
int vaapi_device_init (const char *device)
 

Variables

InputStream ** input_streams
 
int nb_input_streams
 
InputFile ** input_files
 
int nb_input_files
 
OutputStream ** output_streams
 
int nb_output_streams
 
OutputFile ** output_files
 
int nb_output_files
 
FilterGraph ** filtergraphs
 
int nb_filtergraphs
 
char * vstats_filename
 
float audio_drift_threshold
 
float dts_delta_threshold
 
int audio_volume
 
int audio_sync_method
 
int video_sync_method
 
int do_benchmark
 
int do_deinterlace
 
int do_hex_dump
 
int do_pkt_dump
 
int copy_ts
 
int copy_tb
 
int exit_on_error
 
int print_stats
 
int qp_hist
 
const AVIOInterruptCB int_cb
 
const OptionDef options []
 
const HWAccel hwaccels []
 
int hwaccel_lax_profile_check
 
AVBufferRefhw_device_ctx
 

Macro Definition Documentation

◆ VSYNC_AUTO

#define VSYNC_AUTO   -1

Definition at line 46 of file avconv.h.

Referenced by do_video_out(), open_output_file(), and opt_vsync().

◆ VSYNC_PASSTHROUGH

#define VSYNC_PASSTHROUGH   0

Definition at line 47 of file avconv.h.

Referenced by do_video_out(), and opt_vsync().

◆ VSYNC_CFR

#define VSYNC_CFR   1

Definition at line 48 of file avconv.h.

Referenced by do_video_out(), open_output_file(), and opt_vsync().

◆ VSYNC_VFR

#define VSYNC_VFR   2

Definition at line 49 of file avconv.h.

Referenced by do_video_out(), and opt_vsync().

Enumeration Type Documentation

◆ HWAccelID

enum HWAccelID
Enumerator
HWACCEL_NONE 
HWACCEL_AUTO 
HWACCEL_VDPAU 
HWACCEL_DXVA2 
HWACCEL_VDA 
HWACCEL_QSV 
HWACCEL_VAAPI 

Definition at line 51 of file avconv.h.

Function Documentation

◆ reset_options()

void reset_options ( OptionsContext o)

◆ show_usage()

void show_usage ( void  )

Definition at line 2343 of file avconv_opt.c.

Referenced by main(), and show_help_default().

◆ opt_output_file()

void opt_output_file ( void optctx,
const char *  filename 
)

◆ assert_avoptions()

void assert_avoptions ( AVDictionary m)

◆ guess_input_channel_layout()

int guess_input_channel_layout ( InputStream ist)

Definition at line 1311 of file avconv.c.

Referenced by add_input_streams().

◆ configure_filtergraph()

int configure_filtergraph ( FilterGraph fg)

Definition at line 682 of file avconv_filter.c.

Referenced by ifilter_send_frame(), and poll_filters().

◆ configure_output_filter()

int configure_output_filter ( FilterGraph fg,
OutputFilter ofilter,
AVFilterInOut out 
)

Definition at line 481 of file avconv_filter.c.

Referenced by configure_filtergraph().

◆ ist_in_filtergraph()

int ist_in_filtergraph ( FilterGraph fg,
InputStream ist 
)

Definition at line 802 of file avconv_filter.c.

◆ filtergraph_is_simple()

int filtergraph_is_simple ( FilterGraph fg)

Definition at line 811 of file avconv_filter.c.

Referenced by configure_filtergraph(), and transcode_init().

◆ init_simple_filtergraph()

int init_simple_filtergraph ( InputStream ist,
OutputStream ost 
)

Referenced by open_output_file().

◆ init_complex_filtergraph()

int init_complex_filtergraph ( FilterGraph fg)

Definition at line 191 of file avconv_filter.c.

Referenced by init_complex_filters().

◆ ifilter_parameters_from_frame()

int ifilter_parameters_from_frame ( InputFilter ifilter,
const AVFrame frame 
)

Definition at line 780 of file avconv_filter.c.

Referenced by ifilter_send_frame().

◆ avconv_parse_options()

int avconv_parse_options ( int  argc,
char **  argv 
)

Definition at line 2393 of file avconv_opt.c.

Referenced by main().

◆ vdpau_init()

int vdpau_init ( AVCodecContext s)

Definition at line 145 of file avconv_vdpau.c.

◆ dxva2_init()

int dxva2_init ( AVCodecContext s)

Definition at line 405 of file avconv_dxva2.c.

◆ vda_init()

int vda_init ( AVCodecContext s)

Definition at line 105 of file avconv_vda.c.

◆ qsv_init()

int qsv_init ( AVCodecContext s)

Definition at line 58 of file avconv_qsv.c.

◆ qsv_transcode_init()

int qsv_transcode_init ( OutputStream ost)

◆ vaapi_decode_init()

int vaapi_decode_init ( AVCodecContext avctx)

Definition at line 411 of file avconv_vaapi.c.

◆ vaapi_device_init()

int vaapi_device_init ( const char *  device)

Definition at line 526 of file avconv_vaapi.c.

Referenced by opt_attach(), and vaapi_decode_init().

Variable Documentation

◆ input_streams

InputStream** input_streams

Definition at line 97 of file avconv.c.

Referenced by add_input_streams(), init_input_filter(), open_input_file(), and open_output_file().

◆ nb_input_streams

int nb_input_streams

◆ input_files

InputFile** input_files

◆ nb_input_files

int nb_input_files

◆ output_streams

OutputStream** output_streams

Definition at line 102 of file avconv.c.

Referenced by new_output_stream(), and open_output_file().

◆ nb_output_streams

int nb_output_streams

◆ output_files

OutputFile** output_files

◆ nb_output_files

int nb_output_files

◆ filtergraphs

FilterGraph** filtergraphs

◆ nb_filtergraphs

int nb_filtergraphs

◆ vstats_filename

char* vstats_filename

Definition at line 79 of file avconv_opt.c.

Referenced by avconv_cleanup(), do_video_stats(), opt_vstats_file(), and poll_filter().

◆ audio_drift_threshold

float audio_drift_threshold

Definition at line 81 of file avconv_opt.c.

Referenced by configure_input_audio_filter().

◆ dts_delta_threshold

float dts_delta_threshold

Definition at line 82 of file avconv_opt.c.

Referenced by process_input().

◆ audio_volume

int audio_volume

Definition at line 84 of file avconv_opt.c.

Referenced by configure_input_audio_filter().

◆ audio_sync_method

int audio_sync_method

Definition at line 85 of file avconv_opt.c.

Referenced by configure_input_audio_filter(), and do_audio_out().

◆ video_sync_method

int video_sync_method

Definition at line 86 of file avconv_opt.c.

Referenced by do_video_out(), open_output_file(), and opt_vsync().

◆ do_benchmark

int do_benchmark

Definition at line 87 of file avconv_opt.c.

Referenced by main().

◆ do_deinterlace

int do_deinterlace

◆ do_hex_dump

int do_hex_dump

Definition at line 88 of file avconv_opt.c.

Referenced by process_input().

◆ do_pkt_dump

int do_pkt_dump

Definition at line 89 of file avconv_opt.c.

Referenced by process_input().

◆ copy_ts

int copy_ts

Definition at line 90 of file avconv_opt.c.

Referenced by open_input_file(), and process_input().

◆ copy_tb

int copy_tb

Definition at line 91 of file avconv_opt.c.

◆ exit_on_error

int exit_on_error

Definition at line 92 of file avconv_opt.c.

Referenced by do_subtitle_out(), process_input(), process_input_packet(), and write_packet().

◆ print_stats

int print_stats

Definition at line 93 of file avconv_opt.c.

Referenced by print_report().

◆ qp_hist

int qp_hist

Definition at line 94 of file avconv_opt.c.

Referenced by print_report().

◆ int_cb

const AVIOInterruptCB int_cb

◆ options

const OptionDef options[]

◆ hwaccels

const HWAccel hwaccels[]

Definition at line 58 of file avconv_opt.c.

Referenced by get_hwaccel().

◆ hwaccel_lax_profile_check

int hwaccel_lax_profile_check

Definition at line 76 of file avconv_opt.c.

Referenced by vaapi_build_decoder_config().

◆ hw_device_ctx

AVBufferRef* hw_device_ctx