Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 16th Jan 2012 18:12 Edited at: 17th Jan 2012 00:24
I made an image and video player.

when I try the player on a netbook it fails to load extra large images, leaving an error behind.

of course, to avoid an error from being raised, I switched the error trapping off.

the problem isn't the crash, it is how to resize an image before loading it on the screen so the player can display all given images.
(this action is done automatically by windows photo gallery.)
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 16th Jan 2012 23:47
What about if you instead of loading an image, you load a bitmap and then you get image from bitmap ?

Cheers.

I'm not a grumpy grandpa
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 17th Jan 2012 00:23
the same problem.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Jan 2012 02:16
What exactly causes the crash? Memory limit? Most netbooks have just 1GB (well at least here in the UK... such a sad thing really... I mean the memory costs manufacturers next to nothing compared to us... However thinking about it was probably the retailers that forced the decision...) anyway do you monitor the memory usage and also what error shows up?

I was thinking maybe load eash image on intervals in the background and maybe pass commands to it immediately as soon as its loaded? also what size are these images? It may be a hardware specific issue... as the buffers on the integrated graphics are pretty low...

My two cents and you can ignore everything I said... I would understand ^^

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 17th Jan 2012 02:17 Edited at: 17th Jan 2012 02:21
Any chance we could see a snippet illustrating the problem? (So we can test it).

In the meantime, What error message is it giving? and how big are the images your having problems with? I'm assuming your talking bigger than desktop sizes. Maybe add a link to one which has caused you problems?

And lastly, what kinda spec is the netbook you are trying it on? Have you tested it on anything else, and did the same problems exist?

>Edit<
@MrValentine: I should maybe learn to type faster lol

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 17th Jan 2012 02:57 Edited at: 18th Jan 2012 00:09
at the moment am making an App called WallComp. I finished making it and hopefully, you will see it sold at intel app store very soon.

@=PROF=the program is very large to leave it as a snippet but, later in the morning I will cut the piece of code that is causing the trouble.

@mrvalentine: this app is not made for my computer only, it should be used on all computers. this is why i try it on netbooks.

Quote: "What exactly causes the crash?"

of course it is a hardware issue but windows photo gallery has bitten this issue and managed to play the image on the screen (it took 2 to 3 seconds to be played).
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 17th Jan 2012 14:36 Edited at: 17th Jan 2012 14:37
aright guys, I left a snippet which is a chunk of much larger code. as well I modified some bits to suit the cause of this thread.

I remind you that we need to resize the image before loading it as windows seems to do it in windows photo gallery. so large images can be played on a netbook.
Booma
17
Years of Service
User Offline
Joined: 29th Mar 2009
Location:
Posted: 17th Jan 2012 17:21
@basjak

try to look at this jzImageMagick by jinzai
This plugin can resize images with hight quality
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 18th Jan 2012 04:30
thank you, very interesting plug-in. but couldn't see any resizing command and the example project caused a crash.(I will look deeper later).
the strange thing is that the netbook has at least 380MB of memory left to be used (remember it's a netbook) and the image size I supplied in the example is 1.5MB only.

the screen seems to be halted as it has reached the end of memory line. as far as am concerned, images are saved in Ram, not Video ram.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 18th Jan 2012 14:00
@PRoF lol hehe

umm thinking about it again how about drawing to camera 1 resizing or grabbing then load to main screen?

But then again... is the error occurring when you load the files or when you load them to screen?

Login to post a reply

Server time is: 2026-07-09 20:54:28
Your offset time is: 2026-07-09 20:54:28