Searched defs:jpeg (Results 1 - 9 of 9) 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/Camera2/src/com/android/camera/session/
H A DPlaceholderManager.java129 * @param jpeg the bytes of the image
136 ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) throws IOException {
138 placeholder.outputTitle, placeholder.time, location, orientation, exif, jpeg, width,
145 * This changes the temporary placeholder jpeg without writing it to the media store
135 finishPlaceholder(Placeholder placeholder, 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.java361 ByteArrayOutputStream jpeg = new ByteArrayOutputStream();
362 resultBitmap.compress(CompressFormat.JPEG, 100, jpeg);
363 return new TinyPlanetImage(addExif(jpeg.toByteArray()), outputSize);
370 * @param jpeg the JPEG data of the tiny planet.
373 private byte[] addExif(byte[] jpeg) { argument
379 exif.writeExif(jpeg, jpegOut);
/packages/apps/Camera2/src/com/android/camera/
H A DStorage.java85 * @param jpeg The JPEG data.
92 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width,
95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height,
254 * Take jpeg bytes and add them to the media store, either replacing an existing item
263 * @param jpeg bytes of the image
271 byte[] jpeg, int width, int height, String mimeType) throws IOException {
273 writeFile(path, jpeg, exif);
274 return updateImage(imageUri, resolver, title, date, location, orientation, jpeg.length, path,
298 * @param jpeg The JPEG data.
303 public static long writeFile(String path, byte[] jpeg, ExifInterfac argument
91 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height) argument
269 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...]
/packages/apps/Camera2/src/com/android/camera/exif/
H A DExifInterface.java50 * This class provides methods and constants for reading and writing jpeg file
55 * to a valid jpeg image as exif metadata.
724 * @param jpeg a byte array containing a jpeg compressed image.
727 public void readExif(byte[] jpeg) throws IOException { argument
728 readExif(new ByteArrayInputStream(jpeg));
735 * @param inStream an InputStream containing a jpeg compressed image.
755 * @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/Messaging/src/com/android/messaging/util/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 214 milliseconds