1 #ifndef _ANDROID_GRAPHICS_BITMAP_FACTORY_H_ 2 #define _ANDROID_GRAPHICS_BITMAP_FACTORY_H_ 3 4 #include <SkEncodedImageFormat.h> 5 6 #include "GraphicsJNI.h" 7 8 extern jclass gOptions_class; 9 extern jfieldID gOptions_justBoundsFieldID; 10 extern jfieldID gOptions_sampleSizeFieldID; 11 extern jfieldID gOptions_configFieldID; 12 extern jfieldID gOptions_colorSpaceFieldID; 13 extern jfieldID gOptions_premultipliedFieldID; 14 extern jfieldID gOptions_ditherFieldID; 15 extern jfieldID gOptions_purgeableFieldID; 16 extern jfieldID gOptions_shareableFieldID; 17 extern jfieldID gOptions_nativeAllocFieldID; 18 extern jfieldID gOptions_preferQualityOverSpeedFieldID; 19 extern jfieldID gOptions_widthFieldID; 20 extern jfieldID gOptions_heightFieldID; 21 extern jfieldID gOptions_mimeFieldID; 22 extern jfieldID gOptions_outConfigFieldID; 23 extern jfieldID gOptions_outColorSpaceFieldID; 24 extern jfieldID gOptions_mCancelID; 25 extern jfieldID gOptions_bitmapFieldID; 26 27 extern jclass gBitmapConfig_class; 28 extern jmethodID gBitmapConfig_nativeToConfigMethodID; 29 30 extern jclass gImageDecoder_class; 31 extern jmethodID gImageDecoder_isP010SupportedForHEVCMethodID; 32 33 jstring getMimeTypeAsJavaString(JNIEnv*, SkEncodedImageFormat); 34 35 #endif // _ANDROID_GRAPHICS_BITMAP_FACTORY_H_ 36