/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setBitsPerBlock(int bitsPerBlock) { set(Keys.BitsPerBlock(), CFNumber.valueOf(bitsPerBlock)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setBlackBlock(NSData blackBlock) { set(Keys.BlackBlock(), blackBlock); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setBlockHeight(int blockHeight) { set(Keys.BlockHeight(), CFNumber.valueOf(blockHeight)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setCodecType(String codecType) { set(Keys.CodecType(), new CFString(codecType)); return this; } /**
/** * @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 4.0 and later. */ public CVPixelFormatDescription setCompatibleWithCGImage(boolean compatibleWithCGImage) { set(Keys.CGImageCompatibility(), CFBoolean.valueOf(compatibleWithCGImage)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setCGBitmapInfo(CGBitmapInfo cGBitmapInfo) { set(Keys.CGBitmapInfo(), CFNumber.valueOf(cGBitmapInfo.value())); return this; } /**
/** * @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 CVPixelFormatDescription setBitsPerBlock(int bitsPerBlock) { set(Keys.BitsPerBlock(), CFNumber.valueOf(bitsPerBlock)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setCGBitmapInfo(CGBitmapInfo cGBitmapInfo) { set(Keys.CGBitmapInfo(), CFNumber.valueOf(cGBitmapInfo.value())); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CGBitmapInfo getCGBitmapInfo() { if (has(Keys.CGBitmapInfo())) { CFNumber val = get(Keys.CGBitmapInfo(), CFNumber.class); return new CGBitmapInfo(val.longValue()); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setBlockVerticalAlignment(int blockVerticalAlignment) { set(Keys.BlockVerticalAlignment(), CFNumber.valueOf(blockVerticalAlignment)); return this; } /**
/** * @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 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 CVPixelFormatDescription setBlockVerticalAlignment(int blockVerticalAlignment) { set(Keys.BlockVerticalAlignment(), CFNumber.valueOf(blockVerticalAlignment)); return this; } /**
/** * @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 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 NSData getBlackBlock() { if (has(Keys.BlackBlock())) { NSData val = get(Keys.BlackBlock(), NSData.class); return val; } return null; } /**
/** * @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; } /**