Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > VP9 and AV1

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th June 2025, 17:26   #21  |  Link
rwill
Registered User
 
Join Date: Dec 2013
Location: Berlin, Germany
Posts: 466
Well I am somewhat confused now that I have been thinking about it for a while.

There is this SVT-AV1-HDR file here:

https://github.com/juliobbv-p/svt-av...c/psy_rd.c#L54

Now the author is apparently some "Gianni Rosato" and he licensed it under BSD 2 Clause.

The code seems to be some reinterpretation of x264 code. So much I was aware of.

But looking closer at the comments of some functions, for example:

Code:
// in: a pseudo-simd number of the form x+(y<<EW)
// return: abs(x)+(abs(y)<<16)
static inline sum2_t abs2(sum2_t a)
{
    const sum2_t mask = (a >> (BITS_PER_SUM - 1)) & (((sum2_t)1 << BITS_PER_SUM) + 1);
    const sum2_t s = (mask << BITS_PER_SUM) - mask;
    return (a + s) ^ s;
}
This seems too close to x264's

https://code.videolan.org/videolan/x...ype=heads#L255
Code:
// in: a pseudo-simd number of the form x+(y<<16)
// return: abs(x)+(abs(y)<<16)
static ALWAYS_INLINE sum2_t abs2( sum2_t a )
{
    sum2_t s = ((a>>(BITS_PER_SUM-1))&(((sum2_t)1<<BITS_PER_SUM)+1))*((sum_t)-1);
    return (a+s)^s;
}
And its not just this one function, its really everywhere.

I sure do hope there are agreements in place with the x264 folks.

Otherwise, well, I am no lawyer, but x264 is licensed under the GPL and SVT-AV1-PSY and on relabeled the code to BSD, maybe a bad call?

Good luck royalty free AV1 enthusiasts.
__________________
My github...
rwill is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.