Basic definitions, functions for querying libavcodec capabilities, allocating core structures, etc. More...
Modules | |
AVPicture | |
Functions for working with AVPicture. | |
AVPacket | |
Types and functions for working with AVPacket. | |
Data Structures | |
struct | AVCodecDescriptor |
This struct describes the properties of a single codec described by an AVCodecID. More... | |
struct | RcOverride |
struct | AVPanScan |
Pan Scan area. More... | |
struct | AVFrame |
This structure describes decoded (raw) audio or video data. More... | |
struct | AVCodecContext |
main external API structure. More... | |
struct | AVProfile |
AVProfile. More... | |
struct | AVCodec |
AVCodec. More... | |
struct | AVHWAccel |
AVHWAccel. More... | |
struct | AVSubtitleRect |
struct | AVSubtitle |
Macros | |
#define | AV_CODEC_PROP_INTRA_ONLY (1 << 0) |
Codec uses only intra compression. More... | |
#define | AV_CODEC_PROP_LOSSY (1 << 1) |
Codec supports lossy compression. More... | |
#define | AV_CODEC_PROP_LOSSLESS (1 << 2) |
Codec supports lossless compression. More... | |
#define | FF_MAX_B_FRAMES 16 |
#define | CODEC_FLAG_QSCALE 0x0002 |
Use fixed qscale. More... | |
#define | CODEC_FLAG_4MV 0x0004 |
4 MV per MB allowed / advanced prediction for H.263. More... | |
#define | CODEC_FLAG_QPEL 0x0010 |
Use qpel MC. More... | |
#define | CODEC_FLAG_GMC 0x0020 |
Use GMC. More... | |
#define | CODEC_FLAG_MV0 0x0040 |
Always try a MB with MV=<0,0>. More... | |
#define | CODEC_FLAG_INPUT_PRESERVED 0x0100 |
The parent program guarantees that the input for B-frames containing streams is not written to for at least s->max_b_frames+1 frames, if this is not set the input will be copied. More... | |
#define | CODEC_FLAG_PASS1 0x0200 |
Use internal 2pass ratecontrol in first pass mode. More... | |
#define | CODEC_FLAG_PASS2 0x0400 |
Use internal 2pass ratecontrol in second pass mode. More... | |
#define | CODEC_FLAG_GRAY 0x2000 |
Only decode/encode grayscale. More... | |
#define | CODEC_FLAG_EMU_EDGE 0x4000 |
Don't draw edges. More... | |
#define | CODEC_FLAG_PSNR 0x8000 |
error[?] variables will be set during encoding. More... | |
#define | CODEC_FLAG_TRUNCATED |
#define | CODEC_FLAG_NORMALIZE_AQP 0x00020000 |
Normalize adaptive quantization. More... | |
#define | CODEC_FLAG_INTERLACED_DCT 0x00040000 |
Use interlaced DCT. More... | |
#define | CODEC_FLAG_LOW_DELAY 0x00080000 |
Force low delay. More... | |
#define | CODEC_FLAG_GLOBAL_HEADER 0x00400000 |
Place global headers in extradata instead of every keyframe. More... | |
#define | CODEC_FLAG_BITEXACT 0x00800000 |
Use only bitexact stuff (except (I)DCT). More... | |
#define | CODEC_FLAG_AC_PRED 0x01000000 |
H.263 advanced intra coding / MPEG-4 AC prediction. More... | |
#define | CODEC_FLAG_LOOP_FILTER 0x00000800 |
loop filter More... | |
#define | CODEC_FLAG_INTERLACED_ME 0x20000000 |
interlaced motion estimation More... | |
#define | CODEC_FLAG_CLOSED_GOP 0x80000000 |
#define | CODEC_FLAG2_FAST 0x00000001 |
Allow non spec compliant speedup tricks. More... | |
#define | CODEC_FLAG2_NO_OUTPUT 0x00000004 |
Skip bitstream encoding. More... | |
#define | CODEC_FLAG2_LOCAL_HEADER 0x00000008 |
Place global headers at every keyframe instead of in extradata. More... | |
#define | CODEC_FLAG2_CHUNKS 0x00008000 |
Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries. More... | |
#define | CODEC_CAP_DRAW_HORIZ_BAND 0x0001 |
Decoder can use draw_horiz_band callback. More... | |
#define | CODEC_CAP_DR1 0x0002 |
Codec uses get_buffer() for allocating buffers and supports custom allocators. More... | |
#define | CODEC_CAP_TRUNCATED 0x0008 |
#define | CODEC_CAP_HWACCEL 0x0010 |
#define | CODEC_CAP_DELAY 0x0020 |
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output. More... | |
#define | CODEC_CAP_SMALL_LAST_FRAME 0x0040 |
Codec can be fed a final frame with a smaller size. More... | |
#define | CODEC_CAP_HWACCEL_VDPAU 0x0080 |
Codec can export data for HW decoding (VDPAU). More... | |
#define | CODEC_CAP_SUBFRAMES 0x0100 |
Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames. More... | |
#define | CODEC_CAP_EXPERIMENTAL 0x0200 |
Codec is experimental and is thus avoided in favor of non experimental encoders. More... | |
#define | CODEC_CAP_CHANNEL_CONF 0x0400 |
Codec should fill in channel configuration and samplerate instead of container. More... | |
#define | CODEC_CAP_NEG_LINESIZES 0x0800 |
Codec is able to deal with negative linesizes. More... | |
#define | CODEC_CAP_FRAME_THREADS 0x1000 |
Codec supports frame-level multithreading. More... | |
#define | CODEC_CAP_SLICE_THREADS 0x2000 |
Codec supports slice-based (or partition-based) multithreading. More... | |
#define | CODEC_CAP_PARAM_CHANGE 0x4000 |
Codec supports changed parameters at any point. More... | |
#define | CODEC_CAP_AUTO_THREADS 0x8000 |
Codec supports avctx->thread_count == 0 (auto). More... | |
#define | CODEC_CAP_VARIABLE_FRAME_SIZE 0x10000 |
Audio encoder supports receiving a different number of samples in each call. More... | |
#define | MB_TYPE_INTRA4x4 0x0001 |
#define | MB_TYPE_INTRA16x16 0x0002 |
#define | MB_TYPE_INTRA_PCM 0x0004 |
#define | MB_TYPE_16x16 0x0008 |
#define | MB_TYPE_16x8 0x0010 |
#define | MB_TYPE_8x16 0x0020 |
#define | MB_TYPE_8x8 0x0040 |
#define | MB_TYPE_INTERLACED 0x0080 |
#define | MB_TYPE_DIRECT2 0x0100 |
#define | MB_TYPE_ACPRED 0x0200 |
#define | MB_TYPE_GMC 0x0400 |
#define | MB_TYPE_SKIP 0x0800 |
#define | MB_TYPE_P0L0 0x1000 |
#define | MB_TYPE_P1L0 0x2000 |
#define | MB_TYPE_P0L1 0x4000 |
#define | MB_TYPE_P1L1 0x8000 |
#define | MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0) |
#define | MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1) |
#define | MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1) |
#define | MB_TYPE_QUANT 0x00010000 |
#define | MB_TYPE_CBP 0x00020000 |
#define | FF_QSCALE_TYPE_MPEG1 0 |
#define | FF_QSCALE_TYPE_MPEG2 1 |
#define | FF_QSCALE_TYPE_H264 2 |
#define | FF_QSCALE_TYPE_VP56 3 |
#define | FF_BUFFER_TYPE_INTERNAL 1 |
#define | FF_BUFFER_TYPE_USER 2 |
direct rendering buffers (image is (de)allocated by user) More... | |
#define | FF_BUFFER_TYPE_SHARED 4 |
Buffer from somewhere else; don't deallocate image (data/base), all other tables are not shared. More... | |
#define | FF_BUFFER_TYPE_COPY 8 |
Just a (modified) copy of some other buffer, don't deallocate anything. More... | |
#define | FF_BUFFER_HINTS_VALID 0x01 |
#define | FF_BUFFER_HINTS_READABLE 0x02 |
#define | FF_BUFFER_HINTS_PRESERVE 0x04 |
#define | FF_BUFFER_HINTS_REUSABLE 0x08 |
#define | AVPALETTE_SIZE 1024 |
#define | AVPALETTE_COUNT 256 |
#define | AV_SUBTITLE_FLAG_FORCED 0x00000001 |
Typedefs | |
typedef struct AVCodecDescriptor | AVCodecDescriptor |
This struct describes the properties of a single codec described by an AVCodecID. More... | |
typedef struct AVPanScan | AVPanScan |
Pan Scan area. More... | |
typedef struct AVFrame | AVFrame |
This structure describes decoded (raw) audio or video data. More... | |
typedef struct AVCodecContext | AVCodecContext |
main external API structure. More... | |
typedef struct AVProfile | AVProfile |
AVProfile. More... | |
typedef struct AVCodecDefault | AVCodecDefault |
typedef struct AVCodec | AVCodec |
AVCodec. More... | |
typedef struct AVHWAccel | AVHWAccel |
AVHWAccel. More... | |
typedef struct AVSubtitleRect | AVSubtitleRect |
typedef struct AVSubtitle | AVSubtitle |
Functions | |
AVCodec * | av_codec_next (const AVCodec *c) |
If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec after c, or NULL if c is the last one. More... | |
unsigned | avcodec_version (void) |
Return the LIBAVCODEC_VERSION_INT constant. More... | |
const char * | avcodec_configuration (void) |
Return the libavcodec build-time configuration. More... | |
const char * | avcodec_license (void) |
Return the libavcodec license. More... | |
void | avcodec_register (AVCodec *codec) |
Register the codec codec and initialize libavcodec. More... | |
void | avcodec_register_all (void) |
Register all the codecs, parsers and bitstream filters which were enabled at configuration time. More... | |
AVCodecContext * | avcodec_alloc_context3 (const AVCodec *codec) |
Allocate an AVCodecContext and set its fields to default values. More... | |
int | avcodec_get_context_defaults3 (AVCodecContext *s, const AVCodec *codec) |
Set the fields of the given AVCodecContext to default values corresponding to the given codec (defaults may be codec-dependent). More... | |
const AVClass * | avcodec_get_class (void) |
Get the AVClass for AVCodecContext. More... | |
int | avcodec_copy_context (AVCodecContext *dest, const AVCodecContext *src) |
Copy the settings of the source AVCodecContext into the destination AVCodecContext. More... | |
AVFrame * | avcodec_alloc_frame (void) |
Allocate an AVFrame and set its fields to default values. More... | |
void | avcodec_get_frame_defaults (AVFrame *frame) |
Set the fields of the given AVFrame to default values. More... | |
void | avcodec_free_frame (AVFrame **frame) |
Free the frame and any dynamically allocated objects in it, e.g. More... | |
int | avcodec_open2 (AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options) |
Initialize the AVCodecContext to use the given AVCodec. More... | |
int | avcodec_close (AVCodecContext *avctx) |
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext itself). More... | |
void | avsubtitle_free (AVSubtitle *sub) |
Free all allocated data in the given subtitle struct. More... | |
Basic definitions, functions for querying libavcodec capabilities, allocating core structures, etc.
Basic definitions, functions for querying libavcodec capabilities, allocating core structures, etc.
#define AV_CODEC_PROP_INTRA_ONLY (1 << 0) |
#define AV_CODEC_PROP_LOSSLESS (1 << 2) |
#define AV_CODEC_PROP_LOSSY (1 << 1) |
#define CODEC_CAP_AUTO_THREADS 0x8000 |
#define CODEC_CAP_CHANNEL_CONF 0x0400 |
#define CODEC_CAP_DELAY 0x0020 |
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output.
NOTE: If this flag is not set, the codec is guaranteed to never be fed with with NULL data. The user can still send NULL data to the public encode or decode function, but libavcodec will not pass it along to the codec unless this flag is set.
Decoders: The decoder has a non-zero delay and needs to be fed with avpkt->data=NULL, avpkt->size=0 at the end to get the delayed data until the decoder no longer returns frames.
Encoders: The encoder needs to be fed with NULL data at the end of encoding until the encoder no longer returns data.
NOTE: For encoders implementing the AVCodec.encode2() function, setting this flag also means that the encoder must set the pts and duration for each output packet. If this flag is not set, the pts and duration will be determined by libavcodec from the input frame.
#define CODEC_CAP_DR1 0x0002 |
Codec uses get_buffer() for allocating buffers and supports custom allocators.
If not set, it might not use get_buffer() at all or use operations that assume the buffer was allocated by avcodec_default_get_buffer.
#define CODEC_CAP_DRAW_HORIZ_BAND 0x0001 |
#define CODEC_CAP_EXPERIMENTAL 0x0200 |
#define CODEC_CAP_FRAME_THREADS 0x1000 |
#define CODEC_CAP_HWACCEL_VDPAU 0x0080 |
#define CODEC_CAP_NEG_LINESIZES 0x0800 |
#define CODEC_CAP_PARAM_CHANGE 0x4000 |
#define CODEC_CAP_SLICE_THREADS 0x2000 |
#define CODEC_CAP_SMALL_LAST_FRAME 0x0040 |
#define CODEC_CAP_SUBFRAMES 0x0100 |
Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames.
This flag is reserved to the very rare category of codecs which have a bitstream that cannot be split into frames without timeconsuming operations like full decoding. Demuxers carring such bitstreams thus may return multiple frames in a packet. This has many disadvantages like prohibiting stream copy in many cases thus it should only be considered as a last resort.
#define CODEC_CAP_VARIABLE_FRAME_SIZE 0x10000 |
#define CODEC_FLAG2_CHUNKS 0x00008000 |
#define CODEC_FLAG2_FAST 0x00000001 |
#define CODEC_FLAG2_LOCAL_HEADER 0x00000008 |
#define CODEC_FLAG2_NO_OUTPUT 0x00000004 |
#define CODEC_FLAG_4MV 0x0004 |
#define CODEC_FLAG_AC_PRED 0x01000000 |
#define CODEC_FLAG_BITEXACT 0x00800000 |
#define CODEC_FLAG_GLOBAL_HEADER 0x00400000 |
#define CODEC_FLAG_GRAY 0x2000 |
#define CODEC_FLAG_INPUT_PRESERVED 0x0100 |
#define CODEC_FLAG_INTERLACED_DCT 0x00040000 |
#define CODEC_FLAG_INTERLACED_ME 0x20000000 |
#define CODEC_FLAG_MV0 0x0040 |
#define CODEC_FLAG_NORMALIZE_AQP 0x00020000 |
#define CODEC_FLAG_PASS1 0x0200 |
#define CODEC_FLAG_PASS2 0x0400 |
#define CODEC_FLAG_PSNR 0x8000 |
#define FF_BUFFER_TYPE_COPY 8 |
#define FF_BUFFER_TYPE_SHARED 4 |
#define FF_BUFFER_TYPE_USER 2 |
#define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0) |
#define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1) |
#define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1) |
typedef struct AVCodecContext AVCodecContext |
main external API structure.
New fields can be added to the end with minor version bumps. Removal, reordering and changes to existing fields require a major version bump. sizeof(AVCodecContext) must not be used outside libav*.
typedef struct AVCodecDefault AVCodecDefault |
typedef struct AVCodecDescriptor AVCodecDescriptor |
This struct describes the properties of a single codec described by an AVCodecID.
This structure describes decoded (raw) audio or video data.
AVFrame must be allocated using avcodec_alloc_frame() and freed with avcodec_free_frame(). Note that this allocates only the AVFrame itself. The buffers for the data must be managed through other means.
AVFrame is typically allocated once and then reused multiple times to hold different data (e.g. a single AVFrame to hold frames received from a decoder). In such a case, avcodec_get_frame_defaults() should be used to reset the frame to its original clean state before it is reused again.
sizeof(AVFrame) is not a part of the public ABI, so new fields may be added to the end with a minor bump.
Pan Scan area.
This specifies the area which should be displayed. Note there may be multiple such areas for one frame.
typedef struct AVSubtitle AVSubtitle |
typedef struct AVSubtitleRect AVSubtitleRect |
enum AVAudioServiceType |
enum AVChromaLocation |
X X 3 4 X X are luma samples, 1 2 1-6 are possible chroma positions X X 5 6 X 0 is undefined/unknown position.
enum AVCodecID |
Identify the syntax and semantics of the bitstream.
The principle is roughly: Two decoders with the same ID can decode the same streams. Two encoders with the same ID can encode compatible streams. There may be slight deviations from the principle due to implementation details.
If you add a codec ID to this list, add it so that
After adding new codec IDs, do not forget to add an entry to the codec descriptor list and bump libavcodec minor version.
enum AVColorPrimaries |
enum AVColorRange |
enum AVColorSpace |
enum AVFieldOrder |
enum AVSubtitleType |
If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec after c, or NULL if c is the last one.
Definition at line 101 of file utils.c.
Referenced by codec_child_class_next(), and next_codec_for_id().
AVCodecContext* avcodec_alloc_context3 | ( | const AVCodec * | codec | ) |
Allocate an AVCodecContext and set its fields to default values.
The resulting struct can be deallocated by calling avcodec_close() on it followed by av_free().
codec | if non-NULL, allocate private data and initialize defaults for the given codec. It is illegal to then call avcodec_open2() with a different codec. If NULL, then the codec-specific defaults won't be initialized, which may result in suboptimal default settings (this is important mainly for encoders, e.g. libx264). |
Definition at line 126 of file options.c.
Referenced by add_av_stream1(), add_codec(), audio_decode_example(), audio_encode_example(), avformat_new_stream(), estimate_best_b_count(), ff_mov_init_hinting(), mov_create_chapter_track(), video_decode_example(), and video_encode_example().
Allocate an AVFrame and set its fields to default values.
The resulting struct must be freed using avcodec_free_frame().
Definition at line 618 of file utils.c.
Referenced by aac_encode_init(), adpcm_encode_init(), alac_encode_init(), alloc_buffers(), alloc_picture(), amr_wb_encode_init(), audio_decode_example(), audio_decode_frame(), audio_encode_example(), cllc_decode_init(), decode_audio(), decode_init(), decode_video(), encode_init(), Faac_encode_init(), ff_ac3_encode_init(), ff_cavs_init(), flac_encode_init(), g722_encode_init(), ilbc_encode_init(), libgsm_encode_init(), libopenjpeg_encode_init(), movie_init(), mp3lame_encode_init(), MPA_encode_init(), oggvorbis_encode_init(), pad_last_frame(), pcm_encode_init(), poll_filter(), ra144_encode_init(), roq_dpcm_encode_init(), svq1_decode_init(), try_decode_frame(), utvideo_encode_init(), v410_decode_init(), v410_encode_init(), vble_decode_init(), video_decode_example(), video_encode_example(), video_thread(), vorbis_encode_init(), vp8_init(), write_audio_frame(), xbm_encode_init(), xwd_decode_init(), xwd_encode_init(), and zerocodec_decode_init().
int avcodec_close | ( | AVCodecContext * | avctx | ) |
Close a given AVCodecContext and free all the data associated with it (but not the AVCodecContext itself).
Calling this function on an AVCodecContext that hasn't been opened will free the codec-specific data allocated in avcodec_alloc_context3() / avcodec_get_context_defaults3() with a non-NULL codec. Subsequent calls will do nothing.
Definition at line 1437 of file utils.c.
Referenced by audio_decode_example(), audio_encode_example(), avformat_find_stream_info(), close_audio(), close_connection(), close_input_file(), close_video(), estimate_best_b_count(), stream_component_close(), transcode(), uninit(), video_decode_example(), and video_encode_example().
const char* avcodec_configuration | ( | void | ) |
int avcodec_copy_context | ( | AVCodecContext * | dest, |
const AVCodecContext * | src | ||
) |
Copy the settings of the source AVCodecContext into the destination AVCodecContext.
The resulting destination codec context will be unopened, i.e. you are required to call avcodec_open2() before you can use this AVCodecContext to decode/encode video/audio data.
dest | target codec context, should be initialized with avcodec_alloc_context3(), but otherwise uninitialized |
src | source codec context |
Definition at line 140 of file options.c.
Referenced by ff_rtp_chain_mux_open(), hls_mux_init(), hls_read_header(), http_receive_data(), ism_write_header(), mpegts_write_header(), sap_fetch_packet(), sap_read_header(), and segment_mux_init().
Free the frame and any dynamically allocated objects in it, e.g.
extended_data.
frame | frame to be freed. The pointer will be set to NULL. |
Definition at line 630 of file utils.c.
Referenced by audio_decode_example(), audio_encode_example(), exit_program(), ff_cavs_end(), stream_component_close(), svq1_decode_end(), svq1_decode_init(), try_decode_frame(), uninit(), video_decode_example(), video_encode_example(), video_thread(), and write_audio_frame().
Get the AVClass for AVCodecContext.
It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
Definition at line 197 of file options.c.
Referenced by filter_codec_opts(), opt_default(), and show_help_default().
int avcodec_get_context_defaults3 | ( | AVCodecContext * | s, |
const AVCodec * | codec | ||
) |
Set the fields of the given AVCodecContext to default values corresponding to the given codec (defaults may be codec-dependent).
Do not call this function if a non-NULL codec has been passed to avcodec_alloc_context3() that allocated this AVCodecContext. If codec is non-NULL, it is illegal to call avcodec_open2() with a different codec on this AVCodecContext.
Definition at line 80 of file options.c.
Referenced by avcodec_alloc_context3(), new_output_stream(), and parse_ffconfig().
Set the fields of the given AVFrame to default values.
frame | The AVFrame of which the fields should be set to default values. |
Definition at line 604 of file utils.c.
Referenced by a64multi_init_encoder(), aac_decode_init(), ac3_decode_init(), adpcm_decode_init(), adx_decode_init(), adx_encode_init(), alac_decode_init(), amrnb_decode_init(), amrwb_decode_init(), ape_decode_init(), atrac1_decode_init(), atrac3_decode_init(), audio_decode_example(), audio_decode_frame(), avcodec_alloc_frame(), avcodec_decode_audio4(), avcodec_decode_video2(), bmp_decode_init(), bmp_encode_init(), bmv_aud_decode_init(), cdg_init_frame(), cdxl_decode_init(), cinaudio_decode_init(), cng_decode_init(), cook_decode_init(), dca_decode_init(), decode_init(), dpcm_decode_init(), eightsvx_decode_init(), encode_init(), estimate_best_b_count(), ff_find_unused_picture(), ff_h264_alloc_tables(), ff_MPV_common_init(), ff_pnm_init(), ffv1_common_init(), find_unused_picture(), flac_decode_init(), frame_worker_thread(), g722_decode_init(), g723_1_decode_init(), gif_decode_init(), gsm_init(), ilbc_decode_init(), imc_decode_init(), libgsm_decode_init(), libopenjpeg_decode_init(), libopus_decode_init(), libspeex_decode_init(), mace_decode_init(), mlp_decode_init(), mpc7_decode_init(), mpc8_decode_init(), pcm_bluray_decode_init(), pcm_decode_init(), pcx_encode_init(), pcx_init(), png_dec_init(), png_enc_init(), poll_filter(), ptx_init(), qcelp_decode_init(), qdm2_decode_init(), ra144_decode_init(), ra288_decode_init(), s302m_decode_init(), sgi_init(), shorten_decode_init(), sipr_decoder_init(), smka_decode_init(), sunrast_init(), tak_decode_init(), targa_encode_init(), targa_init(), tiff_init(), truespeech_decode_init(), try_decode_frame(), tta_decode_init(), twin_decode_init(), txd_init(), vmdaudio_decode_init(), vorbis_decode_init(), wavpack_decode_init(), wma_decode_init(), wmavoice_decode_init(), and ws_snd_decode_init().
const char* avcodec_license | ( | void | ) |
int avcodec_open2 | ( | AVCodecContext * | avctx, |
const AVCodec * | codec, | ||
AVDictionary ** | options | ||
) |
Initialize the AVCodecContext to use the given AVCodec.
Prior to using this function the context has to be allocated with avcodec_alloc_context3().
The functions avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(), avcodec_find_decoder() and avcodec_find_encoder() provide an easy way for retrieving a codec.
avctx | The context to initialize. |
codec | The codec to open this context for. If a non-NULL codec has been previously passed to avcodec_alloc_context3() or avcodec_get_context_defaults3() for this context, then this parameter MUST be either NULL or equal to the previously passed codec. |
options | A dictionary filled with AVCodecContext and codec-private options. On return this object will be filled with options that were not found. |
Definition at line 645 of file utils.c.
Referenced by audio_decode_example(), audio_encode_example(), avformat_find_stream_info(), estimate_best_b_count(), init_input_stream(), movie_init(), open_audio(), open_input_file(), open_video(), stream_component_open(), transcode_init(), try_decode_frame(), video_decode_example(), video_encode_example(), and wrap().
Register the codec codec and initialize libavcodec.
Register all the codecs, parsers and bitstream filters which were enabled at configuration time.
If you do not call this function you can select exactly which formats you want to support, by using the individual registration functions.
Definition at line 67 of file allcodecs.c.
Referenced by av_register_all(), and main().
unsigned avcodec_version | ( | void | ) |
void avsubtitle_free | ( | AVSubtitle * | sub | ) |
Free all allocated data in the given subtitle struct.
sub | AVSubtitle to free. |
Definition at line 1418 of file utils.c.
Referenced by free_subpicture(), and transcode_subtitles().