Android :: Lossless Rotation Of A Jpeg Image Without Fully Decoding

Aug 23, 2009

I would appreciate to hear from you what would be the available options in Android to perform a lossless jpeg rotation of a jpeg image -> Rearranging the image data from landscape to portrait by rotation without ever fully decoding the image. My problem is that my device's camera always take the images in landscape mode and sometimes I would need to rotate the image to portrait to be used in my application. This takes time and memory if I need to do it in the standard way (decode the image, apply rotation operation to the pixels and encode again). Doing it without decoding the image would bring a significant improvement in performance. I have seen that in Android platform (Cupcake) jpegtran.c (which performs this operation beautifully) is available under /external/jpeg but this functionality is not available (a.f.a.k) on the application framework. How can I use this function? I guess I need to use JNI to be able to access this functionality, right? Other ways? Could you give me any hint on how I could do this or if there is another easier and quicker way to do it?

Android :: Lossless rotation of a jpeg image without fully decoding


Android :: Threaded BitmapFactory Image Decoding

Oct 15, 2010

Our Android app does a lot of image decoding. We fetch a lot of images from the internet, local storage caches, etc. Up to now, these images are being decoded on the UI thread (using BitmapFactory.decodeX() methods). It's been causing some timeout crashes because the UI doesn't respond quickly enough to user input.

I could write a little AsyncTask that encapsulates decoding, but I'm not sure that's a good idea. Spawning threads is expensive, and that would be spawning and tearing down a ton of them. So what's the best way to put this on another thread? Do I need to go to the extent of writing a Service? That seems a little heavy-weight. Are there any solutions for this already out there?

View 2 Replies View Related

Android :: How Can I Do Image Processing On JPEG Data

Apr 13, 2009

I am confused on how to implement image processing algorithm on JPEG data.I have set P.setpicturesize (640,480) so the camera.takepicture (null,null,Imagecapture callbck) returns the image data. Void onPictureTaken(byte[] data, Camera Camera) returns JPEG data, but(x = data.length), the value of x is less than 640*480 bytes.Please kindly let me know how can I start editing pixel information of the image and image comparison algorithms.

View 2 Replies View Related

Android :: Convert JPEG / Png Image To TIFF Format In OS

Aug 14, 2009

I am developing an app in which i need the image in TIFF format.But in android u can convert your bitmap/image to only JPEG/png image. is there a way to convert JPEG/png file to TIFF format or is there any jar available to do so.

View 2 Replies View Related

Android :: Save A Preview Frame As Jpeg Image?

Jun 23, 2009

I would like to save a preview frame as a jpeg image.

I have tried to write the following code...

but it's not possible to open a saved file as a jpeg image. Does anyone know how to save preview frames as jpeg images?

View 3 Replies View Related

Android :: 1.6 Camera Rotation / Image Size

Oct 21, 2009

My application while compiled in 1.5 works fine. I had some memory issues w/ 1.6 due to image size, which was strange b/c the image size increased when taking photos by taking a picture w/ surfaceholder/imagecapture callback. I seem to have fixed re-displaying those images by resizing them using a bitmapfactory matrix. But my camera is now rotating everything 90 degrees. It appears that my Override of surfaceChanged does nothing, which is where I was setting rotation at 90 (I can't remember why, it was 10 months ago!). I have tried at rotating the camera parameters paramters at 90 degrees, 0 degrees.

View 2 Replies View Related

Android :: Tutorials On How To Create Jpeg Images Or Convert Images Into Jpeg?

Jun 23, 2010

1.myJpegFile = new File("images/jpegImage.jpg");
2.output = new BufferedOutputStream(new FileOutputStream(myJpegFile));
3.encoder = JPEGCodec.createJPEGEncoder(output);
4.encoder.encode(myJpegImage); Please could you give me the equivalent code for line no. 3 and 4 in Android?

View 1 Replies View Related

Android :: How To Make A Smooth Image Rotation In Android?

Oct 27, 2009

I'm using a Rotate Animation to rotate an image that I'm using as a custom cyclical spinner in Android. Here's my rotate_indefinitely.xml file, which I placed in res/anim/:
<?xml version="1.0" encoding="UTF-8"?>
<rotate
xmlns:android="http://schemas.android.com/apk/res/android"
android:from Degrees="0"
android:toDegrees="360"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="infinite"
android:duration="1200" />
When I apply this to my ImageView using AndroidUtils.load Animation(), it works great!

View 3 Replies View Related

HTC Incredible :: Are There Any Fully Stable Fully Featured ROMs Out There?

Sep 30, 2010

I rooted my phone back before 2.2 came out. I've played with CWM, made Nandroid and Titanium backups, removed bloat and installed most of the root only apps. What I haven't done yet is flash a ROM. This is mainly because it seems that while there are a crap ton of ROMs being developed out there all of them seem to either not be fully stable or are missing some sort of key feature (camera, videocam, bluetooth, LED, internal storage, etc).
Are there any ROMs that you folks are currently using that's stable and has all the features of the phone working? If not, what's the closest one that you've found?

View 17 Replies View Related

Sprint HTC Hero :: Android No Lossless Playback?

Mar 8, 2010

so i been searching the net for the last 2 hours and i have found thatt ANdroid can not play FLAC or AAC ( M4A ) lossless files? Comon such a great OS with that type of FLAW? Or am i just totaly blind and not see it ? default player, tunewiki, mixzing none of them play it ....

View 20 Replies View Related

Android :: Meridian Player Now Supports Lossless

Apr 28, 2010

Meridian Player Pioneer for Android - Android and Me according to this article Meridan player now supports LOSSLESS now i don't have to convert some of my collect for when my incredible comes

View 1 Replies View Related

Android :: RTP Stream Video Decoding

May 24, 2010

Currently I am developing an application that will stream video using RTP and SIP. I have this mostly working with audio working fine both ways using Java (and native) codecs. I can stream out video also from the camera to a windows client.

The problem comes from when I want to receive and decode the video on the android platform. I understand at this stage that Mediaplayer only supports RTSP streams. Ironically it does what I need (by getting the SDP information from using RTSP SETUP call and using that RTP/UDP information to receive the stream). But I can't seem to access this functionality, all it takes as input is a RTSP url. If you are unfamiliar the difference between RTSP using RTP and SIP using RTP. You can read about the differences here<http://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip> .

What I need to do is take an RTP stream encoded with h.263-1998 and somehow pass it to the mediaplayer (or even a lower level api if somebody can provide an example).

The only way I can think around this is to write another service to receive the RTP stream and provide an RTSP interface... but this is a really ugly solution.

View 10 Replies View Related

Android :: Decoding High Resolution Pics

May 5, 2009

I want to decode high resolution pics something like 8 mega pixel images and view it. when I try to decode them I get out of memory exception. Decoding of single 8 mega pixel also fails . From the Imagamanager code and other post I could use BitmapFactory.Options inJustDecodeBounds I could get a scaled down version of the Image......................

View 3 Replies View Related

HTC 4G :: Does EVO Support Apple Lossless?

Jul 6, 2010

My entire CD collection is ripped in the Apple Lossless format (.m4a). I tried dragging some of the tracks to my EVO, but it does not recognize the tags, and it won't even play them. I had no problem doing this on my Pre. Therefore, I can only assume that the format, shocking as it may be, is not supported by either the EVO or perhaps by Android in general. Is this correct?

View 28 Replies View Related

Android :: Music Player That Supports Lossless Files / Gapless Mp3 Playback

Aug 8, 2010

Okay I've spent a lot of time searching forums, googling, and all that, but as far as I know, there is not a single player that supports gapless playback for mp3 files. I have found an app that can play lossless audio: andLess, but it crashes all the time on my Droid X. I haven't rooted yet, although I plan on doing it after the 2.2 update, but I'll throw away my plans if it means I can actually turn my phone into a competent music player. Is there any app out there that does those two things? I'll even settle for having two separate apps for each, but I don't see how this is so difficult an app to make. When I first got my phone, I was happy that I would no longer have any use for my iPod touch, but this is just saddening.

View 11 Replies View Related

Android :: Pure Java Video Endcoding/decoding Libraries

Nov 18, 2010

Does anyone know of any video encoding/decoding libraries written entirely in java? Bonus points if it works on Android. I'm trying to write a video decoding application for android, where I have access to the frame level decoding functions (which is absent in the android API MediaPlayer class)

View 1 Replies View Related

HTC :: Need Apple Lossless Software On Desire

May 26, 2010

Okie dokie, so my iPod Classic has taken a trip into a small stream (oops! don't ask me how...)Can't exactly afford another one just yet, so I was going to use my Desire as a stand in for the time being. Only problem is maybe 90% of my library is Apple Lossless encoded, which the Desire won't play! I really don't want to have to sit there converting everything and having duplicates all over the place. Is there any software that will allow me to play this codec on the Desire?

View 3 Replies View Related

General :: How To Use H/W Accelerated Video Decoding In Coding

Jul 7, 2012

Ways to implement H/W acceleration for video decoding(eg. H.264) in my own app for a long time, but got no clue.

I want to call H/W decoding based on NAL or frame level over raw bitstream, rather than setting up a media player for files.

View 1 Replies View Related

Android :: Jpeg From Binary?

Jun 14, 2010

Does Android have a native library that can make a jpeg from binary data from say, a json object?

View 4 Replies View Related

Android :: Decoding Encoded Audio Data On Android Without Playing It

Feb 25, 2010

Short version: What is the best way to get data encoded in an MP3 (and ideally in an AAC/Ogg/WMA) into a Java array or ByteBuffer that I can then manipulate?I'm putting together a program that has slowing down and speeding up sound files as one of its features. This works fine for WAV files,which are a header plus the exact binary data that needs to be sent to the speaker, and now I need to implement it for MP3 (ideally, this would also support AAC, Ogg, and WMA, but since those are less popular formats this is not required). Android does not expose an interface to decode the MP3 without playing it, so I need to create that
interface.

View 1 Replies View Related

Motorola :: Android Player To Recognize Audio Tags On Lossless Audio Files?

May 23, 2010

Does anyone know if there is a way for either meridian or the regular android player to recognize audio tags on lossless audio files?

View 1 Replies View Related

Android :: Replace Droid JPEG With My Own Codec?

May 25, 2009

Anybody is having the knowledge on porting of our own codec with replacing the Android one.

View 2 Replies View Related

Android :: Motorola Droid - JPEG Files Not Standard?

Apr 14, 2010

I manage a project where users upload JPEG images for processing. Generally the images are taken with Nikon cameras, but recently one user took images with a Droid and the client software did not recognize the Droid JPEG images for upload. The client software developer said it's because they read images written in the standard JPEG file interchange format (JFIF), and Droid JPEGs are not in this format. Why, and can this be corrected?

View 3 Replies View Related

Android :: Save Bitmap As JPEG - Always With Low Compression Level

Aug 19, 2009

I am trying to save a bitmap in a JPEG format, and i can see that the image is always stored with a lower quality even if i give the compression level as 100, however for PNG it is working fine. Similarly during Media.insert() or getContentResolver().insert() the image is stored with a lesser quality, I can see in that the compression level is 50 in the Media.java, however I tried to create my own method for the same function with quality 100.

View 3 Replies View Related

Android :: Converting Binary JPEG Data To Bitmap

Sep 8, 2010

My app will have an SQLite database with some embedded JPEG images -- basically the binary contents of a JPEG file stored as a Blob in the database. Can someone point me in the general direction of where to start to figure out how to convert this "array of bytes" into a Bitmap object that can be further manipulated and displayed in an ImageView?

View 2 Replies View Related

Android :: Drawable Resource Images - JPEG Files Supported

May 28, 2010

Can I have sub-folders to hold my drawable resources. For example can I store an image in, say, 'res/drawable/content/images/myimage.jpg' and then find that resource via a call to:
id = context.getResources().getIdentifier("com.mycompany.myprog:drawable/ content/images/myimage", null, null);
I have tried this and it doesn't seem to be working (but I may have something wrong). Is it supposed to work or do all the resources need to be in the root drawable folder? Also, are jpeg files supported and drawable resources?

View 5 Replies View Related

Android :: Convert From NV21 Preview Format On Nexus One To JPEG?

Aug 6, 2010

How can I convert from NV21 to JPEG. Currently, NV21 is the only previewFormat that is supported by the camera on a Nexus One (running Android 2.2).

View 2 Replies View Related

Android :: Download Here Library For Reading - Writing EXIF From Your JPEG Images

Jul 23, 2009

Android does not provide an Exif Reader or Exif Writer in its SDK (it has a native implemenation, though, but that API is private).

The Sanselan library, however, does provide a full fledged set of functionality for reading and writing Exif metadata.

However, Sanselan pur sang cannot be included in an Android Project. It references classes and packages that do not exist under the current version of Android (e.g. ImageIO).

Therefore, I made a quick cut of Sanselan 0.97, cutting out all the classes that prevent it from being used on the Android platform. It is a quick cut and it may have some issues. However, I got its exif reading and writing to work for my application and it looks like its working quite well. Reading and writing raw image-data is, however, not possible in this cut. This has been cut out.

View 3 Replies View Related

Android :: Directly Access Jpeg's File Metadata Without Having To Go Through ImageManager Services?

Feb 6, 2009

Is there a way to directly access a Jpeg's file metadata, without having to go through the ImageManager services?

View 4 Replies View Related

Android :: Reverse Image Load Order - Loading Animation In A Image View While The Real Image Is Loaded?

Jul 21, 2010

I use http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview/3068012#3068012 to load images in a ListView and a GridView. It works but the images are loaded form bpttom to top. How to fix that?

Bonus Question: Can I use a loading animation in a image view while the real image is loaded? Right now it's just a default image.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved