mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_spp: add gray8 support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3ff8ef62bb
commit
4a06215c1a
@ -321,6 +321,7 @@ static int query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ440P,
|
||||
AV_PIX_FMT_YUV444P10, AV_PIX_FMT_YUV422P10,
|
||||
AV_PIX_FMT_YUV420P10,
|
||||
AV_PIX_FMT_GRAY8,
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
|
||||
@ -421,8 +422,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
}
|
||||
|
||||
filter(spp, out->data[0], in->data[0], out->linesize[0], in->linesize[0], inlink->w, inlink->h, qp_table, qp_stride, 1, sample_bytes);
|
||||
filter(spp, out->data[1], in->data[1], out->linesize[1], in->linesize[1], cw, ch, qp_table, qp_stride, 0, sample_bytes);
|
||||
filter(spp, out->data[2], in->data[2], out->linesize[2], in->linesize[2], cw, ch, qp_table, qp_stride, 0, sample_bytes);
|
||||
|
||||
if (out->data[2]) {
|
||||
filter(spp, out->data[1], in->data[1], out->linesize[1], in->linesize[1], cw, ch, qp_table, qp_stride, 0, sample_bytes);
|
||||
filter(spp, out->data[2], in->data[2], out->linesize[2], in->linesize[2], cw, ch, qp_table, qp_stride, 0, sample_bytes);
|
||||
}
|
||||
emms_c();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user