FFmpeg
|
Option getting functions
Those functions get a value of the option with the given name from an object. More...
Collaboration diagram for Option getting functions:
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) |
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
- Note
- the returned string will av_malloc()ed and must be av_free()ed by the caller
Definition at line 566 of file opt.c.
Referenced by av_opencl_get_option(), av_probe_input_buffer(), ff_rtp_chain_mux_open(), hls_read_header(), and show_stream().
int av_opt_get_double | ( | void * | obj, |
const char * | name, | ||
int | search_flags, | ||
double * | 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_int | ( | void * | obj, |
const char * | name, | ||
int | search_flags, | ||
int64_t * | out_val | ||
) |
Definition at line 687 of file opt.c.
Referenced by av_opt_flag_is_set(), configure_video_filters(), ff_rtp_get_payload_type(), new_output_stream(), and queue_picture().
int av_opt_get_pixel_fmt | ( | void * | obj, |
const char * | name, | ||
int | search_flags, | ||
enum AVPixelFormat * | out_fmt | ||
) |
int av_opt_get_q | ( | void * | obj, |
const char * | name, | ||
int | search_flags, | ||
AVRational * | out_val | ||
) |
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 | ||
) |
Generated on Fri Dec 20 2024 06:56:17 for FFmpeg by 1.8.11