[FFmpeg-devel] [PATCH 1/2] avcodec: add photocd decoder
Carl Eugen Hoyos
ceffmpeg at gmail.com
Fri Dec 21 22:40:18 EET 2018
2018-12-21 19:48 GMT+01:00, Paul B Mahol <onemda at gmail.com>:
> + if (s->luma) {
> + ptr = p->data[0];
> +
> + for (int y = 0; y < avctx->height; y++) {
> + for (int x = 0; x < avctx->width; x++) {
> + ptr[x] = av_clip_uint8(ptr[x] * 1.35);
> + }
Without this multiplication, the y plane looks much more
similar to the reference with respect to brightness.
Thank you, Carl Eugen
More information about the ffmpeg-devel
mailing list