15 December 2018, 01:31 | #1 |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 881
|
Blitter flip with interleaved bitplanes (single blit)
Is it possible to flip an an image with the blitter around the x-axis when you're using interleaved bitplanes with a single blit?
I have it working if I blit plane-by-plane, justing using a negative modulo for the source/mask, but I am trying to wrap my brain around a solution for using a more traditional single blit as used for interleaved bitplanes. I can't (I think?) just use a negative modulo as it will blit the planes in the wrong order? I think I might be asking for too much as I really want the modulo to work two ways, but I thought I would check in case anyone has a bigger brain than me |
15 December 2018, 01:43 | #2 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,039
|
If you want to preserve bitplane order, you'd have to extend the blit horizontally. So e.g 4 bitplanes => width*4, modulo*4, same height. But the problem is, can you stay within 1024 pixels, (assuming OCS, should be fine with ECS/AGA)?
If you extend it vertically (same width, height*4, same modulo), you'd reverse bitplane order. |
15 December 2018, 01:48 | #3 | |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 881
|
Quote:
|
|
15 December 2018, 02:16 | #4 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,039
|
OK, now I understand what kind of a blit you are doing.
Nope, it won't work. To do a single interleaved blit you'd have to extend it vertically but that won't work properly (reversed bitplane order). Since you are blitting into a larger image the modulo has to be applied to every line, but then you can't use a negative destination modulo properly. Eg. 4 bitplanes, first 3 lines need a positive modulo to move to the next line, the 4th a negative modulo to skip those 4 blitted lines and 4 more to move to next, reversed, position. |
15 December 2018, 04:49 | #5 | |
Registered User
Join Date: Mar 2016
Location: Australia
Posts: 881
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Immediate Blitter & Wait for Blitter... | volvo_0ne | support.WinUAE | 32 | 18 September 2022 09:52 |
Blitter busy flag with blitter DMA off? | NorthWay | Coders. Asm / Hardware | 9 | 23 February 2014 21:05 |
interleaved bitmaps and blitting | h0ffman | Coders. Asm / Hardware | 6 | 07 December 2013 20:58 |
BPLxMOD for interleaved bitmaps | phx | Coders. Asm / Hardware | 12 | 02 June 2012 22:47 |
For sale: Cheap Swap Magic 3.6 and flip lid. Brand new! | Smiley | MarketPlace | 1 | 12 September 2008 19:01 |
|
|