T4 Pixel Pipeline Library

All fixed:
PXP_OUT_PS_LRC had to be set to ((479) << 16) | (319); (was 480, 320)
and
PXP_OUT_LRC has to be set to ((95) << 16) | (319); (was 96, 320)
 
All fixed:
PXP_OUT_PS_LRC had to be set to ((479) << 16) | (319); (was 480, 320)
and
PXP_OUT_LRC has to be set to ((95) << 16) | (319); (was 96, 320)

Yeah, I got so tired of making that mistake that I wrote a macro to remind myself that I'm setting a corner:

#define SetCorner(reg, h, v) reg = (h<<16 + v)

The macro is used like this:
SetCorner(PXP_OUT_PS_LRC, width-1,height-1);

I thought about doing the subtraction in the macro, but that would have serious consequences if you called it for an upper left corner:

SetCorner(PXP_OUT_PS_ULC, 0,0); // Not good if you subtract one inside macro
 
Last edited:
Back
Top