Lines Matching defs:options

87 static bool optionsJustBounds(JNIEnv* env, jobject options) {
88 return options != NULL && env->GetBooleanField(options, gOptions_justBoundsFieldID);
209 static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding, jobject options) {
224 if (options != NULL) {
225 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID);
226 if (optionsJustBounds(env, options)) {
231 env->SetIntField(options, gOptions_widthFieldID, -1);
232 env->SetIntField(options, gOptions_heightFieldID, -1);
233 env->SetObjectField(options, gOptions_mimeFieldID, 0);
235 jobject jconfig = env->GetObjectField(options, gOptions_configFieldID);
237 isMutable = env->GetBooleanField(options, gOptions_mutableFieldID);
238 doDither = env->GetBooleanField(options, gOptions_ditherFieldID);
239 preferQualityOverSpeed = env->GetBooleanField(options,
241 requireUnpremultiplied = !env->GetBooleanField(options, gOptions_premultipliedFieldID);
242 javaBitmap = env->GetObjectField(options, gOptions_bitmapFieldID);
244 if (env->GetBooleanField(options, gOptions_scaledFieldID)) {
245 const int density = env->GetIntField(options, gOptions_densityFieldID);
246 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID);
247 const int screenDensity = env->GetIntField(options, gOptions_screenDensityFieldID);
308 AutoDecoderCancel adc(options, decoder);
313 if (options != NULL && env->GetBooleanField(options, gOptions_mCancelID)) {
330 // update options (if any)
331 if (options != NULL) {
332 env->SetIntField(options, gOptions_widthFieldID, scaledWidth);
333 env->SetIntField(options, gOptions_heightFieldID, scaledHeight);
334 env->SetObjectField(options, gOptions_mimeFieldID,
462 jobject padding, jobject options) {
471 bitmap = doDecode(env, bufferedStream, padding, options);
510 jobject padding, jobject options) {
517 return doDecode(env, stream, padding, options);
521 jint offset, jint length, jobject options) {
526 return doDecode(env, stream, NULL, options);