Searched refs:jpeg (Results 1 - 19 of 19) sorted by relevance

/packages/apps/LegacyCamera/src/com/android/camera/
H A DExif.java24 public static int getOrientation(byte[] jpeg) { argument
25 if (jpeg == null) {
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) {
34 int marker = jpeg[offset] & 0xFF;
52 length = pack(jpeg, offset, 2, false);
53 if (length < 2 || offset + length > jpeg.length) {
60 pack(jpeg, offset + 2, 4, false) == 0x45786966 &&
61 pack(jpeg, offset + 6, 2, false) == 0) {
75 int tag = pack(jpeg, offse
[all...]
H A DStorage.java53 Location location, int orientation, byte[] jpeg, int width, int height) {
59 out.write(jpeg);
75 values.put(ImageColumns.MIME_TYPE, "image/jpeg");
78 values.put(ImageColumns.SIZE, jpeg.length);
52 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) argument
H A DThumbnail.java201 String selection = ImageColumns.MIME_TYPE + "='image/jpeg' AND " +
247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize, argument
252 Bitmap bitmap = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length, options);
/packages/apps/Camera/src/com/android/camera/
H A DExif.java33 public static int getOrientation(byte[] jpeg) { argument
34 if (jpeg == null) return 0;
36 InputStream is = new ByteArrayInputStream(jpeg);
H A DStorage.java80 long date, Location location, int orientation, byte[] jpeg,
84 writeFile(path, jpeg);
86 jpeg.length, path, width, height);
98 values.put(ImageColumns.MIME_TYPE, "image/jpeg");
79 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) argument
H A DPanoramaModule.java599 MosaicJpeg jpeg = generateFinalMosaic(false);
601 if (jpeg != null && jpeg.isValid) {
603 bitmap = BitmapFactory.decodeByteArray(jpeg.data, 0, jpeg.data.length);
803 MosaicJpeg jpeg;
805 jpeg = generateFinalMosaic(true);
810 if (jpeg == null) { // Cancelled by user.
812 } else if (!jpeg.isValid) { // Error when generating mosaic.
816 Uri uri = savePanorama(jpeg
[all...]
H A DCameraManager.java385 final PictureCallback postview, final PictureCallback jpeg) {
391 mCamera.takePicture(shutter, raw, postview, jpeg);
399 final PictureCallback postview, final PictureCallback jpeg,
407 mCamera.takePicture(shutter, raw, postview, jpeg);
384 takePicture(final ShutterCallback shutter, final PictureCallback raw, final PictureCallback postview, final PictureCallback jpeg) argument
398 takePicture2(final ShutterCallback shutter, final PictureCallback raw, final PictureCallback postview, final PictureCallback jpeg, final int cameraState, final int focusState) argument
/packages/apps/Camera2/src/com/android/camera/
H A DStorage.java66 public static void writeFile(String path, byte[] jpeg, ExifInterface exif) { argument
69 exif.writeExif(jpeg, path);
74 writeFile(path, jpeg);
96 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width,
99 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height,
105 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width,
109 writeFile(path, jpeg, exif);
111 jpeg.length, path, width, height, mimeType);
153 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width,
156 writeFile(path, jpeg, exi
95 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height) argument
104 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
152 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
[all...]
H A DCameraManager.java271 * @param jpeg The callback for jpeg image data, may be null.
282 CameraPictureCallback jpeg);
277 takePicture( Handler handler, CameraShutterCallback shutter, CameraPictureCallback raw, CameraPictureCallback postview, CameraPictureCallback jpeg) argument
H A DWideAnglePanoramaModule.java558 MosaicJpeg jpeg = generateFinalMosaic(false);
560 if (jpeg != null && jpeg.isValid) {
562 bitmap = BitmapFactory.decodeByteArray(jpeg.data, 0, jpeg.data.length);
663 MosaicJpeg jpeg;
665 jpeg = generateFinalMosaic(true);
670 if (jpeg == null) { // Cancelled by user.
672 } else if (!jpeg.isValid) { // Error when generating mosaic.
676 final Uri uri = savePanorama(jpeg
[all...]
H A DAndroidCameraManagerImpl.java139 final PictureCallback jpeg) {
144 mCamera.takePicture(shutter, raw, postView, jpeg);
481 CameraPictureCallback jpeg) {
486 PictureCallbackForward.getNewInstance(handler, this, jpeg));
135 requestTakePicture( final ShutterCallback shutter, final PictureCallback raw, final PictureCallback postView, final PictureCallback jpeg) argument
476 takePicture( Handler handler, CameraShutterCallback shutter, CameraPictureCallback raw, CameraPictureCallback post, CameraPictureCallback jpeg) argument
/packages/apps/Gallery2/jni_jpegstream/
H A DAndroid.mk13 external/jpeg
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoramaActivity.java623 MosaicJpeg jpeg = generateFinalMosaic(false);
625 if (jpeg != null && jpeg.isValid) {
627 bitmap = BitmapFactory.decodeByteArray(jpeg.data, 0, jpeg.data.length);
840 MosaicJpeg jpeg;
842 jpeg = generateFinalMosaic(true);
847 if (jpeg == null) { // Cancelled by user.
849 } else if (!jpeg.isValid) { // Error when generating mosaic.
859 Uri uri = savePanorama(jpeg
[all...]
/packages/apps/Camera2/src/com/android/camera/app/
H A DPlaceholderManager.java168 ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) {
171 session.time, location, orientation, exif, jpeg, width, height, mimeType);
167 replacePlaceholder(Session session, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
H A DTinyPlanetFragment.java363 ByteArrayOutputStream jpeg = new ByteArrayOutputStream();
364 resultBitmap.compress(CompressFormat.JPEG, 100, jpeg);
365 return new TinyPlanetImage(addExif(jpeg.toByteArray()), outputSize);
372 * @param jpeg the JPEG data of the tiny planet.
375 private byte[] addExif(byte[] jpeg) { argument
381 exif.writeExif(jpeg, jpegOut);
/packages/apps/Camera2/src/com/android/camera/exif/
H A DExifInterface.java49 * This class provides methods and constants for reading and writing jpeg file
54 * to a valid jpeg image as exif metadata.
721 * @param jpeg a byte array containing a jpeg compressed image.
724 public void readExif(byte[] jpeg) throws IOException { argument
725 readExif(new ByteArrayInputStream(jpeg));
732 * @param inStream an InputStream containing a jpeg compressed image.
752 * @param inFileName a string representing the filepath to jpeg file.
790 * Writes the tags from this ExifInterface object into a jpeg image,
793 * @param jpeg
798 writeExif(byte[] jpeg, OutputStream exifOutStream) argument
853 writeExif(byte[] jpeg, String exifOutFileName) argument
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifInterface.java49 * This class provides methods and constants for reading and writing jpeg file
54 * to a valid jpeg image as exif metadata.
721 * @param jpeg a byte array containing a jpeg compressed image.
724 public void readExif(byte[] jpeg) throws IOException { argument
725 readExif(new ByteArrayInputStream(jpeg));
732 * @param inStream an InputStream containing a jpeg compressed image.
752 * @param inFileName a string representing the filepath to jpeg file.
790 * Writes the tags from this ExifInterface object into a jpeg image,
793 * @param jpeg
798 writeExif(byte[] jpeg, OutputStream exifOutStream) argument
853 writeExif(byte[] jpeg, String exifOutFileName) argument
[all...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
H A DExifInterface.java49 * This class provides methods and constants for reading and writing jpeg file
54 * to a valid jpeg image as exif metadata.
721 * @param jpeg a byte array containing a jpeg compressed image.
724 public void readExif(byte[] jpeg) throws IOException { argument
725 readExif(new ByteArrayInputStream(jpeg));
732 * @param inStream an InputStream containing a jpeg compressed image.
752 * @param inFileName a string representing the filepath to jpeg file.
790 * Writes the tags from this ExifInterface object into a jpeg image,
793 * @param jpeg
798 writeExif(byte[] jpeg, OutputStream exifOutStream) argument
853 writeExif(byte[] jpeg, String exifOutFileName) argument
[all...]
/packages/apps/Mms/src/com/android/mms/exif/
H A DExifInterface.java49 * This class provides methods and constants for reading and writing jpeg file
54 * to a valid jpeg image as exif metadata.
721 * @param jpeg a byte array containing a jpeg compressed image.
724 public void readExif(byte[] jpeg) throws IOException { argument
725 readExif(new ByteArrayInputStream(jpeg));
732 * @param inStream an InputStream containing a jpeg compressed image.
752 * @param inFileName a string representing the filepath to jpeg file.
790 * Writes the tags from this ExifInterface object into a jpeg image,
793 * @param jpeg
798 writeExif(byte[] jpeg, OutputStream exifOutStream) argument
853 writeExif(byte[] jpeg, String exifOutFileName) argument
[all...]

Completed in 292 milliseconds