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.