@MarshalsPointer
 public static long toNative(CVImageBufferAttributes o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.data, flags);
 }
Example #2
0
 @MarshalsPointer
 public static long toNative(CTFrameClippingPath o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.data, flags);
 }
 @MarshalsPointer
 public static long toNative(CFStreamSocketSecurityLevel o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(CMMetadataKeySpace o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(CMMetadataFormatDescriptionMetadataSpecification o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.data, flags);
 }
 @MarshalsPointer
 public static long toNative(CMFormatDescriptionExtension o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.data, flags);
 }
 @MarshalsPointer
 public static long toNative(CGImageDestinationCopySourceOptions o, long flags) {
   if (o == null) {
     return 0L;
   }
   return CFType.Marshaler.toNative(o.data, flags);
 }
Example #8
0
 @MarshalsPointer
 public static List<?> toObject(Class<? extends CFType> cls, long handle, long flags) {
   CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   return o.toList(CTLine.class);
 }
 @MarshalsPointer
 public static CVImageBufferAttributes toObject(
     Class<CVImageBufferAttributes> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CVImageBufferAttributes(o);
 }
 @MarshalsPointer
 public static CFStreamSocketSecurityLevel toObject(
     Class<CFStreamSocketSecurityLevel> cls, long handle, long flags) {
   CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CFStreamSocketSecurityLevel.valueOf(o);
 }
 @MarshalsPointer
 public static CGImageDestinationCopySourceOptions toObject(
     Class<CGImageDestinationCopySourceOptions> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CGImageDestinationCopySourceOptions(o);
 }
Example #12
0
 @MarshalsPointer
 public static CTFrameClippingPath toObject(
     Class<CTFrameClippingPath> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CTFrameClippingPath(o);
 }
 @MarshalsPointer
 public static CMFormatDescriptionExtension toObject(
     Class<CMFormatDescriptionExtension> cls, long handle, long flags) {
   CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new CMFormatDescriptionExtension(o);
 }
Example #14
0
 @MarshalsPointer
 public static CMMetadataKeySpace toObject(
     Class<CMMetadataKeySpace> cls, long handle, long flags) {
   CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return CMMetadataKeySpace.valueOf(o);
 }
 @MarshalsPointer
 public static long toNative(List<CMFormatDescriptionExtension> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CMFormatDescriptionExtension i : l) {
     array.add(i.getDictionary());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<CGImageDestinationCopySourceOptions> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CGImageDestinationCopySourceOptions i : l) {
     array.add(i.getDictionary());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
Example #17
0
 @MarshalsPointer
 public static long toNative(List<CMMetadataKeySpace> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CMMetadataKeySpace o : l) {
     array.add(o.value());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
Example #18
0
 @MarshalsPointer
 public static long toNative(List<CTFrameClippingPath> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CTFrameClippingPath i : l) {
     array.add(i.getDictionary());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<CFStreamSocketSecurityLevel> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CFStreamSocketSecurityLevel o : l) {
     array.add(o.value());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
Example #20
0
 @MarshalsPointer
 public static long toNative(List<CVImageBufferAttributes> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray array = CFMutableArray.create();
   for (CVImageBufferAttributes i : l) {
     array.add(i.getDictionary());
   }
   return CFType.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static List<CMFormatDescriptionExtension> toObject(
     Class<? extends CFType> cls, long handle, long flags) {
   CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<CMFormatDescriptionExtension> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new CMFormatDescriptionExtension(o.get(i, CFDictionary.class)));
   }
   return list;
 }
Example #22
0
 @MarshalsPointer
 public static List<CMMetadataKeySpace> toObject(
     Class<? extends CFType> cls, long handle, long flags) {
   CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<CMMetadataKeySpace> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(CMMetadataKeySpace.valueOf(o.get(i, CFString.class)));
   }
   return list;
 }
 @MarshalsPointer
 public static List<CFStreamSocketSecurityLevel> toObject(
     Class<? extends CFType> cls, long handle, long flags) {
   CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<CFStreamSocketSecurityLevel> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(CFStreamSocketSecurityLevel.valueOf(o.get(i, CFString.class)));
   }
   return list;
 }
Example #24
0
 @MarshalsPointer
 public static long toNative(List<? extends CFType> l, long flags) {
   if (l == null) {
     return 0L;
   }
   CFArray o = null;
   if (l instanceof CFArray) {
     o = (CFArray) l;
   } else {
     o = CFArray.create((List<? extends CFType>) l);
   }
   return CFType.Marshaler.toNative(o, flags);
 }
Example #25
0
 @MarshalsPointer
 public static List<CVImageBufferAttributes> toObject(
     Class<? extends CFType> cls, long handle, long flags) {
   CFArray o = (CFArray) CFType.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<CVImageBufferAttributes> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new CVImageBufferAttributes(o.get(i, CFDictionary.class)));
   }
   return list;
 }