How to convert yuy2 to a BITMAP in C++

前端 未结 4 1963
醉梦人生
醉梦人生 2021-01-05 07:58

I\'m using a security camera DLL to retreive the image from the camera. The DLL call a function of my program passing the image buffer as a parameter, but the image is in yu

4条回答
  •  滥情空心
    2021-01-05 08:59

    You will have to write your own converter. GDI+ doesn't know how to deal with YUY2 bitmaps.

    Look here.

    Please note that 2 pixels share same color values and have different luminance values.

    Here are some formulas to help you write your converter.

提交回复
热议问题