| 968 | } |
| 969 | |
| 970 | u32 VIGetCurrentLine(void) |
| 971 | { |
| 972 | u32 line; |
| 973 | VITimingInfo* tm; |
| 974 | int interrupt; |
| 975 | |
| 976 | tm = CurrTiming; |
| 977 | interrupt = OSDisableInterrupts(); |
| 978 | line = getCurrentHalfLine(); |
| 979 | OSRestoreInterrupts(interrupt); |
| 980 | |
| 981 | if (line >= tm->numHalfLines) |
| 982 | { |
| 983 | line -= tm->numHalfLines; |
| 984 | } |
| 985 | |
| 986 | return (line >> 1); |
| 987 | } |
| 988 | |
| 989 | u32 VIGetTvFormat(void) |
| 990 | { |
no test coverage detected