public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CVPixelFormatDescription set(CFString key, NativeObject value) {
/** * @since Available in iOS 4.0 and later. */ public NSData getBlackBlock() { if (has(Keys.BlackBlock())) { NSData val = get(Keys.BlackBlock(), NSData.class); return val; } return null; } /**
/** * @since Available in iOS 8.0 and later. */ public boolean containsYCbCr() { if (has(Keys.ContainsYCbCr())) { CFBoolean val = get(Keys.ContainsYCbCr(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 8.0 and later. */ public boolean containsRGB() { if (has(Keys.ContainsRGB())) { CFBoolean val = get(Keys.ContainsRGB(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public int getBlockHorizontalAlignment() { if (has(Keys.BlockHorizontalAlignment())) { CFNumber val = get(Keys.BlockHorizontalAlignment(), CFNumber.class); return val.intValue(); } return 1; } /**
/** * @since Available in iOS 4.0 and later. */ public int getOpenGLFormat() { if (has(Keys.OpenGLFormat())) { CFNumber val = get(Keys.OpenGLFormat(), CFNumber.class); return val.intValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean isCompatibleWithCGImage() { if (has(Keys.CGImageCompatibility())) { CFBoolean val = get(Keys.CGImageCompatibility(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean isCompatibleWithOpenGL() { if (has(Keys.OpenGLCompatibility())) { CFBoolean val = get(Keys.OpenGLCompatibility(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public int getBlockWidth() { if (has(Keys.BlockWidth())) { CFNumber val = get(Keys.BlockWidth(), CFNumber.class); return val.intValue(); } return 1; } /**
/** * @since Available in iOS 4.0 and later. */ public int getBlockVerticalAlignment() { if (has(Keys.BlockVerticalAlignment())) { CFNumber val = get(Keys.BlockVerticalAlignment(), CFNumber.class); return val.intValue(); } return 1; } /**
/** * @since Available in iOS 5.0 and later. */ public boolean isCompatibleWithOpenGLES() { if (has(Keys.OpenGLESCompatibility())) { CFBoolean val = get(Keys.OpenGLESCompatibility(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public int getBitsPerBlock() { if (has(Keys.BitsPerBlock())) { CFNumber val = get(Keys.BitsPerBlock(), CFNumber.class); return val.intValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public int getOpenGLType() { if (has(Keys.OpenGLType())) { CFNumber val = get(Keys.OpenGLType(), CFNumber.class); return val.intValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean isCompatibleWithCGBitmapContext() { if (has(Keys.CGBitmapContextCompatibility())) { CFBoolean val = get(Keys.CGBitmapContextCompatibility(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public long getConstant() { if (has(Keys.Constant())) { CFNumber val = get(Keys.Constant(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.3 and later. */ public boolean containsAlpha() { if (has(Keys.ContainsAlpha())) { CFBoolean val = get(Keys.ContainsAlpha(), CFBoolean.class); return val.booleanValue(); } return false; } /**
/** * @since Available in iOS 4.0 and later. */ public int getPlanes() { if (has(Keys.Planes())) { CFNumber val = get(Keys.Planes(), CFNumber.class); return val.intValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public int getHorizontalSubsampling() { if (has(Keys.HorizontalSubsampling())) { CFNumber val = get(Keys.HorizontalSubsampling(), CFNumber.class); return val.intValue(); } return 1; } /**
/** * @since Available in iOS 4.0 and later. */ public int getVerticalSubsampling() { if (has(Keys.VerticalSubsampling())) { CFNumber val = get(Keys.VerticalSubsampling(), CFNumber.class); return val.intValue(); } return 1; } /**
/** * @since Available in iOS 4.0 and later. */ public boolean isCompatibleWithQD() { if (has(Keys.QDCompatibility())) { CFBoolean val = get(Keys.QDCompatibility(), CFBoolean.class); return val.booleanValue(); } return false; } /**