FFmpeg
[フレーム]
Functions
Option getting functions
AVOptions

Those functions get a value of the option with the given name from an object. More...

Functions

int  av_opt_get (void *obj, const char *name, int search_flags, uint8_t **out_val)
 
int  av_opt_get_int (void *obj, const char *name, int search_flags, int64_t *out_val)
 
int  av_opt_get_double (void *obj, const char *name, int search_flags, double *out_val)
 
int  av_opt_get_q (void *obj, const char *name, int search_flags, AVRational *out_val)
 
int  av_opt_get_image_size (void *obj, const char *name, int search_flags, int *w_out, int *h_out)
 
int  av_opt_get_pixel_fmt (void *obj, const char *name, int search_flags, enum AVPixelFormat *out_fmt)
 
int  av_opt_get_sample_fmt (void *obj, const char *name, int search_flags, enum AVSampleFormat *out_fmt)
 
int  av_opt_get_video_rate (void *obj, const char *name, int search_flags, AVRational *out_val)
 
int  av_opt_get_channel_layout (void *obj, const char *name, int search_flags, int64_t *ch_layout)
 
int  av_opt_get_dict_val (void *obj, const char *name, int search_flags, AVDictionary **out_val)
 

Detailed Description

Those functions get a value of the option with the given name from an object.

Parameters
[in] obj a struct whose first element is a pointer to an AVClass.
[in] name name of the option to get.
[in] search_flags flags passed to av_opt_find2. I.e. if AV_OPT_SEARCH_CHILDREN is passed here, then the option may be found in a child of obj.
[out] out_val value of the option will be written here
Returns
>=0 on success, a negative error code otherwise

Function Documentation

int av_opt_get ( voidobj,
const char *  name,
int  search_flags,
uint8_t **  out_val 
)
Note
the returned string will be av_malloc()ed and must be av_free()ed by the caller
if AV_OPT_ALLOW_NULL is set in search_flags in av_opt_get, and the option has AV_OPT_TYPE_STRING or AV_OPT_TYPE_BINARY and is set to NULL, *out_val will be set to NULL instead of an allocated empty string.

Definition at line 751 of file opt.c.

Referenced by av_opt_serialize(), av_probe_input_buffer2(), check_video_streams(), dump_video_streams(), ff_rtp_chain_mux_open(), mpjpeg_get_boundary(), open_url(), parse_manifest(), parse_playlist(), pcm_read_header(), process_client(), read_data(), save_avio_options(), show_stream(), test_copy_print_codec(), and update_options().

int av_opt_get_int ( voidobj,
const char *  name,
int  search_flags,
int64_t *  out_val 
)

Definition at line 875 of file opt.c.

Referenced by av_opt_flag_is_set(), config_output(), ff_rtp_get_payload_type(), ff_spp_init_x86(), opus_decode_subpacket(), query_formats(), sws_getCachedContext(), and test_copy_print_codec().

int av_opt_get_double ( voidobj,
const char *  name,
int  search_flags,
double *  out_val 
)

Definition at line 887 of file opt.c.

int av_opt_get_q ( voidobj,
const char *  name,
int  search_flags,
AVRationalout_val 
)

Definition at line 899 of file opt.c.

int av_opt_get_image_size ( voidobj,
const char *  name,
int  search_flags,
intw_out,
inth_out 
)

Definition at line 915 of file opt.c.

int av_opt_get_pixel_fmt ( voidobj,
const char *  name,
int  search_flags,
enum AVPixelFormatout_fmt 
)

Definition at line 967 of file opt.c.

int av_opt_get_sample_fmt ( voidobj,
const char *  name,
int  search_flags,
enum AVSampleFormatout_fmt 
)

Definition at line 972 of file opt.c.

Referenced by config_output(), and query_formats().

int av_opt_get_video_rate ( voidobj,
const char *  name,
int  search_flags,
AVRationalout_val 
)

Definition at line 933 of file opt.c.

int av_opt_get_channel_layout ( voidobj,
const char *  name,
int  search_flags,
int64_t *  ch_layout 
)

Definition at line 977 of file opt.c.

int av_opt_get_dict_val ( voidobj,
const char *  name,
int  search_flags,
AVDictionary **  out_val 
)
Parameters
[out] out_val The returned dictionary is a copy of the actual value and must be freed with av_dict_free() by the caller

Definition at line 994 of file opt.c.

Referenced by read_frame_internal().


Generated on Sun May 13 2018 02:04:27 for FFmpeg by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /