2016-08-25 102 views
0

我已經捕獲NV12(YUV)格式的Intel Capture屏幕。英特爾捕獲不捕獲鼠標光標。如何在YUV(NV12)緩衝區中插入光標圖像?

所以我必須在英特爾捕獲的yuv緩衝區中包含光標圖像。

是否可以在yuv緩衝區中編輯(包含)光標圖像?

指導我這個。 在此先感謝。

回答

0

您可以查看圖像如何存儲在NV12(http://www.fourcc.org/yuv.php#NV12

YUV 4:2:0 image with a plane of 8 bit Y samples followed by an interleaved U/V plane containing 8 bit 2x2 subsampled colour difference samples. 

你可以試試這個:

  1. 將您的光標移動到YUV:https://en.wikipedia.org/wiki/YUV#Conversion_to.2Ffrom_RGB
  2. 添加光標幀。光標的Y平面到框架的Y平面,與UV相同。

此外,您可以將幀轉換爲RGB並將光標插入RGB色彩空間,但它是緩慢的。

相關問題