English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 15 December 2018, 02:31   #1
alpine9000
Registered User

 
Join Date: Mar 2016
Location: Australia
Posts: 729
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
alpine9000 is offline  
Old 15 December 2018, 02:43   #2
a/b
Registered User

 
Join Date: Jun 2016
Location: europe
Posts: 124
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.
a/b is offline  
Old 15 December 2018, 02:48   #3
alpine9000
Registered User

 
Join Date: Mar 2016
Location: Australia
Posts: 729
Quote:
Originally Posted by a/b View Post
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.
I am doing a (potentially shifted, so extra word) cookie cut blit of something "small" to the screen bitplanes "big", so I don't think your technique would work unless the source and dest modulo are the same ? Unless I am not understanding your solution ?
alpine9000 is offline  
Old 15 December 2018, 03:16   #4
a/b
Registered User

 
Join Date: Jun 2016
Location: europe
Posts: 124
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.
a/b is offline  
Old 15 December 2018, 05:49   #5
alpine9000
Registered User

 
Join Date: Mar 2016
Location: Australia
Posts: 729
Quote:
Originally Posted by a/b View Post
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.
Yeah that was the conclusion I came to, but I thought I would ask just in case there was some weird trick with descending mode or something else I couldn't think of.
alpine9000 is offline  
 


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 29 10 December 2018 18:56
Blitter busy flag with blitter DMA off? NorthWay Coders. Asm / Hardware 9 23 February 2014 22:05
interleaved bitmaps and blitting h0ffman Coders. Asm / Hardware 6 07 December 2013 21:58
BPLxMOD for interleaved bitmaps phx Coders. Asm / Hardware 12 02 June 2012 23:47
For sale: Cheap Swap Magic 3.6 and flip lid. Brand new! Smiley MarketPlace 1 12 September 2008 20:01

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:21.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06750 seconds with 15 queries