DVR IOPlugin: How to get high bit depth frame buffer?

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

DanielStankewitz

  • Posts: 3
  • Joined: Mon Dec 30, 2019 9:06 am
  • Location: Bad Vilbel, Germany
  • Real Name: Daniel Stankewitz

DVR IOPlugin: How to get high bit depth frame buffer?

PostTue Apr 06, 2021 12:14 pm

I have actually two question about getting the correct frame buffer from DVR:

1. I have actually multiple codec variants in one package andfor performance reasons I need the frame buffer in different (planar) pixel formats:
- YUV 420 8 bit (Got it as clrYUVp with 2x2)
- YUV 422 8 bit (Got it as clrUYVY with 2x1, clrYUVp with 2x1 is not working)
- YUV 444 8 bit (Got it as clrYUVp with 1x1)
- YUV 420 10 bit
- YUV 422 10 bit
- YUV 444 10 bit
- YUV 420 12 bit
- YUV 422 12 bit
- YUV 444 12 bit
- YUV 420 16 bit
- YUV 422 16 bit
- YUV 444 16 bit
- RGB 8 bit (Got it as clrRGBA)
- RGB 16 bit

I tried to set the bit depth by:
Code: Select all
uint32_t val = 16;
codecInfo.SetProperty(pIOPropBitsPerSample, propTypeUInt32, &val, 1);

It works for i.e. clrYUVp 1x1, but it seems only very specific pixel formats are selectable. Do you have a list of them available?

2. How do I get the alpha channel along with YUV data?

Thanks for helping me with this.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 22 guests