diff options
author | Nicolas George <george@nsup.org> | 2016-12-18 12:31:24 +0100 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2017-01-12 14:06:16 +0100 |
commit | dbe9dbed31f0bf04ee0a8b5b667dc9c313684197 (patch) | |
tree | 571dbd3ac160244c2ae833133be3a22e5a4ec111 /libavfilter/buffersink.h | |
parent | 0b66c456f9caf5973943b5a0b008e920a655c3f9 (diff) | |
download | ffmpeg-dbe9dbed31f0bf04ee0a8b5b667dc9c313684197.tar.gz |
lavfi/buffersink: add accessors for the stream properties.
av_buffersink_get_frame_rate() did already exist; its argument becomes const.
Diffstat (limited to 'libavfilter/buffersink.h')
-rw-r--r-- | libavfilter/buffersink.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h index e399b91175..f51fa7c1dd 100644 --- a/libavfilter/buffersink.h +++ b/libavfilter/buffersink.h @@ -101,9 +101,27 @@ AVABufferSinkParams *av_abuffersink_params_alloc(void); void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size); /** - * Get the frame rate of the input. + * @defgroup lavfi_buffersink_accessors Buffer sink accessors + * Get the properties of the stream + * @{ */ -AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx); + +enum AVMediaType av_buffersink_get_type (const AVFilterContext *ctx); +AVRational av_buffersink_get_time_base (const AVFilterContext *ctx); +int av_buffersink_get_format (const AVFilterContext *ctx); + +AVRational av_buffersink_get_frame_rate (const AVFilterContext *ctx); +int av_buffersink_get_w (const AVFilterContext *ctx); +int av_buffersink_get_h (const AVFilterContext *ctx); +AVRational av_buffersink_get_sample_aspect_ratio (const AVFilterContext *ctx); + +int av_buffersink_get_channels (const AVFilterContext *ctx); +uint64_t av_buffersink_get_channel_layout (const AVFilterContext *ctx); +int av_buffersink_get_sample_rate (const AVFilterContext *ctx); + +AVBufferRef * av_buffersink_get_hw_frames_ctx (const AVFilterContext *ctx); + +/** @} */ /** * Get a frame with filtered data from sink and put it in frame. |