Data Structures | |
struct | AVBitStreamFilterContext |
struct | AVBitStreamFilter |
Modules | |
Pixel formats | |
Functions for working with pixel formats. | |
FFT functions | |
Enumerations | |
enum | AVLockOp { AV_LOCK_CREATE, AV_LOCK_OBTAIN, AV_LOCK_RELEASE, AV_LOCK_DESTROY } |
Lock operation used by lockmgr. More... | |
Functions | |
void | avcodec_set_dimensions (AVCodecContext *s, int width, int height) |
size_t | av_get_codec_tag_string (char *buf, size_t buf_size, unsigned int codec_tag) |
Put a string representing the codec tag codec_tag in buf. | |
void | avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode) |
const char * | av_get_profile_name (const AVCodec *codec, int profile) |
Return a name for the specified profile, if available. | |
int | avcodec_default_execute (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size) |
int | avcodec_default_execute2 (AVCodecContext *c, int(*func)(AVCodecContext *c2, void *arg2, int, int), void *arg, int *ret, int count) |
int | avcodec_fill_audio_frame (AVFrame *frame, int nb_channels, enum AVSampleFormat sample_fmt, const uint8_t *buf, int buf_size, int align) |
Fill audio frame data and linesize. | |
void | avcodec_flush_buffers (AVCodecContext *avctx) |
Flush buffers, should be called when seeking or when switching to a different stream. | |
void | avcodec_default_free_buffers (AVCodecContext *s) |
int | av_get_bits_per_sample (enum CodecID codec_id) |
Return codec bits per sample. | |
enum CodecID | av_get_pcm_codec (enum AVSampleFormat fmt, int be) |
Return the PCM codec associated with a sample format. | |
int | av_get_exact_bits_per_sample (enum CodecID codec_id) |
Return codec bits per sample. | |
int | av_get_audio_frame_duration (AVCodecContext *avctx, int frame_bytes) |
Return audio frame duration. | |
void | av_register_bitstream_filter (AVBitStreamFilter *bsf) |
AVBitStreamFilterContext * | av_bitstream_filter_init (const char *name) |
int | av_bitstream_filter_filter (AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe) |
void | av_bitstream_filter_close (AVBitStreamFilterContext *bsf) |
AVBitStreamFilter * | av_bitstream_filter_next (AVBitStreamFilter *f) |
void * | av_fast_realloc (void *ptr, unsigned int *size, size_t min_size) |
Reallocate the given block if it is not large enough, otherwise do nothing. | |
void | av_fast_malloc (void *ptr, unsigned int *size, size_t min_size) |
Allocate a buffer, reusing the given one if large enough. | |
void | av_fast_padded_malloc (void *ptr, unsigned int *size, size_t min_size) |
Same behaviour av_fast_malloc but the buffer has additional FF_INPUT_PADDING_SIZE at the end which will will always be 0. | |
unsigned int | av_xiphlacing (unsigned char *s, unsigned int v) |
Encode extradata length to a buffer. | |
void | av_log_missing_feature (void *avc, const char *feature, int want_sample) |
Log a generic warning message about a missing feature. | |
void | av_log_ask_for_sample (void *avc, const char *msg,...) av_printf_format(2 |
Log a generic warning message asking for a sample. | |
void void | av_register_hwaccel (AVHWAccel *hwaccel) |
Register the hardware accelerator hwaccel. | |
AVHWAccel * | av_hwaccel_next (AVHWAccel *hwaccel) |
If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL, returns the next registered hardware accelerator after hwaccel, or NULL if hwaccel is the last one. | |
int | av_lockmgr_register (int(*cb)(void **mutex, enum AVLockOp op)) |
Register a user provided lock manager supporting the operations specified by AVLockOp. | |
enum AVMediaType | avcodec_get_type (enum CodecID codec_id) |
Get the type of the given codec. | |
const char * | avcodec_get_name (enum CodecID id) |
Get the name of a codec. | |
int | avcodec_is_open (AVCodecContext *s) |
int | av_codec_is_encoder (AVCodec *codec) |
int | av_codec_is_decoder (AVCodec *codec) |
enum AVLockOp |
void av_bitstream_filter_close | ( | AVBitStreamFilterContext * | bsf | ) |
Definition at line 50 of file bitstream_filter.c.
Referenced by exit_program(), Stagefright_close(), Stagefright_init(), and uninit().
int av_bitstream_filter_filter | ( | AVBitStreamFilterContext * | bsfc, | |
AVCodecContext * | avctx, | |||
const char * | args, | |||
uint8_t ** | poutbuf, | |||
int * | poutbuf_size, | |||
const uint8_t * | buf, | |||
int | buf_size, | |||
int | keyframe | |||
) |
Definition at line 58 of file bitstream_filter.c.
Referenced by decode(), init(), Stagefright_decode_frame(), and write_frame().
AVBitStreamFilterContext* av_bitstream_filter_init | ( | const char * | name | ) |
Definition at line 35 of file bitstream_filter.c.
Referenced by init(), new_output_stream(), and Stagefright_init().
AVBitStreamFilter* av_bitstream_filter_next | ( | AVBitStreamFilter * | f | ) |
int av_codec_is_decoder | ( | AVCodec * | codec | ) |
Definition at line 126 of file utils.c.
Referenced by avcodec_find_decoder(), avcodec_find_decoder_by_name(), avcodec_open2(), and opt_codecs().
int av_codec_is_encoder | ( | AVCodec * | codec | ) |
Definition at line 121 of file utils.c.
Referenced by avcodec_close(), avcodec_find_encoder(), avcodec_find_encoder_by_name(), avcodec_open2(), and opt_codecs().
void av_fast_malloc | ( | void * | ptr, | |
unsigned int * | size, | |||
size_t | min_size | |||
) |
Allocate a buffer, reusing the given one if large enough.
Contrary to av_fast_realloc the current buffer contents might not be preserved and on error the old buffer is freed, thus no special handling to avoid memleaks is necessary.
ptr | pointer to pointer to already allocated buffer, overwritten with pointer to new buffer | |
size | size of the buffer *ptr points to | |
min_size | minimum size of *ptr buffer after returning, *ptr will be NULL and *size 0 if an error occurred. |
Definition at line 85 of file utils.c.
Referenced by ape_decode_frame(), codec_reinit(), decode_frame(), decode_i_frame(), decode_p_frame(), ff_h263_decode_frame(), ff_id3v2_parse(), ff_mpeg_update_thread_context(), ljpeg_decode_rgb_scan(), mp_decode_frame(), parse_picture_segment(), pmp_packet(), spdif_header_dts4(), spdif_write_packet(), submit_packet(), svq3_decode_frame(), truemotion1_decode_header(), and truemotion1_decode_init().
void av_fast_padded_malloc | ( | void * | ptr, | |
unsigned int * | size, | |||
size_t | min_size | |||
) |
Same behaviour av_fast_malloc but the buffer has additional FF_INPUT_PADDING_SIZE at the end which will will always be 0.
In addition the whole buffer will initially and after resizes be 0-initialized so that no uninitialized data will ever appear.
Definition at line 90 of file utils.c.
Referenced by cdxl_decode_frame(), decode_frame(), ff_alloc_packet2(), ff_h264_decode_nal(), ff_mjpeg_find_marker(), mimic_decode_frame(), mpc7_decode_frame(), and tqi_decode_frame().
void* av_fast_realloc | ( | void * | ptr, | |
unsigned int * | size, | |||
size_t | min_size | |||
) |
Reallocate the given block if it is not large enough, otherwise do nothing.
Definition at line 56 of file utils.c.
Referenced by caf_write_packet(), commit_slices(), decode_frame(), decode_slice(), dirac_combine_frame(), ff_add_index_entry(), ff_af_queue_add(), ff_combine_frame(), ff_mms_asf_header_parser(), ff_vaapi_alloc_slice(), ff_vdpau_add_data_chunk(), flac_fifo_read_wrap(), get_stats(), mkv_copy_packet(), mxg_update_cache(), read_frame(), read_header(), shorten_decode_frame(), and spdif_header_eac3().
int av_get_audio_frame_duration | ( | AVCodecContext * | avctx, | |
int | frame_bytes | |||
) |
Return audio frame duration.
avctx | codec context | |
frame_bytes | size of the frame, or 0 if unknown |
Definition at line 2068 of file utils.c.
Referenced by ff_parse_specific_params(), get_aiff_header(), get_audio_frame_size(), rtp_write_header(), and swf_write_audio().
int av_get_bits_per_sample | ( | enum CodecID | codec_id | ) |
Return codec bits per sample.
[in] | codec_id | the codec |
Definition at line 2050 of file utils.c.
Referenced by adpcm_encode_init(), aiff_write_header(), au_read_header(), au_read_packet(), avcodec_encode_audio(), avformat_write_header(), caf_write_header(), ff_alsa_open(), ff_audio_interleave_init(), ff_mov_read_stsd_entries(), ff_pcm_read_seek(), ff_raw_read_header(), ff_voc_get_packet(), get_aiff_header(), get_bit_rate(), gxf_packet(), mkv_write_tracks(), mov_get_codec_tag(), mov_write_audio_tag(), mov_write_header(), mxf_write_generic_sound_common(), oma_read_header(), pcm_decode_frame(), pcm_decode_init(), pcm_encode_frame(), pcm_encode_init(), pulse_read_header(), raw_read_packet(), read_header(), rso_read_header(), rso_read_packet(), show_stream(), and smjpeg_write_header().
size_t av_get_codec_tag_string | ( | char * | buf, | |
size_t | buf_size, | |||
unsigned int | codec_tag | |||
) |
Put a string representing the codec tag codec_tag in buf.
buf_size | size in bytes of buf |
Definition at line 1773 of file utils.c.
Referenced by avcodec_string(), avformat_write_header(), and show_stream().
int av_get_exact_bits_per_sample | ( | enum CodecID | codec_id | ) |
Return codec bits per sample.
Only return non-zero if the bits per sample is exactly correct, not an approximation.
[in] | codec_id | the codec |
Definition at line 1986 of file utils.c.
Referenced by av_get_audio_frame_duration(), and av_get_bits_per_sample().
enum CodecID av_get_pcm_codec | ( | enum AVSampleFormat | fmt, | |
int | be | |||
) |
Return the PCM codec associated with a sample format.
be | endianness, 0 for little, 1 for big, -1 (or anything else) for native |
Definition at line 2029 of file utils.c.
Referenced by lavfi_read_header().
const char* av_get_profile_name | ( | const AVCodec * | codec, | |
int | profile | |||
) |
Return a name for the specified profile, if available.
codec | the codec that is searched for the given profile | |
profile | the profile value for which a name is requested |
Definition at line 1885 of file utils.c.
Referenced by avcodec_string().
If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL, returns the next registered hardware accelerator after hwaccel, or NULL if hwaccel is the last one.
Definition at line 2276 of file utils.c.
Referenced by ff_find_hwaccel().
Register a user provided lock manager supporting the operations specified by AVLockOp.
mutex points to a (void *) where the lockmgr should store/get a pointer to a user allocated mutex. It's NULL upon AV_LOCK_CREATE and != NULL for all other ops.
cb | User defined callback. Note: FFmpeg may invoke calls to this callback during the call to av_lockmgr_register(). Thus, the application must be prepared to handle that. If cb is set to NULL the lockmgr will be unregistered. Also note that during unregistration the previously registered lockmgr callback may also be invoked. |
void av_log_ask_for_sample | ( | void * | avc, | |
const char * | msg, | |||
... | ||||
) |
Log a generic warning message asking for a sample.
This function is intended to be used internally by FFmpeg (libavcodec, libavformat, etc.) only, and would normally not be used by applications.
[in] | avc | a pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct |
[in] | msg | string containing an optional message, or NULL if no message |
Referenced by alac_decode_init(), ape_decode_init(), au_read_header(), av_log_missing_feature(), avpriv_adx_decode_header(), cdxl_decode_frame(), cinaudio_decode_init(), cinepak_decode(), cook_decode_init(), dca_exss_parse_header(), dca_subframe_header(), decode_band_hdr(), decode_bytes(), decode_channel_transform(), decode_frame(), decode_frame_byterun1(), decode_frame_headers(), decode_frame_ilbm(), decode_init(), decode_scalefactors(), decode_slice_header(), decode_subframe(), determine_bitrate(), ea_read_packet(), execute_code(), ff_mjpeg_decode_sof(), ff_mov_read_chan(), ff_parse_mpeg2_descriptor(), get_packet_header(), iff_read_header(), imc_decode_init(), mov_read_mdhd(), mpc7_decode_init(), mtv_read_header(), mxf_read_packet_old(), mxf_read_primer_pack(), oma_read_header(), parse_setup_header(), pmp_packet(), ptx_decode_frame(), read_block_data(), read_frame(), read_header(), read_major_sync(), read_restart_header(), rso_read_header(), save_bits(), smjpeg_read_header(), spdif_header_dts(), spdif_header_truehd(), spdif_read_packet(), sunrast_decode_frame(), truemotion1_decode_header(), truespeech_decode_init(), ws_snd_decode_init(), wsaud_read_header(), xa_decode(), xmv_read_header(), xwd_decode_frame(), and xwma_read_header().
void av_log_missing_feature | ( | void * | avc, | |
const char * | feature, | |||
int | want_sample | |||
) |
Log a generic warning message about a missing feature.
This function is intended to be used internally by FFmpeg (libavcodec, libavformat, etc.) only, and would normally not be used by applications.
[in] | avc | a pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct |
[in] | feature | string containing the name of the missing feature |
[in] | want_sample | indicates if samples are wanted which exhibit this feature. If want_sample is non-zero, additional verbage will be added to the log message which tells the user how to report samples to the development mailing list. |
Definition at line 2240 of file utils.c.
Referenced by aac_adtstoasc_filter(), amrnb_decode_frame(), amrwb_decode_frame(), decode_audio_block(), decode_frame(), decode_frame_header(), decode_ga_specific_config(), decode_ics(), decode_init(), decode_packet(), decode_seq_header(), decode_slice_header(), decode_subframe(), ff_eac3_parse_header(), ff_h263_decode_frame(), ff_rv34_decode_frame(), ff_vc1_parse_frame_header_adv(), flashsv_decode_frame(), latm_decode_audio_specific_config(), mpc8_decode_init(), ogg_read_page(), parse_adts_frame_header(), parse_fmtp(), parse_MP4SLDescrTag(), qt_rtp_parse_packet(), read_sbr_extension(), read_stream_mux_config(), rv10_decode_init(), smc_decode_stream(), spdif_get_offset_and_codec(), spdif_read_packet(), synth_superframe(), and tta_decode_init().
void av_register_bitstream_filter | ( | AVBitStreamFilter * | bsf | ) |
Definition at line 30 of file bitstream_filter.c.
void void av_register_hwaccel | ( | AVHWAccel * | hwaccel | ) |
unsigned int av_xiphlacing | ( | unsigned char * | s, | |
unsigned int | v | |||
) |
Encode extradata length to a buffer.
Used by xiph codecs.
s | buffer to write to; must be at least (v/255+1) bytes long | |
v | size of extradata in bytes |
Definition at line 2220 of file utils.c.
Referenced by fixup_vorbis_headers(), oggvorbis_encode_init(), parse_packed_headers(), and put_main_header().
int avcodec_default_execute | ( | AVCodecContext * | c, | |
int(*)(AVCodecContext *c2, void *arg2) | func, | |||
void * | arg, | |||
int * | ret, | |||
int | count, | |||
int | size | |||
) |
Definition at line 634 of file utils.c.
Referenced by avcodec_get_context_defaults3(), and avcodec_thread_execute().
int avcodec_default_execute2 | ( | AVCodecContext * | c, | |
int(*)(AVCodecContext *c2, void *arg2, int, int) | func, | |||
void * | arg, | |||
int * | ret, | |||
int | count | |||
) |
Referenced by avcodec_get_context_defaults3().
void avcodec_default_free_buffers | ( | AVCodecContext * | s | ) |
Definition at line 1972 of file utils.c.
Referenced by avcodec_close(), ff_MPV_common_end(), and frame_thread_free().
int avcodec_fill_audio_frame | ( | AVFrame * | frame, | |
int | nb_channels, | |||
enum AVSampleFormat | sample_fmt, | |||
const uint8_t * | buf, | |||
int | buf_size, | |||
int | align | |||
) |
Fill audio frame data and linesize.
AVFrame extended_data channel pointers are allocated if necessary for planar audio.
frame | the AVFrame frame->nb_samples must be set prior to calling the function. This function fills in frame->data, frame->extended_data, frame->linesize[0]. | |
nb_channels | channel count | |
sample_fmt | sample format | |
buf | buffer to use for frame data | |
buf_size | size of buffer | |
align | plane size sample alignment (0 = default) |
Definition at line 279 of file utils.c.
Referenced by audio_get_buffer(), avcodec_encode_audio(), pad_last_frame(), and write_audio_frame().
void avcodec_flush_buffers | ( | AVCodecContext * | avctx | ) |
Flush buffers, should be called when seeking or when switching to a different stream.
Definition at line 1921 of file utils.c.
Referenced by audio_decode_frame(), get_video_frame(), subtitle_thread(), and video_thread().
const char* avcodec_get_name | ( | enum CodecID | id | ) |
Get the name of a codec.
Definition at line 1754 of file utils.c.
Referenced by avcodec_string(), flv_write_packet(), init_input_stream(), read_frame_internal(), rtp_write_header(), and transcode_init().
enum AVMediaType avcodec_get_type | ( | enum CodecID | codec_id | ) |
Get the type of the given codec.
Definition at line 2374 of file utils.c.
Referenced by mkv_query_codec().
int avcodec_is_open | ( | AVCodecContext * | s | ) |
Definition at line 2394 of file utils.c.
Referenced by avcodec_close(), avcodec_copy_context(), avcodec_open2(), and try_decode_frame().
void avcodec_set_dimensions | ( | AVCodecContext * | s, | |
int | width, | |||
int | height | |||
) |
Definition at line 149 of file utils.c.
Referenced by apply_param_change(), av_mpeg4_decode_header(), avcodec_open2(), avpriv_dirac_parse_sequence_header(), avs_decode_init(), cdxl_decode_frame(), cmv_process_header(), decode_frame(), decode_frame_headers(), decode_init(), decode_sequence_header_adv(), decode_slice_header(), dnxhd_decode_frame(), dvvideo_decode_frame(), execute_code(), ff_h263_decode_frame(), ff_ivi_decode_frame(), ff_mjpeg_decode_sof(), ff_rv34_decode_frame(), ff_vc1_decode_entry_point(), ff_vc1_decode_sequence_header(), ff_vp56_decode_frame(), gif_decode_frame(), h261_decode_frame(), init_image(), libopenjpeg_decode_frame(), mpeg_decode_postinit(), mpegvideo_extract_headers(), parse_presentation_segment(), pcx_decode_frame(), ptx_decode_frame(), rv20_decode_picture_header(), sunrast_decode_frame(), svq1_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), theora_header(), tqi_decode_frame(), truemotion1_decode_header(), txd_decode_frame(), update_dimensions(), vp56_size_changed(), vp5_parse_header(), vp6_parse_header(), and vp8_decode().
void avcodec_string | ( | char * | buf, | |
int | buf_size, | |||
AVCodecContext * | enc, | |||
int | encode | |||
) |