Forum Rule: Always post complete source code & details to reproduce any issue!
Page 3 of 3 FirstFirst 1 2 3
Results 51 to 52 of 52

Thread: T4 Pixel Pipeline Library

  1. #51
    Senior Member
    Join Date
    Oct 2019
    Posts
    381
    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)

  2. #52
    Senior Member
    Join Date
    Feb 2018
    Location
    Corvallis, OR
    Posts
    434
    Quote Originally Posted by Rezo View Post
    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 by mborgerson; 02-05-2023 at 03:34 PM. Reason: spelling error

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •