FFmpeg
|
Modules | |
Pixel formats | |
Functions for working with pixel formats. | |
FFT functions | |
Functions | |
void | avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode) |
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 AVFrame audio data and linesize pointers. More... | |
void | avcodec_flush_buffers (AVCodecContext *avctx) |
Reset the internal codec state / flush internal buffers. More... | |
int | av_get_audio_frame_duration (AVCodecContext *avctx, int frame_bytes) |
Return audio frame duration. More... | |
void | av_fast_padded_malloc (void *ptr, unsigned int *size, size_t min_size) |
Same behaviour av_fast_malloc but the buffer has additional AV_INPUT_BUFFER_PADDING_SIZE at the end which will always be 0. More... | |
void | av_fast_padded_mallocz (void *ptr, unsigned int *size, size_t min_size) |
Same behaviour av_fast_padded_malloc except that buffer will always be 0-initialized after call. More... | |
int | avcodec_is_open (AVCodecContext *s) |
Miscellaneous utility functions related to both encoding and decoding (or neither).
void avcodec_string | ( | char * | buf, |
int | buf_size, | ||
AVCodecContext * | enc, | ||
int | encode | ||
) |
Definition at line 519 of file avcodec.c.
Referenced by avformat_find_stream_info(), and dump_stream_format().
int avcodec_default_execute | ( | AVCodecContext * | c, |
int(*)(AVCodecContext *c2, void *arg2) | func, | ||
void * | arg, | ||
int * | ret, | ||
int | count, | ||
int | size | ||
) |
Definition at line 67 of file avcodec.c.
Referenced by init_context_defaults(), and thread_execute().
int avcodec_default_execute2 | ( | AVCodecContext * | c, |
int(*)(AVCodecContext *c2, void *arg2, int, int) | func, | ||
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 AVFrame audio data and linesize pointers.
The buffer buf must be a preallocated buffer with a size big enough to contain the specified samples amount. The filled AVFrame data pointers will point to this buffer.
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) |
void avcodec_flush_buffers | ( | AVCodecContext * | avctx | ) |
Reset the internal codec state / flush internal buffers.
Should be called e.g. when seeking or when switching to a different stream.
Definition at line 379 of file avcodec.c.
Referenced by compute_crc_of_packets(), decoder_decode_frame(), imm5_flush(), LLVMFuzzerTestOneInput(), process_command(), process_input(), and rewind_file().
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 806 of file utils.c.
Referenced by compute_frame_duration(), and do_streamcopy().
void av_fast_padded_malloc | ( | void * | ptr, |
unsigned int * | size, | ||
size_t | min_size | ||
) |
Same behaviour av_fast_malloc but the buffer has additional AV_INPUT_BUFFER_PADDING_SIZE at the end which 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 50 of file utils.c.
Referenced by allocate_buffers(), allocate_buffers2(), ape_decode_frame(), cdtoons_decode_frame(), cdxl_decode_frame(), cllc_decode_frame(), dcadec_decode_frame(), decode_block(), decode_frame(), decode_frame_lscr(), decode_huffman2(), decode_i_frame(), decode_idat_chunk(), decode_inter(), decode_inter_plane(), decode_intra(), decode_intra_plane(), decode_motion_vectors(), decode_mous(), decode_move(), decode_p_frame(), decode_zlib(), deinvert_buffer(), dwa_uncompress(), encode_frame(), encode_scanline_rle(), encode_scanline_zip(), ff_alloc_packet(), ff_mjpeg_find_marker(), ff_mpeg4_frame_end(), ff_mpv_reallocate_putbitbuffer(), generate_fake_vps(), mimic_decode_frame(), mobiclip_decode(), mp_decode_frame(), mpc7_decode_frame(), parse_nal_units(), parse_object_segment(), raw_decode(), sga_decode_frame(), svq1_decode_frame(), svq3_decode_slice_header(), tiff_unpack_strip(), tqi_decode_frame(), utvideo_encode_frame(), wavpack_encode_block(), wavpack_encode_frame(), wv_stereo(), and xpm_decode_frame().
void av_fast_padded_mallocz | ( | void * | ptr, |
unsigned int * | size, | ||
size_t | min_size | ||
) |
Same behaviour av_fast_padded_malloc except that buffer will always be 0-initialized after call.
Definition at line 63 of file utils.c.
Referenced by decode_idat_chunk(), encode_frame(), and init_buffers().
int avcodec_is_open | ( | AVCodecContext * | s | ) |
Definition at line 713 of file avcodec.c.
Referenced by avcodec_close(), avcodec_open2(), avcodec_receive_frame(), avcodec_receive_packet(), avcodec_send_frame(), avcodec_send_packet(), mpegts_set_stream_info(), read_frame_internal(), and try_decode_frame().