Skip to content

Fix piped TBC input with 3D chroma decoders#390

Merged
simoninns merged 2 commits intohappycube:rev7from
atsampson:blackfields
Dec 30, 2019
Merged

Fix piped TBC input with 3D chroma decoders#390
simoninns merged 2 commits intohappycube:rev7from
atsampson:blackfields

Conversation

@atsampson
Copy link
Collaborator

Two fixes to SourceField:

  • Fill dummy fields correctly with black, rather than with a nonsense value; apparently I forgot this was a QByteArray.

  • Don't load field 1 from the input TBC when creating dummy fields - this meant that piped input didn't work with ntsc3d/transform3d.

These are QByteArrays, so using the fill method won't do the right thing
when we're trying to fill with a 16-bit value.
SourceField::loadFields used to load field 1 then fill it with black
when it needed a dummy black field. This doesn't work when input is from
a pipe (because it would need to seek), so just resize the field data to
the right size instead.
@atsampson atsampson added bug ld-decode-tools An issue only affecting the ld-decode-tools labels Dec 30, 2019
@atsampson atsampson requested a review from simoninns December 30, 2019 02:24
@simoninns simoninns merged commit 12b8944 into happycube:rev7 Dec 30, 2019
@atsampson atsampson deleted the blackfields branch December 30, 2019 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug ld-decode-tools An issue only affecting the ld-decode-tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants