Skip to content

Issue 2212 - #2302

Merged
xiphmont merged 2 commits into
xiph:masterfrom
xiphmont:issue_2212
May 14, 2020
Merged

xiphmont merged 2 commits into
xiph:masterfrom
xiphmont:issue_2212

Conversation

@xiphmont

Copy link
Copy Markdown
Contributor

Two patches implement the missing infrastructure needed to fix issue 2212 and allow proper Tile/LRU sizing in arbitrary 4:2:2 video.

@xiphmont
xiphmont force-pushed the issue_2212 branch 2 times, most recently from 21e432f to 842933f Compare May 14, 2020 08:03
@coveralls

coveralls commented May 14, 2020 •

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage decreased (-0.3%) to 82.327% when pulling f322748 on xiphmont:issue_2212 into a4840d9 on xiph:master.

The versions of write_quiniform() used by the arithmetic packer and the uncompressed bitwriter vary considerably.  For some reason, the BitWriter uses a much 'narrower' implementation that overflows with inputs of more than a few bits.

This patch replaces the BitWriter's implementation with one like in the arithmetic packer.  This allows its use in coding non-uniform tile header fields.

@barrbrain barrbrain left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me with a few minor comments. Passes my reproduction: #2224 (comment)
If rebased against 03a11a2 on master, the reproduction also doesn't desync with CDEF and LRF enabled.

Comment thread src/tiling/tiler.rs Resolved
Comment thread src/header.rs Resolved
Comment thread src/header.rs Resolved
When doing loop filter RDO inline with the rest of the tile coding,
LRUs must align to tile boundaries.  An unexpected corner case means
that chroma LRUs must have an even superblock width in 4:2:2 video, as
LRUs must always be square.  As a result, that means tiles must also
have an even superblock width.

As tile width must be adjusted in this case, it also means we can't
use the spec's 'tile uniform spacing' mode, which would produce odd
superblock width tiles in, eg, 1080p 4:2:2 video. This patch also
implements explicit per-tile sizing the the frame OBU header.
@xiphmont
xiphmont merged commit 51f0eed into xiph:master May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants