Home
last modified time | relevance | path

Searched refs:xmp (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterTinyPlanet.java23 import com.adobe.xmp.XMPException;
24 import com.adobe.xmp.XMPMeta;
83 XMPMeta xmp = ImageLoader.getXmpObject(PrimaryImage.getImage().getActivity()); in apply() local
85 if(xmp != null) { in apply()
86 bitmapIn = applyXmp(bitmapIn, xmp, w); in apply()
110 private Bitmap applyXmp(Bitmap bitmapIn, XMPMeta xmp, int intermediateWidth) { in applyXmp() argument
113 getInt(xmp, CROPPED_AREA_IMAGE_WIDTH_PIXELS); in applyXmp()
115 getInt(xmp, CROPPED_AREA_IMAGE_HEIGHT_PIXELS); in applyXmp()
117 getInt(xmp, CROPPED_AREA_FULL_PANO_WIDTH_PIXELS); in applyXmp()
119 getInt(xmp, CROPPED_AREA_FULL_PANO_HEIGHT_PIXELS); in applyXmp()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DXmpDataParserTest.java48 final XmpInterface xmp = XmpDataParser.createXmpInterface(exifInterface); in testContainer_Empty() local
49 assertThat(xmp.getFormat()).isNull(); in testContainer_Empty()
50 assertThat(xmp.getDocumentId()).isNull(); in testContainer_Empty()
51 assertThat(xmp.getInstanceId()).isNull(); in testContainer_Empty()
52 assertThat(xmp.getOriginalDocumentId()).isNull(); in testContainer_Empty()
61 final XmpInterface xmp = XmpDataParser.createXmpInterface(exifInterface); in testContainer_ValidAttrs() local
62 assertThat(xmp.getFormat()).isEqualTo("image/dng"); in testContainer_ValidAttrs()
63 assertThat(xmp.getDocumentId()).isEqualTo( in testContainer_ValidAttrs()
65 assertThat(xmp.getInstanceId()).isEqualTo( in testContainer_ValidAttrs()
67 assertThat(xmp.getOriginalDocumentId()).isEqualTo("3F9DD7A46B26513A7C35272F0D623A06"); in testContainer_ValidAttrs()
[all …]
DIsoInterfaceTest.java92 final XmpInterface xmp = XmpDataParser.createXmpInterface(mp4); in testXmp() local
94 assertThat(xmp.getFormat()).isEqualTo("image/dng"); in testXmp()
95 assertThat(xmp.getDocumentId()).isEqualTo("xmp.did:041dfd42-0b46-4302-918a-836fba5016ed"); in testXmp()
96 assertThat(xmp.getInstanceId()).isEqualTo("xmp.iid:041dfd42-0b46-4302-918a-836fba5016ed"); in testXmp()
97 assertThat(xmp.getOriginalDocumentId()).isEqualTo("3F9DD7A46B26513A7C35272F0D623A06"); in testXmp()
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetFragment.java41 import com.adobe.xmp.XMPException;
42 import com.adobe.xmp.XMPMeta;
272 XMPMeta xmp = XmpUtil.extractXMPMeta(is); in createPaddedSourceImage() local
274 if (xmp != null) { in createPaddedSourceImage()
276 sourceBitmap = createPaddedBitmap(sourceBitmap, xmp, size); in createPaddedSourceImage()
447 private static Bitmap createPaddedBitmap(Bitmap bitmapIn, XMPMeta xmp, int intermediateWidth) { in createPaddedBitmap() argument
450 getInt(xmp, CROPPED_AREA_IMAGE_WIDTH_PIXELS); in createPaddedBitmap()
452 getInt(xmp, CROPPED_AREA_IMAGE_HEIGHT_PIXELS); in createPaddedBitmap()
454 getInt(xmp, CROPPED_AREA_FULL_PANO_WIDTH_PIXELS); in createPaddedBitmap()
456 getInt(xmp, CROPPED_AREA_FULL_PANO_HEIGHT_PIXELS); in createPaddedBitmap()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java222 Object xmp = null; in getPanoramaXMPData() local
227 xmp = XmpUtilHelper.extractXMPMeta(is); in getPanoramaXMPData()
234 return xmp; in getPanoramaXMPData()
237 public boolean putPanoramaXMPData(File file, Object xmp) { in putPanoramaXMPData() argument
238 if (xmp != null) { in putPanoramaXMPData()
239 return XmpUtilHelper.writeXMPMeta(file.getAbsolutePath(), xmp); in putPanoramaXMPData()
356 Object xmp = getPanoramaXMPData(newSourceUri, preset); in processAndSaveImage() local
361 putPanoramaXMPData(mDestinationFile, xmp); in processAndSaveImage()
368 Object xmp = getPanoramaXMPData(newSourceUri, preset); in processAndSaveImage() local
374 putPanoramaXMPData(mDestinationFile, xmp); in processAndSaveImage()
[all …]
DXmpPresets.java23 import com.adobe.xmp.XMPException;
24 import com.adobe.xmp.XMPMeta;
25 import com.adobe.xmp.XMPMetaFactory;
/packages/apps/Camera2/src/com/android/camera/util/
DXmpUtil.java19 import com.adobe.xmp.XMPException;
20 import com.adobe.xmp.XMPMeta;
21 import com.adobe.xmp.XMPMetaFactory;
22 import com.adobe.xmp.options.SerializeOptions;
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java1164 XmpInterface xmp, String mimeType) { in withXmpValues() argument
1166 parseOptionalMimeType(mimeType, xmp.getFormat()), in withXmpValues()
1169 op.withValue(MediaColumns.DOCUMENT_ID, xmp.getDocumentId()); in withXmpValues()
1170 op.withValue(MediaColumns.INSTANCE_ID, xmp.getInstanceId()); in withXmpValues()
1171 op.withValue(MediaColumns.ORIGINAL_DOCUMENT_ID, xmp.getOriginalDocumentId()); in withXmpValues()
1172 op.withValue(MediaColumns.XMP, maybeTruncateXmp(xmp)); in withXmpValues()
1175 private static byte[] maybeTruncateXmp(XmpInterface xmp) { in maybeTruncateXmp() argument
1176 byte[] redacted = xmp.getRedactedXmp(); in maybeTruncateXmp()
1293 final XmpInterface xmp = XmpDataParser.createXmpInterface(iso); in scanItemAudio() local
1294 withXmpValues(op, xmp, mimeType); in scanItemAudio()
[all …]
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/
DXmpUtilHelper.java19 import com.adobe.xmp.XMPMeta;
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSpecialFormatDetector.java132 final String xmp = new String(exif.getAttributeBytes(ExifInterface.TAG_XMP), in isMotionPhoto() local
138 xpp.setInput(new StringReader(xmp)); in isMotionPhoto()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java36 import com.adobe.xmp.XMPException;
37 import com.adobe.xmp.XMPMeta;
/packages/providers/MediaProvider/apex/framework/api/
Dcurrent.txt470 field public static final String XMP = "xmp";