| 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 | { |
no outgoing calls
no test coverage detected