Getting Raw Pixel Values
Posted: Tue May 01, 2018 5:33 pm
Greetings,
It appears that the Blackmagic SDK only gives you access to formatted pixels values (8bit YUV422, 8 Bit RGB, etc). Is it possible to get the raw Y and CbCr from a pixel in a HD-SDI stream?
A little background:
We make IR cameras where I work that output SMPTE 292 video, and we have a request to support MISB 0403.3 Infrared (IR) video. It is my understanding, that in a normal SMPTE 292 video stream, each pixel in a frame is represented by 10 bits of Y and 10 bits of CbCr. In MISB 0403.3, we are dealing with 16 bit Y data (IR is greyscale so we have more bits dedicated to luma) so the upper 10 bits of a IR pixel is packed into the Y channel and the lower 6 bits are packed into the CbCR. I'm trying to use the SDK to rebuild a 16 bit pixel from the Y, Cb,Cr values coming from the capture card. If I am trying to get every pixel's CbCr value, I can't use 4:2:2 encoding, since it gives the CbCr for every other pixel. Is there anyway around this in the SDK?
Thanks,
Matt
It appears that the Blackmagic SDK only gives you access to formatted pixels values (8bit YUV422, 8 Bit RGB, etc). Is it possible to get the raw Y and CbCr from a pixel in a HD-SDI stream?
A little background:
We make IR cameras where I work that output SMPTE 292 video, and we have a request to support MISB 0403.3 Infrared (IR) video. It is my understanding, that in a normal SMPTE 292 video stream, each pixel in a frame is represented by 10 bits of Y and 10 bits of CbCr. In MISB 0403.3, we are dealing with 16 bit Y data (IR is greyscale so we have more bits dedicated to luma) so the upper 10 bits of a IR pixel is packed into the Y channel and the lower 6 bits are packed into the CbCR. I'm trying to use the SDK to rebuild a 16 bit pixel from the Y, Cb,Cr values coming from the capture card. If I am trying to get every pixel's CbCr value, I can't use 4:2:2 encoding, since it gives the CbCr for every other pixel. Is there anyway around this in the SDK?
Thanks,
Matt