Searched defs:jpeg (Results 1 - 14 of 14) sorted by relevance

/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 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/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/Camera2/src/com/android/camera/session/
H A DPlaceholderManager.java99 * @param jpeg the bytes of the image
106 ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) {
109 session.time, location, orientation, exif, jpeg, width, height, mimeType);
115 * This changes the temporary placeholder jpeg without writing it to the media store
118 * @param jpeg the new placeholder bytes
123 byte[] jpeg, int width, int height) {
126 jpeg, width, height);
105 finishPlaceholder(Session session, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
122 replacePlaceholder(Session session, byte[] jpeg, int width, int height) argument
/packages/apps/Camera2/src/com/android/camera/
H A DStorage.java74 * @param jpeg The JPEG data.
81 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width,
84 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height,
190 * @param jpeg the bytes of the placeholder image
195 public static Uri addPlaceholder(byte[] jpeg, int width, int height) { argument
202 replacePlaceholder(uri, jpeg, width, height);
209 * @param jpeg the bytes of the placeholder image
214 public static void replacePlaceholder(Uri uri, byte[] jpeg, int width, int height) { argument
217 sSessionsToPlaceholderBytes.put(uri, jpeg);
223 * Take jpeg byte
80 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height) argument
238 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
266 writeFile(String path, byte[] jpeg, ExifInterface exif) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/debug/
H A DDebugCameraProxy.java176 CameraAgent.CameraPictureCallback jpeg) {
178 mProxy.takePicture(handler, shutter, raw, postview, jpeg);
174 takePicture(Handler handler, CameraAgent.CameraShutterCallback shutter, CameraAgent.CameraPictureCallback raw, CameraAgent.CameraPictureCallback postview, CameraAgent.CameraPictureCallback jpeg) argument
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
H A DTinyPlanetFragment.java362 ByteArrayOutputStream jpeg = new ByteArrayOutputStream();
363 resultBitmap.compress(CompressFormat.JPEG, 100, jpeg);
364 return new TinyPlanetImage(addExif(jpeg.toByteArray()), outputSize);
371 * @param jpeg the JPEG data of the tiny planet.
374 private byte[] addExif(byte[] jpeg) { argument
380 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 1236 milliseconds