Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DXmpInterfaceTest.java61 final XmpInterface xmp = XmpInterface.fromContainer(in); in testContainer_Empty() local
62 assertNull(xmp.getFormat()); in testContainer_Empty()
63 assertNull(xmp.getDocumentId()); in testContainer_Empty()
64 assertNull(xmp.getInstanceId()); in testContainer_Empty()
65 assertNull(xmp.getOriginalDocumentId()); in testContainer_Empty()
73 final XmpInterface xmp = XmpInterface.fromContainer(in); in testContainer_ValidAttrs() local
74 assertEquals("image/dng", xmp.getFormat()); in testContainer_ValidAttrs()
75 assertEquals("xmp.did:041dfd42-0b46-4302-918a-836fba5016ed", xmp.getDocumentId()); in testContainer_ValidAttrs()
76 assertEquals("xmp.iid:041dfd42-0b46-4302-918a-836fba5016ed", xmp.getInstanceId()); in testContainer_ValidAttrs()
77 assertEquals("3F9DD7A46B26513A7C35272F0D623A06", xmp.getOriginalDocumentId()); in testContainer_ValidAttrs()
[all …]
DIsoInterfaceTest.java69 final XmpInterface xmp = XmpInterface.fromContainer(mp4); in testXmp() local
71 assertEquals("image/dng", xmp.getFormat()); in testXmp()
72 assertEquals("xmp.did:041dfd42-0b46-4302-918a-836fba5016ed", xmp.getDocumentId()); in testXmp()
73 assertEquals("xmp.iid:041dfd42-0b46-4302-918a-836fba5016ed", xmp.getInstanceId()); in testXmp()
74 assertEquals("3F9DD7A46B26513A7C35272F0D623A06", xmp.getOriginalDocumentId()); in testXmp()
/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/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetFragment.java41 import com.adobe.xmp.XMPException;
42 import com.adobe.xmp.XMPMeta;
270 XMPMeta xmp = XmpUtil.extractXMPMeta(is); in createPaddedSourceImage() local
272 if (xmp != null) { in createPaddedSourceImage()
274 sourceBitmap = createPaddedBitmap(sourceBitmap, xmp, size); in createPaddedSourceImage()
445 private static Bitmap createPaddedBitmap(Bitmap bitmapIn, XMPMeta xmp, int intermediateWidth) { in createPaddedBitmap() argument
448 getInt(xmp, CROPPED_AREA_IMAGE_WIDTH_PIXELS); in createPaddedBitmap()
450 getInt(xmp, CROPPED_AREA_IMAGE_HEIGHT_PIXELS); in createPaddedBitmap()
452 getInt(xmp, CROPPED_AREA_FULL_PANO_WIDTH_PIXELS); in createPaddedBitmap()
454 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/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java538 XmpInterface xmp, String mimeType) { in withXmpValues() argument
540 maybeOverrideMimeType(mimeType, xmp.getFormat())); in withXmpValues()
541 op.withValue(MediaColumns.DOCUMENT_ID, xmp.getDocumentId()); in withXmpValues()
542 op.withValue(MediaColumns.INSTANCE_ID, xmp.getInstanceId()); in withXmpValues()
543 op.withValue(MediaColumns.ORIGINAL_DOCUMENT_ID, xmp.getOriginalDocumentId()); in withXmpValues()
641 final XmpInterface xmp = XmpInterface.fromContainer(iso); in scanItemAudio() local
642 withXmpValues(op, xmp, mimeType); in scanItemAudio()
709 final XmpInterface xmp = XmpInterface.fromContainer(iso); in scanItemVideo() local
710 withXmpValues(op, xmp, mimeType); in scanItemVideo()
743 final XmpInterface xmp = XmpInterface.fromContainer(exif); in scanItemImage() local
[all …]
/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/apps/Gallery2/src_pd/com/android/gallery3d/util/
DXmpUtilHelper.java19 import com.adobe.xmp.XMPMeta;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java36 import com.adobe.xmp.XMPException;
37 import com.adobe.xmp.XMPMeta;