Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-05-06 19:36:20 +0400
committerPaul B Mahol <onemda@gmail.com>2013-05-08 16:48:05 +0400
commit1f2baec7bd6011f62603c45392b0bf718a44a8a0 (patch)
tree53109f75edda10f2f4641391cdb6227df3e215cb /libavfilter/vf_histogram.c
parent5c057433ccd32f37ddc828d3f82c5b1ad7d3e3db (diff)
lavfi: add gbrap support to some filters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_histogram.c')
-rw-r--r--libavfilter/vf_histogram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c
index 3daa482498..f3fc9ff321 100644
--- a/libavfilter/vf_histogram.c
+++ b/libavfilter/vf_histogram.c
@@ -80,7 +80,7 @@ static const enum AVPixelFormat color_pix_fmts[] = {
static const enum AVPixelFormat levels_pix_fmts[] = {
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUVJ444P,
- AV_PIX_FMT_GRAY8, AV_PIX_FMT_GBRP, AV_PIX_FMT_NONE
+ AV_PIX_FMT_GRAY8, AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_NONE
};
static int query_formats(AVFilterContext *ctx)
@@ -119,6 +119,7 @@ static int config_input(AVFilterLink *inlink)
h->ncomp = desc->nb_components;
switch (inlink->format) {
+ case AV_PIX_FMT_GBRAP:
case AV_PIX_FMT_GBRP:
h->bg_color = black_gbrp_color;
h->fg_color = white_gbrp_color;