[FFmpeg-devel] [PATCH] lavfi: add colorkey_opencl filter
Carl Eugen Hoyos
ceffmpeg at gmail.com
Wed Apr 10 23:30:38 EEST 2019
2019-04-10 5:37 GMT+02:00, Jarek Samic <cldfire3 at gmail.com>:
> + // Make sure the input is a format we support
> + if (fmt != AV_PIX_FMT_ARGB &&
> + fmt != AV_PIX_FMT_RGBA &&
> + fmt != AV_PIX_FMT_ABGR &&
> + fmt != AV_PIX_FMT_BGRA &&
> + fmt != AV_PIX_FMT_NONE
> + ) {
> + av_log(avctx, AV_LOG_ERROR, "unsupported (non-RGB) format in
> colorkey_opencl.\n");
> + err = AVERROR(ENOSYS);
> + goto fail;
> + }
I would have expected that you export a list of supported
pix_fmts and that you can assert on the actual format being
one of them (if you need to).
Carl Eugen
More information about the ffmpeg-devel
mailing list