blob: a079cb4b513d0dad3f5566ef7d42c6f820bb87cd [file] [log] [blame]
Andreas Gampeed6b9df2014-11-20 22:02:20 -08001#ifndef _ANDROID_GRAPHICS_BITMAP_FACTORY_H_
2#define _ANDROID_GRAPHICS_BITMAP_FACTORY_H_
Joseph Wenf1f48bc2010-07-19 16:59:51 +08003
Xiao Huangfff1a292023-04-12 17:37:36 +00004#include <SkEncodedImageFormat.h>
5
Joseph Wenf1f48bc2010-07-19 16:59:51 +08006#include "GraphicsJNI.h"
7
8extern jclass gOptions_class;
9extern jfieldID gOptions_justBoundsFieldID;
10extern jfieldID gOptions_sampleSizeFieldID;
11extern jfieldID gOptions_configFieldID;
Romain Guy95648b82017-04-13 18:43:42 -070012extern jfieldID gOptions_colorSpaceFieldID;
Chris Craik1abf5d62013-08-16 12:47:03 -070013extern jfieldID gOptions_premultipliedFieldID;
Joseph Wenf1f48bc2010-07-19 16:59:51 +080014extern jfieldID gOptions_ditherFieldID;
15extern jfieldID gOptions_purgeableFieldID;
16extern jfieldID gOptions_shareableFieldID;
17extern jfieldID gOptions_nativeAllocFieldID;
Wei-Ta Chen953f9092010-12-03 14:06:18 -080018extern jfieldID gOptions_preferQualityOverSpeedFieldID;
Joseph Wenf1f48bc2010-07-19 16:59:51 +080019extern jfieldID gOptions_widthFieldID;
20extern jfieldID gOptions_heightFieldID;
21extern jfieldID gOptions_mimeFieldID;
Romain Guy95648b82017-04-13 18:43:42 -070022extern jfieldID gOptions_outConfigFieldID;
23extern jfieldID gOptions_outColorSpaceFieldID;
Joseph Wenf1f48bc2010-07-19 16:59:51 +080024extern jfieldID gOptions_mCancelID;
Owen Linf970c2e2012-04-25 18:49:09 +080025extern jfieldID gOptions_bitmapFieldID;
Joseph Wenf1f48bc2010-07-19 16:59:51 +080026
Romain Guy95648b82017-04-13 18:43:42 -070027extern jclass gBitmapConfig_class;
28extern jmethodID gBitmapConfig_nativeToConfigMethodID;
29
Xiao Huangfff1a292023-04-12 17:37:36 +000030extern jclass gImageDecoder_class;
31extern jmethodID gImageDecoder_isP010SupportedForHEVCMethodID;
32
Leon Scroggins III407b5442019-11-22 17:10:20 -050033jstring getMimeTypeAsJavaString(JNIEnv*, SkEncodedImageFormat);
Joseph Wenf1f48bc2010-07-19 16:59:51 +080034
Andreas Gampeed6b9df2014-11-20 22:02:20 -080035#endif // _ANDROID_GRAPHICS_BITMAP_FACTORY_H_