Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken image

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

ignus2

  • Posts: 5
  • Joined: Wed Oct 30, 2019 6:51 pm
  • Location: Hungary
  • Real Name: Balázs Oroszi

Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken image

PostMon Nov 27, 2023 9:04 am

I'm using the DaVinci Resolve IO Encode SDK (https://resolve.cafe/developers/encodeplugin/).

Requesting 16-bit clrYUVp 4:2:0 (pIOPropColorModel=clrYUVp, pIOPropHSubsampling=2, pIOPropVSubsampling=2, pIOPropBitsPerSample=16) gives a broken image. Requesting 4:2:2 seems fine.

Here's a dump of both buffers of a single image: https://drive.google.com/file/d/1Aq5lvL ... sp=sharing
The dump contains 4 files:
dump420.raw : dump of 16-bit clrYUVp 4:2:0
dump422.raw : dump of 16-bit clrYUVp 4:2:2
dump420_8.raw : data of dump420.raw with each 16-bit value converted to 8-bit (for easier viewing)
dump422_8.raw : data of dump422.raw with each 16-bit value converted to 8-bit (for easier viewing)

Attached is an image using a raw viewer. The 422 image is fine, Y plane first followed by U/V, but 420 is completely broken somehow.

Please advise.
Attachments
dump422_8.jpg
dump422_8.jpg (259.3 KiB) Viewed 2340 times
dump420_8.jpg
dump420_8.jpg (855.26 KiB) Viewed 2340 times
Offline
User avatar

antoine

  • Posts: 498
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostMon Jan 01, 2024 7:55 am

Hi Balázs,
Did you find the source of your problem or how to work around the bug ?
Regards,
Antoine
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

ignus2

  • Posts: 5
  • Joined: Wed Oct 30, 2019 6:51 pm
  • Location: Hungary
  • Real Name: Balázs Oroszi

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostMon Jan 01, 2024 9:29 pm

The problem is with Resolve giving a broken image, I found no solution to fix that from my end. My workaround is that I simply avoid requesting 16-bit YUV 420 from Resolve.
Offline
User avatar

antoine

  • Posts: 498
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostTue Jan 02, 2024 5:30 am

Ouch sorry about that. Are there others pixel formats who appear to be broken according to your experience ?
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

ignus2

  • Posts: 5
  • Joined: Wed Oct 30, 2019 6:51 pm
  • Location: Hungary
  • Real Name: Balázs Oroszi

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostTue Jan 02, 2024 1:06 pm

I haven't encountered others, but I haven't tried them all.
Why do you ask, do you have the same issue? Can you reproduce?
Offline
User avatar

antoine

  • Posts: 498
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostWed Jan 03, 2024 10:51 am

I might test it at some point ! I'm interested in this export SDK too
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 12 guests