Skip to content

Commit ce7ac0e

Browse files
authored
Codec-Compare version 0.2.2 (#9)
1 parent 818eaf4 commit ce7ac0e

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.2.2
4+
5+
- Add DSSIM distortion metric recognition.
6+
37
## v0.2.1
48

59
- Display the URL of the batch JSON on load failure.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codec_compare",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Codec performance comparison tool",
55
"publisher": "Google LLC",
66
"author": "Yannis Guyon",

src/codec_compare.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class CodecCompare extends LitElement {
207207
</p>
208208
209209
<p id="credits">
210-
Codec Compare beta version 0.2.1<br>
210+
Codec Compare beta version 0.2.2<br>
211211
<a href="https://github.com/webmproject/codec-compare">
212212
Sources on GitHub
213213
</a>

src/entry.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export enum FieldId {
4040
QUALITY, // Encoding setting.
4141
PSNR, // Difference between original and decoded images.
4242
SSIM, // Difference between original and decoded images.
43+
DSSIM, // Difference between original and decoded images.
4344
MSSSIM, // Difference between original and decoded images.
4445
BUTTERAUGLI, // Difference between original and decoded images.
4546
SSIMULACRA, // Difference between original and decoded images.
@@ -96,6 +97,7 @@ const NAME_TO_FIELD_ID = new Map<string, FieldId>([
9697
['quality', FieldId.QUALITY],
9798
['psnr', FieldId.PSNR],
9899
['ssim', FieldId.SSIM],
100+
['dssim', FieldId.DSSIM],
99101
['msssim', FieldId.MSSSIM],
100102
['butteraugli', FieldId.BUTTERAUGLI],
101103
['ssimulacra', FieldId.SSIMULACRA],
@@ -116,9 +118,9 @@ const NAME_TO_FIELD_ID = new Map<string, FieldId>([
116118
* by decreasing preference of which matcher is enabled by default.
117119
*/
118120
export const DISTORTION_METRIC_FIELD_IDS = [
119-
FieldId.SSIM, FieldId.PSNR, FieldId.SSIMULACRA2, FieldId.MSSSIM,
120-
FieldId.BUTTERAUGLI, FieldId.SSIMULACRA, FieldId.CIEDE2000, FieldId.FLIP,
121-
FieldId.LPIPS, FieldId.P3NORM
121+
FieldId.SSIM, FieldId.PSNR, FieldId.SSIMULACRA2, FieldId.DSSIM,
122+
FieldId.MSSSIM, FieldId.BUTTERAUGLI, FieldId.SSIMULACRA, FieldId.CIEDE2000,
123+
FieldId.FLIP, FieldId.LPIPS, FieldId.P3NORM
122124
];
123125

124126
function fieldNameToFieldId(name: string): FieldId {

src/plot_overlay_ui.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {State} from './state';
2929
function fieldIdToString(id: FieldId) {
3030
if (id === FieldId.PSNR) return 'worse looking';
3131
if (id === FieldId.SSIM) return 'worse looking';
32+
if (id === FieldId.DSSIM) return 'better looking';
3233
if (id === FieldId.MSSSIM) return 'worse looking';
3334
if (id === FieldId.BUTTERAUGLI) return 'better looking';
3435
if (id === FieldId.SSIMULACRA) return 'better looking';

0 commit comments

Comments
 (0)