Android :: Replace Droid JPEG With My Own Codec?
May 25, 2009Anybody is having the knowledge on porting of our own codec with replacing the Android one.

Anybody is having the knowledge on porting of our own codec with replacing the Android one.
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?
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 RelatedI am looking to figure out how to stream a video off my website through the browser. I know it is possible since I've seen some of those mobile porn sites do it, I just cant figure out what format this is in or how to get the video to play.
View 4 Replies View RelatedEvery time I get a jpeg message that has sound I have to open the picture and the sound separately and that takes away from the whole "funny" experience. Then what's the point in that.
View 2 Replies View RelatedIs there an app to open files in yahoo and gmail?
View 4 Replies View RelatedI am wondering if there is any timeframe for VP8 to be included into Android?Is it possible for me to build and use it myself using NDK to decode/encode video?
View 3 Replies View RelatedDoes Android have a native library that can make a jpeg from binary data from say, a json object?
View 4 Replies View RelatedI currently have a Loop back program for testing Audio on Android devices.It uses AudioRecord and AudioTrack to record PCM audio from the Mic and play PCM audio out the earpiece. So as you can see in the creation of the AudioTrack and AudioRecord the Encoding is supplied via the AudioFormat but this only allows 16 bit or 8 bit PCM.I have my own G711 Codec implementation now and I want to be able to encode the audio from the Mic and decode it going into the EarPiece, So I have encode(short lin[], int offset, byte enc[], int frames) and decode(byte enc[], short lin[], int frames) methods but I'm unsure as to how to use them to encode and the decode the audio from the AudioRecord and AudioTrack.
View 2 Replies View RelatedI was wondering what kind of Audio/Speech Codecs are available for the 1.5 SDK? Are there any Open Source projects working on this?
View 5 Replies View RelatedI am trying play an amr file on android emulate, but nothing here, only see the progressbar froward. so farther, I fond the amr codec only out all zero data.I also go www.3gpp.org dondord the amr code 26073-800.zip, and user it doecde the same amr file, it works good. now, what coule do, to make amr file play good. i am sorry for my bad English.
View 2 Replies View RelatedI 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 RelatedI am developing a VoIP client for android using the mjsip any one have the idea about integrating the G729 codec with mjsip.
View 3 Replies View RelatedI 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 RelatedI 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 RelatedWhat codec settings will produce valid videos for playback on Android (videoView) and iOS UIWebView)?
View 1 Replies View RelatedI 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?
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 RelatedI would like to know how can we get the video file resolution (width and height), and its codec.
Is there any API available in android which we can the required info about the media file as I described above.
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?
View 2 Replies View RelatedCan 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?
Is there a method to access the digital output of the audio codec without first storing it into a file, a streaming output?
View 5 Replies View RelatedHow 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 RelatedWhich is the best codec to use? I've just noticed that I've an additional one since upgrading to Froyo.H.263, H.264 or MPEG4? Which is the best quality, or are there positives and negatives to each?
View 1 Replies View RelatedAndroid 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.
Is there a way to directly access a Jpeg's file metadata, without having to go through the ImageManager services?
View 4 Replies View RelatedI don't bother to take videos with the Evo because of the embarrassing audio.It sounds so horrible I can't stand to listen! Anyway, I was looking at a developer's page that said you're free to use any codec supported by Android.However, the chart shows AMR narrow band as the only thing that will encode audio. It only works from 200-3400hz @8k bitrate. No wonder it sounds so bad.Do you folks know who to contact about using another encoder for video, not the same crappy one it uses for voicemails (which sound equally horrible).
View 7 Replies View RelatedSeeing as Motorola is locking down the Motorola Droid X and likely the Droid 2, what should I replace my Moto Droid with? I've been totally happy with the phone to the extent that I tell people it's the coolest thing I've ever owned in my entire life... that's 51 years for you youngsters. I'm of course on Verizon and will stay with Verizon. I've paid zero attention to any phones other than the Moto Droids. Alas, lockdown is not acceptable. So now I have to go through the whole learning process all over again.
View 10 Replies View RelatedI managed to handle a full size image (2048x1536) (moving around, zooming, some colorfilters, etc). However, i can only load these images in memory as RGB_565, one at a time. I try to free as much bitmap memory as possible (by recycling every possible bitmap cached/ open in my app), and then load the full-sized image in RGB_565 format. This works well.
The user can make some modifications (color balance, brightness, etc) and I like to save the resulting image in a JPEG file. However, on screen, all edits are shown in RGB_565. You can see the posterization because of the reduced pixel-depth. The quality degradation on the screen is a minor problem. My main problem is to apply these edits to the actual and higher quality ARGB_8888 data of the original JPEG file.
Trying to load a ARGB_8888 JPEG file with size 2048x1536 is not possible. I get an out-of-memory error. Is there any way to apply color-filters to ARGB_8888 data (instead of RGB_565) so that i won't lose a lot of image-quality when trying to save modifications into a JPEG file?
Has anyone seen a codec for g729 playback. My company uses g729a for its voice mail which I get in my e-mail but can't playback without a codec for a media player. I had one of these for my old WinMo device but can't seem to find one for Android. Any thoughts? Even a different media player with built-in support would work for playing back voice mail on the go.
View 1 Replies View Related