Options definition for AVCodecContext. More...
#include "avcodec.h"#include "internal.h"#include "libavutil/avassert.h"#include "libavutil/opt.h"#include <float.h>Go to the source code of this file.
Defines | |
| #define | OFFSET(x) offsetof(AVCodecContext,x) |
| #define | DEFAULT 0 |
| #define | V AV_OPT_FLAG_VIDEO_PARAM |
| #define | A AV_OPT_FLAG_AUDIO_PARAM |
| #define | S AV_OPT_FLAG_SUBTITLE_PARAM |
| #define | E AV_OPT_FLAG_ENCODING_PARAM |
| #define | D AV_OPT_FLAG_DECODING_PARAM |
| #define | AV_CODEC_DEFAULT_BITRATE 200*1000 |
| #define | X264_DEFAULTS CODEC_FLAG2_FASTPSKIP|CODEC_FLAG2_PSY|CODEC_FLAG2_MBTREE |
| #define | LAME_DEFAULTS CODEC_FLAG2_BIT_RESERVOIR |
| #define | alloc_and_copy_or_fail(obj, size, pad) |
Functions | |
| static const char * | context_to_name (void *ptr) |
| static void * | codec_child_next (void *obj, void *prev) |
| static const AVClass * | codec_child_class_next (const AVClass *prev) |
| void | avcodec_get_context_defaults2 (AVCodecContext *s, enum AVMediaType codec_type) |
| THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times! | |
| int | avcodec_get_context_defaults3 (AVCodecContext *s, AVCodec *codec) |
| Set the fields of the given AVCodecContext to default values corresponding to the given codec (defaults may be codec-dependent). | |
| AVCodecContext * | avcodec_alloc_context3 (AVCodec *codec) |
| Allocate an AVCodecContext and set its fields to default values. | |
| AVCodecContext * | avcodec_alloc_context2 (enum AVMediaType codec_type) |
| THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times! | |
| void | avcodec_get_context_defaults (AVCodecContext *s) |
| Set the fields of the given AVCodecContext to default values. | |
| AVCodecContext * | avcodec_alloc_context (void) |
| Allocate an AVCodecContext and set its fields to default values. | |
| int | avcodec_copy_context (AVCodecContext *dest, const AVCodecContext *src) |
| Copy the settings of the source AVCodecContext into the destination AVCodecContext. | |
| const AVClass * | avcodec_get_class (void) |
| Get the AVClass for AVCodecContext. | |
Variables | |
| static const AVOption | options [] |
| static const AVClass | av_codec_context_class |
Options definition for AVCodecContext.
Definition in file options.c.
| #define alloc_and_copy_or_fail | ( | obj, | ||
| size, | ||||
| pad | ||||
| ) |
| #define D AV_OPT_FLAG_DECODING_PARAM |
Definition at line 73 of file options.c.
Referenced by avg_no_rnd_vc1_chroma_mc8_c(), gmc1_c(), horizX1Filter(), put_no_rnd_vc1_chroma_mc4_c(), and put_no_rnd_vc1_chroma_mc8_c().
| #define LAME_DEFAULTS CODEC_FLAG2_BIT_RESERVOIR |
| #define OFFSET | ( | x | ) | offsetof(AVCodecContext,x) |
| #define S AV_OPT_FLAG_SUBTITLE_PARAM |
Definition at line 71 of file options.c.
Referenced by dering_altivec(), and search_for_ms().
| #define V AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 69 of file options.c.
Referenced by config_input(), decode_frame(), draw_slice(), nsv_parse_NSVf_header(), rgb24toyv12_c(), tm2_hi_res_block(), tm2_low_res_block(), tm2_med_res_block(), tm2_motion_block(), tm2_null_res_block(), tm2_still_block(), tm2_update_block(), vp6_adjust(), yuv2422_1_c_template(), yuv2422_2_c_template(), yuv2422_X_c_template(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), yuv2rgb48_X_c_template(), yuv2rgb_1_c_template(), yuv2rgb_2_c_template(), yuv2rgb_full_X_c_template(), and yuv2rgb_X_c_template().
| #define X264_DEFAULTS CODEC_FLAG2_FASTPSKIP|CODEC_FLAG2_PSY|CODEC_FLAG2_MBTREE |
| AVCodecContext* avcodec_alloc_context | ( | void | ) |
Allocate an AVCodecContext and set its fields to default values.
The resulting struct can be deallocated by simply calling av_free().
| AVCodecContext* avcodec_alloc_context2 | ( | enum AVMediaType | codec_type | ) |
THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
Definition at line 615 of file options.c.
Referenced by avcodec_alloc_context().
| AVCodecContext* avcodec_alloc_context3 | ( | 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. |
Definition at line 601 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(), main(), mov_create_chapter_track(), video_decode_example(), and video_encode_example().
| 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 634 of file options.c.
Referenced by applehttp_read_header(), ff_rtp_chain_mux_open(), http_receive_data(), read_avserver_streams(), sap_fetch_packet(), and sap_read_header().
| const AVClass* avcodec_get_class | ( | void | ) |
Get the AVClass for AVCodecContext.
It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
Definition at line 691 of file options.c.
Referenced by filter_codec_opts(), opt_default(), and show_help().
| void avcodec_get_context_defaults | ( | AVCodecContext * | s | ) |
Set the fields of the given AVCodecContext to default values.
| s | The AVCodecContext of which the fields should be set to default values. |
| void avcodec_get_context_defaults2 | ( | AVCodecContext * | s, | |
| enum AVMediaType | codec_type | |||
| ) |
THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! we WILL change its arguments and name a few times!
Definition at line 550 of file options.c.
Referenced by avcodec_alloc_context2(), and avcodec_get_context_defaults().
| int avcodec_get_context_defaults3 | ( | AVCodecContext * | s, | |
| 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 556 of file options.c.
Referenced by avcodec_alloc_context3(), avcodec_get_context_defaults2(), new_output_stream(), and parse_ffconfig().
| static void* codec_child_next | ( | void * | obj, | |
| void * | prev | |||
| ) | [static] |
const AVClass av_codec_context_class [static] |
{
.class_name = "AVCodecContext",
.item_name = context_to_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
.log_level_offset_offset = OFFSET(log_level_offset),
.child_next = codec_child_next,
.child_class_next = codec_child_class_next,
}