Commit 33f7f48
authored
Allow calculating PSNR for Y/U/V components (#3824)
* Allow calculating PSNR for Y/U/V components
by requesting this either as a option for all frames in
SEncParamExt.bPsnrY (and U/V)
or per-frame using
SSourcePicture.bPsnrY (and U/V)
The resulting data goes into
SLayerBSInfo.rPsnr
with is a three-element array for the Y/U/V components of the PSNR.
This is disabled by default.
Also removes the ENABLE_PSNR_CALC preprocessor define in favor of the API.
See
https://www.researchgate.net/publication/383545049_Low-Complexity_Video_PSNR_Measurement_in_Real-Time_Communication_Products
by @YCSun-Meta for a research paper explaining the background.
* move per-pic psnr1 parent 423eb2c commit 33f7f48
File tree
4 files changed
+61
-37
lines changed- codec
- api/wels
- encoder/core
- inc
- src
4 files changed
+61
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
595 | 598 | | |
596 | 599 | | |
597 | 600 | | |
| |||
635 | 638 | | |
636 | 639 | | |
637 | 640 | | |
| 641 | + | |
638 | 642 | | |
639 | 643 | | |
640 | 644 | | |
| |||
659 | 663 | | |
660 | 664 | | |
661 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
662 | 669 | | |
| 670 | + | |
663 | 671 | | |
664 | 672 | | |
665 | 673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 90 | | |
96 | 91 | | |
97 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
| |||
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
348 | 354 | | |
349 | 355 | | |
350 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2186 | 2186 | | |
2187 | 2187 | | |
2188 | 2188 | | |
2189 | | - | |
| 2189 | + | |
2190 | 2190 | | |
2191 | 2191 | | |
2192 | 2192 | | |
| |||
3445 | 3445 | | |
3446 | 3446 | | |
3447 | 3447 | | |
3448 | | - | |
3449 | 3448 | | |
3450 | | - | |
3451 | 3449 | | |
3452 | 3450 | | |
3453 | 3451 | | |
| |||
3469 | 3467 | | |
3470 | 3468 | | |
3471 | 3469 | | |
3472 | | - | |
3473 | 3470 | | |
3474 | | - | |
3475 | 3471 | | |
3476 | 3472 | | |
3477 | 3473 | | |
| |||
3624 | 3620 | | |
3625 | 3621 | | |
3626 | 3622 | | |
3627 | | - | |
3628 | 3623 | | |
3629 | | - | |
3630 | 3624 | | |
3631 | 3625 | | |
3632 | 3626 | | |
| |||
3921 | 3915 | | |
3922 | 3916 | | |
3923 | 3917 | | |
3924 | | - | |
3925 | | - | |
3926 | | - | |
3927 | | - | |
3928 | | - | |
3929 | | - | |
3930 | | - | |
3931 | | - | |
3932 | | - | |
3933 | | - | |
3934 | | - | |
3935 | | - | |
3936 | | - | |
3937 | | - | |
3938 | | - | |
3939 | | - | |
3940 | | - | |
3941 | | - | |
3942 | | - | |
3943 | | - | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
3944 | 3942 | | |
3945 | 3943 | | |
3946 | 3944 | | |
| |||
3958 | 3956 | | |
3959 | 3957 | | |
3960 | 3958 | | |
| 3959 | + | |
| 3960 | + | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
3961 | 3972 | | |
3962 | 3973 | | |
3963 | | - | |
3964 | 3974 | | |
3965 | | - | |
3966 | | - | |
3967 | | - | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
3968 | 3984 | | |
3969 | | - | |
3970 | 3985 | | |
3971 | 3986 | | |
3972 | 3987 | | |
| |||
0 commit comments