ts-7000
[Top] [All Lists]

[ts-7000] Re: FrameBuffer

To:
Subject: [ts-7000] Re: FrameBuffer
From: "bibhu" <>
Date: Sat, 20 Oct 2007 19:24:54 -0000
Peter,

I meant flipping it vertically.
I got it while working last night. The reason I was getting two 
images was because of a missing 2* . Short and char's size was 
causing the problem.

Instead of writing line by line, I am writing all the lines of RGBs 
into a big buffer and then finally writing the buffer into fp_out.
This way the program runs way faster, since I am doing one file write 
at the end of my loops.
Next, I was getting blue for the red in the 16 bit converted image. 
So I switched R & B.
Also, the program handles anything upto 640 X 480.
I will post the program once I clean up the code.

Thanks,

Bibhu

--- In  "PeterElliot" <> wrote:
>
> Bibhu,
> 
> What I do when I want to manipulate a bitmap is load it into one of 
> the non-visible screens and then do a hardware or 
software 'bitblit' 
> to the screen being manipulated. I've not taken my windows laptop 
> home from work (I'm currently updating my linux laptop to Kubuntu 
> 7.10), so I can't post my blit code, but using a version of it you 
> can do any transformations of the original image as it is copied 
> across.
> 
> I use two screens for the main display for the application - the 
> currently visible screen and the one being drawn for display next - 
> an switch between them when a screen draw has been completed. This 
> leaves six screens for storage of bitmap, font, etc data. 
> 
> The hardware blit can only move copies of the image, but my soft 
blit 
> routine can be modified to manipulate the image is required. I'll 
> post it as soon as I get back to my other laptop.
> 
> What do yo mean by 'invert'? Do you mean flip horizontally, 
> vertically, or do a color modification? 
> 
> Regards,
> 
> PJE
> 
> --- In  "bibhu" <bibhu_420@> wrote:
> >
> > 
> > Hi Peter,
> > 
> > What would be the simplest way to invert the image we are 
> displaying ?
> > Instead of printing line by line, I tried storing writelen in a 
> bigger
> > array and then wrote it to fp_out. However, this gave me two 
images
> > instead of one. It replicated the image. The height and width 
> basically
> > were halved.
> > The image was straight though.
> > 
> > Thanks,
> > 
> > Bibhu
>




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU