Ejemplo n.º 1
0
 /** @since Available in iOS 4.0 and later. */
 public double getGammaLevel() {
   if (has(CVImageBufferAttribute.GammaLevel)) {
     CFNumber val = get(CVImageBufferAttribute.GammaLevel, CFNumber.class);
     return val.doubleValue();
   }
   return 0;
 }
Ejemplo n.º 2
0
 /** @since Available in iOS 4.0 and later. */
 public int getFieldCount() {
   if (has(CVImageBufferAttribute.FieldCount)) {
     CFNumber val = get(CVImageBufferAttribute.FieldCount, CFNumber.class);
     return val.intValue();
   }
   return 0;
 }
Ejemplo n.º 3
0
 /** @since Available in iOS 4.0 and later. */
 public CVImageBufferAttributes setGammaLevel(double gammaLevel) {
   set(CVImageBufferAttribute.GammaLevel, CFNumber.valueOf(gammaLevel));
   return this;
 }
Ejemplo n.º 4
0
 /** @since Available in iOS 4.0 and later. */
 public CVImageBufferAttributes setFieldCount(int fieldCount) {
   set(CVImageBufferAttribute.FieldCount, CFNumber.valueOf(fieldCount));
   return this;
 }