mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi/blackdetect: support 2 more pixels formats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
9dd1447788
commit
413f865a9a
|
@ -62,7 +62,7 @@ static const AVOption blackdetect_options[] = {
|
|||
AVFILTER_DEFINE_CLASS(blackdetect);
|
||||
|
||||
#define YUVJ_FORMATS \
|
||||
AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P
|
||||
AV_PIX_FMT_YUVJ411P, AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P
|
||||
|
||||
static enum AVPixelFormat yuvj_formats[] = {
|
||||
YUVJ_FORMATS, AV_PIX_FMT_NONE
|
||||
|
@ -71,8 +71,11 @@ static enum AVPixelFormat yuvj_formats[] = {
|
|||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVPixelFormat pix_fmts[] = {
|
||||
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NV12,
|
||||
AV_PIX_FMT_NV21, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV411P,
|
||||
AV_PIX_FMT_GRAY8,
|
||||
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,
|
||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P,
|
||||
AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV444P,
|
||||
AV_PIX_FMT_NV12, AV_PIX_FMT_NV21,
|
||||
YUVJ_FORMATS,
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue