diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-10-04 12:07:55 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-10-17 18:09:29 +0200 |
commit | 8696e51bafdc08baa8fe74fc4bc95904f4ad5654 (patch) | |
tree | e99d3cc749e221e1efaca25d60fd6b69275c7cf9 /libavutil/opt.h | |
parent | d96e377c394cc4664a91bfd2c24bbb80f42ea8de (diff) | |
download | ffmpeg-8696e51bafdc08baa8fe74fc4bc95904f4ad5654.tar.gz |
lavu/opt: add AV_OPT_TYPE_CHANNEL_LAYOUT and handler functions
The new type is compatible with AV_OPT_TYPE_INT64, but allows to specify
channel layouts using the format accepted by av_get_channel_layout().
Diffstat (limited to 'libavutil/opt.h')
-rw-r--r-- | libavutil/opt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/opt.h b/libavutil/opt.h index 3d210652d9..bf4c5ddf5c 100644 --- a/libavutil/opt.h +++ b/libavutil/opt.h @@ -233,6 +233,7 @@ enum AVOptionType{ AV_OPT_TYPE_VIDEO_RATE = MKBETAG('V','R','A','T'), ///< offset must point to AVRational AV_OPT_TYPE_DURATION = MKBETAG('D','U','R',' '), AV_OPT_TYPE_COLOR = MKBETAG('C','O','L','R'), + AV_OPT_TYPE_CHANNEL_LAYOUT = MKBETAG('C','H','L','A'), #if FF_API_OLD_AVOPTIONS FF_OPT_TYPE_FLAGS = 0, FF_OPT_TYPE_INT, @@ -657,6 +658,7 @@ int av_opt_set_image_size(void *obj, const char *name, int w, int h, int search_ int av_opt_set_pixel_fmt (void *obj, const char *name, enum AVPixelFormat fmt, int search_flags); int av_opt_set_sample_fmt(void *obj, const char *name, enum AVSampleFormat fmt, int search_flags); int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags); +int av_opt_set_channel_layout(void *obj, const char *name, int64_t ch_layout, int search_flags); /** * Set a binary option to an integer list. @@ -700,6 +702,7 @@ int av_opt_get_image_size(void *obj, const char *name, int search_flags, int *w_ 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); /** * @} */ |