|
FFmpeg
|
#include <assert.h>#include "config.h"#include "libavutil/avassert.h"#include "libavutil/avstring.h"#include "libavutil/bprint.h"#include "libavutil/channel_layout.h"#include "libavutil/common.h"#include "libavutil/emms.h"#include "libavutil/imgutils.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/thread.h"#include "avcodec.h"#include "avcodec_internal.h"#include "bsf.h"#include "codec_desc.h"#include "codec_internal.h"#include "decode.h"#include "frame_thread_encoder.h"#include "hwconfig.h"#include "internal.h"#include "libavutil/refstruct.h"Go to the source code of this file.
Macros | |
| #define | FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) |
| Maximum size in bytes of extradata. More... | |
| #define | WRAP_CONFIG(allowed_type, field, var, field_type, sentinel_check) |
Functions | |
| 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 jobnr, int threadnr), void *arg, int *ret, int count) |
| static void | lock_avcodec (const FFCodec *codec) |
| static void | unlock_avcodec (const FFCodec *codec) |
| static int64_t | get_bit_rate (AVCodecContext *ctx) |
| int attribute_align_arg | avcodec_open2 (AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options) |
| Initialize the AVCodecContext to use the given AVCodec. More... | |
| void | avcodec_flush_buffers (AVCodecContext *avctx) |
| Reset the internal codec state / flush internal buffers. More... | |
| void | avsubtitle_free (AVSubtitle *sub) |
| Free all allocated data in the given subtitle struct. More... | |
| av_cold void | ff_codec_close (AVCodecContext *avctx) |
| static const char * | unknown_if_null (const char *str) |
| void | avcodec_string (char *buf, int buf_size, AVCodecContext *enc, int encode) |
| int | avcodec_is_open (AVCodecContext *s) |
| int attribute_align_arg | avcodec_receive_frame (AVCodecContext *avctx, AVFrame *frame) |
| Return decoded output data from a decoder or encoder (when the AV_CODEC_FLAG_RECON_FRAME flag is used). More... | |
| int | ff_default_get_supported_config (const AVCodecContext *avctx, const AVCodec *codec, enum AVCodecConfig config, unsigned flags, const void **out_configs, int *out_num_configs) |
| int | avcodec_get_supported_config (const AVCodecContext *avctx, const AVCodec *codec, enum AVCodecConfig config, unsigned flags, const void **out, int *out_num) |
| Retrieve a list of all supported values for a given configuration type. More... | |
| int | av_packet_side_data_from_frame (AVPacketSideData **psd, int *pnb_sd, const AVFrameSideData *src, unsigned int flags) |
| int | av_packet_side_data_to_frame (AVFrameSideData ***psd, int *pnb_sd, const AVPacketSideData *src, unsigned int flags) |
| Add a new frame side data entry to an array based on existing packet side data, if a matching type exists for frame side data. More... | |
Variables | |
| const SideDataMap | ff_sd_global_map [] |
| A map between packet and frame side data types. More... | |
| static AVMutex | codec_mutex = AV_MUTEX_INITIALIZER |
| static enum AVColorRange | color_range_tab [] |
| static enum AVAlphaMode | alpha_mode_tab [] |
| static const uint8_t | offset_tab [] |
AVCodecContext functions for libavcodec
Definition in file avcodec.c.
| #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - AV_INPUT_BUFFER_PADDING_SIZE) |
| #define WRAP_CONFIG | ( | allowed_type, | |
| field, | |||
| var, | |||
| field_type, | |||
| sentinel_check | |||
| ) |
| int avcodec_default_execute2 | ( | AVCodecContext * | c, |
| int(*)(AVCodecContext *c2, void *arg2, int jobnr, int threadnr) | func, | ||
| void * | arg, | ||
| int * | ret, | ||
| int | count | ||
| ) |
Definition at line 87 of file avcodec.c.
Referenced by init_context_defaults().
|
static |
Definition at line 102 of file avcodec.c.
Referenced by avcodec_open2().
|
static |
Definition at line 108 of file avcodec.c.
Referenced by avcodec_open2().
|
static |
Definition at line 114 of file avcodec.c.
Referenced by avcodec_open2(), and avcodec_string().
| av_cold void ff_codec_close | ( | AVCodecContext * | avctx | ) |
Definition at line 433 of file avcodec.c.
Referenced by avcodec_free_context(), and avcodec_open2().
|
static |
Definition at line 498 of file avcodec.c.
Referenced by avcodec_string().
| int ff_default_get_supported_config | ( | const AVCodecContext * | avctx, |
| const AVCodec * | codec, | ||
| enum AVCodecConfig | config, | ||
| unsigned | flags, | ||
| const void ** | out_configs, | ||
| int * | out_num_configs | ||
| ) |
Definition at line 759 of file avcodec.c.
Referenced by av1_get_supported_config(), avcodec_get_supported_config(), and libx265_get_supported_config().
| int av_packet_side_data_from_frame | ( | AVPacketSideData ** | psd, |
| int * | pnb_sd, | ||
| const AVFrameSideData * | src, | ||
| unsigned int | flags | ||
| ) |
| const SideDataMap ff_sd_global_map[] |
A map between packet and frame side data types.
Terminated with an entry where packet=AV_PKT_DATA_NB.
Definition at line 57 of file avcodec.c.
Referenced by av_packet_side_data_from_frame(), av_packet_side_data_to_frame(), ff_decode_frame_props(), ff_decode_frame_props_from_pkt(), ff_decode_preinit(), and ff_encode_preinit().
|
static |
Definition at line 100 of file avcodec.c.
Referenced by lock_avcodec(), and unlock_avcodec().
|
static |
Definition at line 738 of file avcodec.c.
Referenced by ff_default_get_supported_config().
|
static |
Definition at line 743 of file avcodec.c.
Referenced by ff_default_get_supported_config().
|
static |
Definition at line 753 of file avcodec.c.
Referenced by ff_default_get_supported_config().
1.8.17