[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-30 Thread Jett
Try to use SQLite to store tiles (So there is only one db file in your sdcard.) And the speed of access files is more efficient. On 11月26日, 上午9時15分, James Wang jameswangc...@gmail.com wrote: @PJ Thanks for your interesting. We just want to display such picture, no further edition on it. In

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-25 Thread James Wang
@PJ Thanks for your interesting. We just want to display such picture, no further edition on it. In fact, we know sharp brought us with a phone-fax product-in-phone (http://www.sharp.co.jp/in-phone/index.html) with 8000*8000 photo displaying supports. Although, in-phone is not an Android Box, but

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-25 Thread Streets Of Boston
My suggestion of a RandomAccessFile would involve only *one* file. This file is the RandomAccessFile, much like an uncompressed zip file, containing records, each record being a sub-jpeg. On Nov 25, 8:15 pm, James Wang jameswangc...@gmail.com wrote: @PJ Thanks for your interesting. We just want

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-22 Thread Mitch Roe
On the server side, Google uses MapReduce, http://code.google.com/edu/parallel/mapreduce-tutorial.html, to produce the tiles. On Nov 19, 5:06 pm, James Wang jameswangc...@gmail.com wrote: Step #2: Generate 10,000 tiles that are 80*80 instead (100 * 100 tiles). Step #3: Render tiles

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-21 Thread ko5tik
Extracting just a single tile out of JPEG file is a really big PITA There are about 27 different variants of JPEG (though not all really matter and are widely used) Usually you've got 8x8 tiles in row-order, and because of entropy encoding you can not navigate just to random tile - you'll

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-21 Thread Streets Of Boston
Like some others suggested pre-process the large file, break it up in smaller chunks, each chunk being a proper JPEG Then put all the chunks in a RandomAccessFile or a database. Be sure to be able to find the chunks by a row and column index. Then put this RandomAccessFile or database on your

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-20 Thread PJ
We might be able to come up with more creative solutions if you give us more information about where the 8000x8000 jpeg file is coming from, and whether you just want to display it in a WxH view or to do something else with it. Also, since you expressed interest in Google's server-side solution

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-20 Thread Robert Green
I'd solve this by writing a preprocessor that breaks that big file down into manageable chunks. Think of having 10x10 array of 800x800 images. I would also mipmap a 4000x4000, 2000x2000, 1000x1000 and 500x500 of the file. Then, start the user on the correct zoom level, using only the tiles you

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-19 Thread James Wang
Step #2: Generate 10,000 tiles that are 80*80 instead (100 * 100 tiles). Step #3: Render tiles on-screen by drawing them on the Canvas, and support swipe gestures to move through the image by replacing tiles, much like Google Maps works. Hi Mark, AFAIK, the decoder of jpeg on android

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-10-30 Thread James Wang
Thanks Mark! I will take a try. On Oct 22, 8:23 pm, Mark Murphy mmur...@commonsware.com wrote: James Wang wrote: Hi, We are going to develop an app supporting 8000 * 8000 jpeg file (over hundreds of Megabytes). Is there any way to achieve it in ADP1? Step #1: Don't do that. Step #2:

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-10-22 Thread Mark Murphy
James Wang wrote: Hi, We are going to develop an app supporting 8000 * 8000 jpeg file (over hundreds of Megabytes). Is there any way to achieve it in ADP1? Step #1: Don't do that. Step #2: Generate 10,000 tiles that are 80*80 instead (100 * 100 tiles). Step #3: Render tiles on-screen by