0
我有從網絡攝像頭捕獲的字節流(使用Aforge.Net庫)。但捕獲的圖像返回NV12或YUV將NV12(YUV4:2:0)字節陣列轉換爲RGB字節陣列
我需要將其轉換爲RGB字節流。
我希望能實現,做了這個功能
byte[] ConvertToRGB(byte[] YCbCrarray)
{
//Read the byte array and encode it in RGB format and return it as a byte array
return rgbarray;
}