Skip to content

Compute the CCSO training distortion from the class statistics - #5804

Open
tianqitliu wants to merge 1 commit into
AOMediaCodec:av2-encfrom
tianqitliu:tianqi/av2-enc-ccso-dist-opt-1124-mr
Open

tianqitliu wants to merge 1 commit into
AOMediaCodec:av2-encfrom
tianqitliu:tianqi/av2-enc-ccso-dist-opt-1124-mr

Conversation

@tianqitliu

@tianqitliu tianqitliu commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Compute the CCSO distortion from the class statistics instead of applying on the whole frame

Anchor: a1ec45
Tests: RA, 33 frames.

cpu-used=1:

+----------------+--------+--------+--------+--------+----------+----------+
| Summary        |      Y |      U |      V |    YUV | Enc-time | Dec-time |
+----------------+--------+--------+--------+--------+----------+----------+
| A1             |  0.00% |  0.00% |  0.00% |  0.00% |   97.30% |     100% |
| A2             |  0.00% | -0.01% |  0.00% |  0.00% |   99.05% |     100% |
| A3             |  0.00% | -0.05% | -0.01% |  0.00% |   99.56% |     100% |
| A4             | -0.01% | -0.01% | -0.04% | -0.01% |  100.14% |     100% |
| A5             |  0.00% |  0.00% |  0.00% |  0.00% |  100.32% |     100% |
| B1             | -0.01% |  0.01% | -0.01% | -0.01% |   99.22% |     100% |
| Overall w/o B2 |  0.00% | -0.01% | -0.01% |  0.00% |   99.11% |     100% |
| B2             |  0.00% |  0.00% |  0.00% |  0.00% |   99.08% |     100% |
+----------------+--------+--------+--------+--------+----------+----------+

cpu-used=2:

+----------------+--------+---------+--------+-------+----------+----------+
| Summary        |      Y |       U |      V |   YUV | Enc-time | Dec-time |
+----------------+--------+---------+--------+-------+----------+----------+
| A1             |  0.00% |   0.00% |  0.00% | 0.00% |   97.10% |     100% |
| A2             | -0.01% |   0.00% |  0.04% | 0.00% |   97.70% |     100% |
| A3             |  0.00% |   0.00% |  0.00% | 0.00% |   98.50% |     100% |
| A4             |  0.01% |  -0.04% |  0.13% | 0.01% |   98.98% |     100% |
| A5             |  0.02% |  -0.11% | -0.07% | 0.01% |   99.62% |     100% |
| B1             |  0.00% |   0.05% |  0.06% | 0.01% |   98.11% |     100% |
| Overall w/o B2 |  0.00% |   0.00% |  0.03% | 0.00% |   98.08% |     100% |
| B2             |  0.00% | #VALUE! |  0.04% | 0.01% |   97.05% |     101% |
+----------------+--------+---------+--------+-------+----------+----------+

cpu-used=3:

+----------------+-------+--------+--------+-------+----------+----------+
| Summary        |     Y |      U |      V |   YUV | Enc-time | Dec-time |
+----------------+-------+--------+--------+-------+----------+----------+
| A1             | 0.00% |  0.00% |  0.00% | 0.00% |   97.28% |     100% |
| A2             | 0.00% | -0.01% |  0.02% | 0.00% |   98.93% |     100% |
| A3             | 0.00% |  0.00% |  0.00% | 0.00% |   99.02% |     100% |
| A4             | 0.00% |  0.00% |  0.00% | 0.00% |   99.03% |      99% |
| A5             | 0.02% |  0.02% |  0.00% | 0.02% |   99.37% |     100% |
| B1             | 0.00% |  0.02% |  0.02% | 0.00% |   99.40% |     101% |
| Overall w/o B2 | 0.00% |  0.00% |  0.01% | 0.00% |   98.83% |     100% |
| B2             | 0.00% |  0.00% | -0.01% | 0.00% |   98.78% |     100% |
+----------------+-------+--------+--------+-------+----------+----------+

cpu-used=4:

+----------------+-------+--------+--------+-------+----------+----------+
| Summary        |     Y |      U |      V |   YUV | Enc-time | Dec-time |
+----------------+-------+--------+--------+-------+----------+----------+
| A1             | 0.00% |  0.00% |  0.00% | 0.00% |   96.53% |     100% |
| A2             | 0.00% | -0.03% |  0.01% | 0.00% |   98.56% |     100% |
| A3             | 0.00% |  0.00% |  0.00% | 0.00% |   99.18% |     100% |
| A4             | 0.00% |  0.00% |  0.00% | 0.00% |   99.01% |     100% |
| A5             | 0.02% | -0.01% |  0.02% | 0.02% |   99.21% |      99% |
| B1             | 0.00% |  0.00% | -0.04% | 0.00% |   99.12% |     100% |
| Overall w/o B2 | 0.00% | -0.01% |  0.00% | 0.00% |   98.55% |     100% |
| B2             | 0.00% |  0.00% |  0.01% | 0.00% |   99.02% |     101% |
+----------------+-------+--------+--------+-------+----------+----------+

cpu-used=5:

+----------------+-------+--------+--------+-------+----------+----------+
| Summary        |     Y |      U |      V |   YUV | Enc-time | Dec-time |
+----------------+-------+--------+--------+-------+----------+----------+
| A1             | 0.00% |  0.00% |  0.00% | 0.00% |   96.91% |     100% |
| A2             | 0.00% | -0.01% | -0.02% | 0.00% |   98.52% |     100% |
| A3             | 0.00% |  0.00% |  0.00% | 0.00% |   99.25% |     100% |
| A4             | 0.00% |  0.00% | -0.01% | 0.00% |   99.65% |     100% |
| A5             | 0.00% |  0.00% |  0.00% | 0.00% |   99.93% |      99% |
| B1             | 0.01% |  0.04% |  0.06% | 0.02% |   99.00% |     100% |
| Overall w/o B2 | 0.00% |  0.00% |  0.00% | 0.00% |   98.70% |     100% |
| B2             | 0.00% |  0.00% |  0.00% | 0.00% |   97.80% |      99% |
+----------------+-------+--------+--------+-------+----------+----------+

cpu-used=6:

+----------------+-------+--------+--------+-------+----------+----------+
| Summary        |     Y |      U |      V |   YUV | Enc-time | Dec-time |
+----------------+-------+--------+--------+-------+----------+----------+
| A1             | 0.00% |  0.00% |  0.00% | 0.00% |   96.27% |     100% |
| A2             | 0.00% | -0.01% |  0.02% | 0.00% |   98.65% |     100% |
| A3             | 0.00% |  0.00% |  0.00% | 0.00% |   99.03% |     100% |
| A4             | 0.00% |  0.00% |  0.00% | 0.00% |   98.93% |     100% |
| A5             | 0.00% |  0.00% |  0.00% | 0.00% |   99.78% |      99% |
| B1             | 0.00% |  0.00% |  0.02% | 0.00% |   98.78% |     100% |
| Overall w/o B2 | 0.00% |  0.00% |  0.01% | 0.00% |   98.49% |     100% |
| B2             | 0.00% |  0.00% | -0.02% | 0.00% |   98.09% |      99% |
+----------------+-------+--------+--------+-------+----------+----------+

@tianqitliu
tianqitliu force-pushed the tianqi/av2-enc-ccso-dist-opt-1124-mr branch 2 times, most recently from f345c69 to af879f4 Compare November 25, 2026 07:11
@urvangjoshi
urvangjoshi force-pushed the tianqi/av2-enc-ccso-dist-opt-1124-mr branch from af879f4 to fcb87bd Compare November 30, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants