[FFmpeg-devel] [PATCH] vf_psnr: sse2 optimizations for sum-squared-error.

James Darnley james.darnley at gmail.com
Mon Jul 13 21:50:27 CEST 2015


On 2015-07-13 01:34, Ronald S. Bultje wrote:
> Hi,
> 
> On Sun, Jul 12, 2015 at 5:54 PM, Paul B Mahol <onemda at gmail.com> wrote:
> 
>> On 7/12/15, Ronald S. Bultje <rsbultje at gmail.com> wrote:
>>> +typedef struct PSNRDSPContext {
>>> +    uint64_t (*sse_line)(const uint8_t *buf, const uint8_t *ref, int w);
>>
>> Besides naming of function sse_line rest LGTM.
>>
> 
> That was sort of inspired by other functions in lavfi. I'm open to
> alternative suggestions.

If it was called sse after Intel's Streaming SIMD Extensions then it
would be "bad" because it implies it must use those instructions.  (Or
some reason like that.)

If it was called sse after Sum of Squared Errors then it would be "good"
because the name is correctly reflecting what it does.

Perhaps ssd is more acceptable after Sum of Squared Differences?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150713/2c406b38/attachment.sig>


More information about the ffmpeg-devel mailing list