Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3c281dc2
authored
Apr 17, 2023
by
Googler
Committed by
Rohit Singh
Apr 18, 2023
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Expose MssimCaluclator for use in Duetdev tests
Child: <unknown commit> PiperOrigin-RevId: 524876651
parent
1df03eb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MssimCalculator.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/MssimCalculator.java
View file @
3c281dc2
...
...
@@ -25,7 +25,7 @@ import static java.lang.Math.pow;
*
* <p>See <a href=https://ece.uwaterloo.ca/~z70wang/publications/ssim.pdf>the SSIM paper</a>.
*/
/* package */
final
class
MssimCalculator
{
public
final
class
MssimCalculator
{
// Referred to as 'L' in the SSIM paper, this constant defines the maximum pixel values. The
// range of pixel values is 0 to 255 (8 bit unsigned range).
private
static
final
int
PIXEL_MAX_VALUE
=
255
;
...
...
@@ -47,7 +47,7 @@ import static java.lang.Math.pow;
/**
* Calculates the Mean Structural Similarity (MSSIM) between two images with window skipping.
*
* @see #calculate(byte[], byte[], int, int, boolean)
.
* @see #calculate(byte[], byte[], int, int, boolean)
*/
public
static
double
calculate
(
byte
[]
referenceBuffer
,
byte
[]
distortedBuffer
,
int
width
,
int
height
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment