MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ipu_csc

Function ipu_csc

pcsx2/IPU/IPU_MultiISA.cpp:1878–1910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1876// --------------------------------------------------------------------------------------
1877
1878__fi static void ipu_csc(macroblock_8& mb8, macroblock_rgb32& rgb32, int sgn)
1879{
1880 int i;
1881 u8* p = (u8*)&rgb32;
1882
1883 yuv2rgb();
1884
1885 if (g_ipu_thresh[0] > 0)
1886 {
1887 for (i = 0; i < 16*16; i++, p += 4)
1888 {
1889 if ((p[0] < g_ipu_thresh[0]) && (p[1] < g_ipu_thresh[0]) && (p[2] < g_ipu_thresh[0]))
1890 *(u32*)p = 0;
1891 else if ((p[0] < g_ipu_thresh[1]) && (p[1] < g_ipu_thresh[1]) && (p[2] < g_ipu_thresh[1]))
1892 p[3] = 0x40;
1893 }
1894 }
1895 else if (g_ipu_thresh[1] > 0)
1896 {
1897 for (i = 0; i < 16*16; i++, p += 4)
1898 {
1899 if ((p[0] < g_ipu_thresh[1]) && (p[1] < g_ipu_thresh[1]) && (p[2] < g_ipu_thresh[1]))
1900 p[3] = 0x40;
1901 }
1902 }
1903 if (sgn)
1904 {
1905 for (i = 0; i < 16*16; i++, p += 4)
1906 {
1907 *(u32*)p ^= 0x808080;
1908 }
1909 }
1910}
1911
1912__fi static void ipu_vq(macroblock_rgb16& rgb16, u8* indx4)
1913{

Callers 2

mpeg2sliceIDECFunction · 0.85
ipuCSCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected