阅读:1362回复:2
如何得到256色图像?
我的采集芯片输出数据线16位,其中Y8位,UV8位。输出数据可编程位Y/U/V4:2:2等,也可仅输出8位。如何得到256色图像?其数据格式是何?
|
|
沙发#
发布于:2003-07-29 13:24
需要把YUV422格式的图象转成RGB
|
|
板凳#
发布于:2003-07-30 01:06
what are u going to do?
to processing the video data? or to display the video on screen? if you need to display the video on screen there are two ways: 1. if your pc\'s hardware support YUV422 display, use directX to create a YUV422 surface then copy the video data on it, then Blt to front surface. 2. if you pc\'s hardware do not support YUV422, you can either convert YUV422 to RGB by yourself or use DirectX again to convert it to rgb, then display it. hope this is help. |
|