Altera_Forum
Honored Contributor
14 years agoProblem with Scaler II in polyphase 422 mode
Hi,
I am using Scaler II in polyphase mode with 4:2:2 video enabled and I am getting strange results. The output video is correctly scaled, but the colour is messed up. I have uploaded the Altera default Lanczos-2 coefficients (since Scaler II does not have compile time coefficients) for an 8 tap and 9 tap (16 phases) version and in both cases it looks like the chroma signals are mixed up. The output video becomes green or purple (depending on the coefficients). I am fairly sure the Scaler is correctly connected to the rest of my system, and that the problem is with the scaler, since if I put it in Linear Interpolation mode (also 4:2:2) then it works perfectly - but I want the polyphase scaler. I cannot see how the Scaler can change the colour unless it is not handling 4:2:2 correctly in polyphase mode. I have used the following parameterization: 8 bits per symbol 2 symbols in parallel 1 symbol in sequence Run Time control with max input and output res 1920 x 1080 (scaler is used to scale up or down SD->HD or HD->SD) 4:2:2 video data Polyphase 8 (or 9) taps vertical and horizontal 16 phases v & h H & V coefficients signed 1 integer bit 7 fraction bit 7 fraction bits preserved (not sure what this does?) 1 bank V & H Extra pipelining added Has anybody had success using the Scaler II working in polyphase mode? If so, how many taps did you use and what coefficients? I have tried both the Altera coefficients and calculating my own, with simillar results. I have also uploaded a set of coefficients where each phase was set equal to: {0,0,0,0,128,0,0,0,0} (this was for the 9 tap version). This effectively implements the nearest neighbour scaling and then it works perfectly again (albeit with low quality scaling results), so I am fairly sure my coefficient loading process works correctly. Thanks, Niki