[Gambas-user] Re; Image handling ...

Gareth Bult gareth at ...1689...
Thu Jul 26 23:36:26 CEST 2007


Ok,

I now have nifty little app for recording all my CCTV images off a variable number of camera and it's all looking great.

However, I don't know where to start with the screen flicker problem .. it did go away initially using the draw code you suggested, but it seems to have come back as a result of using a more recent SVN.

I use a separate recorder to store the images in Blobs (MySQL) and recover them with;

  File.Save(name, resultSet!image.Data)
  $picture = Picture.Load(name)

Then issue;

  $canvas.Refresh

Then have;

PUBLIC SUB CANVAS_Draw()
  draw.Picture($picture, 0, 0, 320, 240)  
END

Works well, but refresh flickering is every couple of seconds and quite frustrating as it destroys viewing "quality".

Can anyone point me in the right direction re; where to look ?
(There doesn't "seem" to be much scope for my code to cause this ???)

tia
Gareth.

--
Gareth Bult, Encryptec Limited
Tel: 0845 25 77033, Mob: 07891 389657
Email: gareth at ...1689... 
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.

----- Original Message -----
From: "Gareth Bult" <gareth at ...1689...>
To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Sent: Thursday, July 26, 2007 12:45:08 PM (GMT) Europe/London
Subject: Re: [Gambas-user] Re; Image handling ...

Hi,

I'm using a native 320x240 stream (the camera cuts the size down before it issues the jpg).

I'm also checking the drawing box is exactly 320x240 .. at one point it was being "resized" , and part of the picture was being "chopped", but it's definitely the right size now.

Gareth.


--
Gareth Bult, Encryptec Limited
Tel: 0845 25 77033, Mob: 07891 389657
Email: gareth at ...1689... 
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.

----- Original Message -----
From: "Benoit Minisini" <gambas at ...1...>
To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Sent: Thursday, July 26, 2007 11:52:09 AM (GMT) Europe/London
Subject: Re: [Gambas-user] Re; Image handling ...

On jeudi 26 juillet 2007, Benoit Minisini wrote:
> On jeudi 26 juillet 2007, Gareth Bult wrote:
> > Hi,
> >
> > I've just noticed that my CCTV pictures are flickering again .. even when
> > using the non-cached drawing area with a;
> >
> > PUBLIC SUB CANVAS_Draw()
> > draw.Picture($picture, 0, 0, 320, 240)
> > END
> >
> > Draw routine .. has anything changed in CVS that might have caused this ?
> > (as I'm only using a 3-line draw I'm can't see what I might have broken
> > .. ??)
> >
> > tia
> > Gareth.
>
> I don't think so. Do you use gb.qt or gb.gtk?

When using this syntax, your picture is scaled, unless 320x240 is its original 
size. Is it?

-- 
Benoit Minisini

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list