[FFmpeg-devel] [PATCH] libavfilter: created a new filter that obtains the average peak signal-to-noise ratio (PSNR) of two input video files in YUV format.
Roger Pau Monné
roger.pau at entel.upc.edu
Tue Jun 21 14:44:50 CEST 2011
Hello,
Sorry for the delay, I'm really busy these weeks, I will like to
implement the option to store the results in a qpsnr style, but right
now I don't have time, let's see if I can do it in a week or two. I've
applied the suggested changes, thanks Stefano.
Regards, Roger.
2011/6/10 Mark Himsley <mark at mdsh.com>:
> On 10/06/11 00:18, Stefano Sabatini wrote:
>>
>> On date Tuesday 2011-06-07 14:03:36 +0200, Roger Pau Monné encoded:
>
>>> + switch (inlink->format) {
>>> + case PIX_FMT_YUV410P:
>>> + case PIX_FMT_YUV411P:
>>> + case PIX_FMT_YUV420P:
>>> + case PIX_FMT_YUV422P:
>>> + case PIX_FMT_YUV440P:
>>> + case PIX_FMT_YUV444P:
>>> + case PIX_FMT_YUVA420P:
>>
>>> + psnr->max[0] = 235;
>>
>> psnr->max[3] = 255;
>>
>> at least I suppose this is the max alpha value in
>> psnr->YUVA420P, yes I forgot this in the lut filter
>
> It is not. Alpha is always 0 - 255 (headroom is not required in an alpha
> signal, you can't have more than completely keyed on, or less than not keyed
> on at all)
>
>>> + psnr->max[1] = psnr->max[2] = 240;
>>
>>
>>> + break;
>>> + default:
>>> + psnr->max[0] = psnr->max[1] = psnr->max[2] = psnr->max[3] = 255;
>>> + }
>>> +
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavfilter-created-a-new-filter-that-obtains-the-av.patch
Type: application/octet-stream
Size: 15743 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110621/2df8ac23/attachment.obj>
More information about the ffmpeg-devel
mailing list