XimingCheng / HEVCAnalyzer

HEVC H.265 stream GUI Analyzer based on wxWidgets
http://ximingcheng.github.io/HEVCAnalyzer
109 stars 34 forks source link

The thumbnail of 10 bit YUV is wrong #1

Closed XimingCheng closed 11 years ago

XimingCheng commented 11 years ago

After open 10 bit YUV file the color of the yuv is wrong

shot

XimingCheng commented 11 years ago
if(m_iYUVBit == 10)
{
    y = (unsigned char)(pY[i] >> 2);
    u = (unsigned char)(pU[i/2] >> 2);
    v = (unsigned char)(pV[i/2] >> 2);
}
else
{
    y = (unsigned char)pY[i];
    u = (unsigned char)pU[i/2];
    v = (unsigned char)pV[i/2];
}

shot