[Algorithms] FOURCC encoded pixel data
Brought to you by:
vexxed72
|
From: Blake S. <bse...@ro...> - 2000-07-21 03:10:32
|
I'm getting passed pixel data that has been encoded
with the following FOURCC pixel formats:
MKFOURCC('I','4','2','0') /* planar YCrCb */
MKFOURCC('Y','V','1','2') /* planar YVU420 */
MKFOURCC('Y','U','Y','2') /* packed YUV422 */
MKFOURCC('U','Y','V','Y') /* packed YUV422 */
MKFOURCC('Y','V','U','9') /* Intel YVU9 */
MKFOURCC('3','B','G','R') /* RGB-32 ?? */
MKFOURCC('B','G','R',' ') /* top-down RGB-24*/
MKFOURCC('6','B','G','R') /* RGB-16 565 */
MKFOURCC('5','B','G','R') /* RGB-16 555 */
MKFOURCC('T','I','B','8') /* RGB-8 w. pal-e */
MKFOURCC('2','V','U','Y') /* planar YCrCb */
MKFOURCC('1','V','U','Y') /* ??? */
MKFOURCC('R','V','U','Y') /* ??? */
I'm getting passed the pixel array, a rectangle, one
of these FOURCC codes and a pixel bit count.
I need to blit these to a window, or convert them
to a BITMAPINFO struct so I can then blit or whatever.
I'm in a win32 environment, but I can't use directX.
Searching through MSDN seems to only refer to directX
routines that operate on pixel data in this format...
Does anyone know of a routine or lib that converts these
to something I can work with that is not DirectX based?
I could write conversions on my own, but I doubt they
would be very fast...
-Blake
|