Home
last modified time | relevance | path

Searched refs:jpeg (Results 1 – 17 of 17) sorted by relevance

/packages/apps/LegacyCamera/src/com/android/camera/
DExif.java24 public static int getOrientation(byte[] jpeg) { in getOrientation() argument
25 if (jpeg == null) { in getOrientation()
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation()
34 int marker = jpeg[offset] & 0xFF; in getOrientation()
52 length = pack(jpeg, offset, 2, false); in getOrientation()
53 if (length < 2 || offset + length > jpeg.length) { in getOrientation()
60 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation()
61 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation()
75 int tag = pack(jpeg, offset, 4, false); in getOrientation()
83 int count = pack(jpeg, offset + 4, 4, littleEndian) + 2; in getOrientation()
[all …]
DStorage.java53 Location location, int orientation, byte[] jpeg, int width, int height) { in addImage() argument
59 out.write(jpeg); in addImage()
78 values.put(ImageColumns.SIZE, jpeg.length); in addImage()
DThumbnail.java247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize, in createThumbnail() argument
252 Bitmap bitmap = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length, options); in createThumbnail()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java623 MosaicJpeg jpeg = generateFinalMosaic(false); in stopCapture()
625 if (jpeg != null && jpeg.isValid) { in stopCapture()
627 bitmap = BitmapFactory.decodeByteArray(jpeg.data, 0, jpeg.data.length); in stopCapture()
840 MosaicJpeg jpeg; in saveHighResMosaic()
842 jpeg = generateFinalMosaic(true); in saveHighResMosaic()
847 if (jpeg == null) { // Cancelled by user. in saveHighResMosaic()
849 } else if (!jpeg.isValid) { // Error when generating mosaic. in saveHighResMosaic()
859 Uri uri = savePanorama(jpeg.data, jpeg.width, jpeg.height, orientation); in saveHighResMosaic()
863 int widthRatio = (int) Math.ceil((double) jpeg.width in saveHighResMosaic()
865 int heightRatio = (int) Math.ceil((double) jpeg.height in saveHighResMosaic()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DStorage.java92 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, in addImage() argument
95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage()
271 byte[] jpeg, int width, int height, String mimeType) throws IOException { in updateImage() argument
273 writeFile(path, jpeg, exif); in updateImage()
274 … return updateImage(imageUri, resolver, title, date, location, orientation, jpeg.length, path, in updateImage()
303 public static long writeFile(String path, byte[] jpeg, ExifInterface exif) throws IOException { in writeFile() argument
309 exif.writeExif(jpeg, path); in writeFile()
313 return writeFile(path, jpeg); in writeFile()
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetFragment.java361 ByteArrayOutputStream jpeg = new ByteArrayOutputStream(); in createFinalTinyPlanet() local
362 resultBitmap.compress(CompressFormat.JPEG, 100, jpeg); in createFinalTinyPlanet()
363 return new TinyPlanetImage(addExif(jpeg.toByteArray()), outputSize); in createFinalTinyPlanet()
373 private byte[] addExif(byte[] jpeg) { in addExif() argument
379 exif.writeExif(jpeg, jpegOut); in addExif()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifInterface.java724 public void readExif(byte[] jpeg) throws IOException { in readExif() argument
725 readExif(new ByteArrayInputStream(jpeg)); in readExif()
798 public void writeExif(byte[] jpeg, OutputStream exifOutStream) throws IOException { in writeExif() argument
799 if (jpeg == null || exifOutStream == null) { in writeExif()
803 s.write(jpeg, 0, jpeg.length); in writeExif()
853 public void writeExif(byte[] jpeg, String exifOutFileName) throws FileNotFoundException, in writeExif() argument
855 if (jpeg == null || exifOutFileName == null) { in writeExif()
861 s.write(jpeg, 0, jpeg.length); in writeExif()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifInterface.java727 public void readExif(byte[] jpeg) throws IOException { in readExif() argument
728 readExif(new ByteArrayInputStream(jpeg)); in readExif()
798 public void writeExif(byte[] jpeg, OutputStream exifOutStream) throws IOException { in writeExif() argument
799 if (jpeg == null || exifOutStream == null) { in writeExif()
803 s.write(jpeg, 0, jpeg.length); in writeExif()
853 public void writeExif(byte[] jpeg, String exifOutFileName) throws FileNotFoundException, in writeExif() argument
855 if (jpeg == null || exifOutFileName == null) { in writeExif()
860 s.write(jpeg, 0, jpeg.length); in writeExif()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifInterface.java724 public void readExif(byte[] jpeg) throws IOException { in readExif() argument
725 readExif(new ByteArrayInputStream(jpeg)); in readExif()
798 public void writeExif(byte[] jpeg, OutputStream exifOutStream) throws IOException { in writeExif() argument
799 if (jpeg == null || exifOutStream == null) { in writeExif()
803 s.write(jpeg, 0, jpeg.length); in writeExif()
853 public void writeExif(byte[] jpeg, String exifOutFileName) throws FileNotFoundException, in writeExif() argument
855 if (jpeg == null || exifOutFileName == null) { in writeExif()
861 s.write(jpeg, 0, jpeg.length); in writeExif()
/packages/apps/Camera2/src/com/android/camera/session/
DPlaceholderManager.java136 … ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) throws IOException { in finishPlaceholder() argument
138 placeholder.outputTitle, placeholder.time, location, orientation, exif, jpeg, width, in finishPlaceholder()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifInterface.java92 public void readExif(byte[] jpeg) throws IOException { in readExif() argument
93 readExif(new ByteArrayInputStream(jpeg)); in readExif()
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/
Dcommon_defines.h35 jpeg, enumerator
/packages/apps/Gallery2/
Dproguard.flags84 # - Required for running jpeg stream tests on userdebug
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto34 // 'image/png', 'image/jpeg' or 'image/bmp'.
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...