Esempio n. 1
0
 @MarshalsPointer
 public static long toNative(AVLayerVideoGravity o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(AVMediaCharacteristic o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(AVMetadataKeyISOUserData o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(AVSampleRateConverterSettings o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.data, flags);
 }
 @MarshalsPointer
 public static long toNative(AVOutputSettingsPreset o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
 @MarshalsPointer
 public static long toNative(AVAudioSessionOrientation o, long flags) {
   if (o == null) {
     return 0L;
   }
   return NSObject.Marshaler.toNative(o.value(), flags);
 }
Esempio n. 7
0
 @MarshalsPointer
 public static AVLayerVideoGravity toObject(
     Class<AVLayerVideoGravity> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVLayerVideoGravity.valueOf(o);
 }
 @MarshalsPointer
 public static AVOutputSettingsPreset toObject(
     Class<AVOutputSettingsPreset> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVOutputSettingsPreset.valueOf(o);
 }
 @MarshalsPointer
 public static AVAudioSessionOrientation toObject(
     Class<AVAudioSessionOrientation> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVAudioSessionOrientation.valueOf(o);
 }
Esempio n. 10
0
 @MarshalsPointer
 public static AVMediaCharacteristic toObject(
     Class<AVMediaCharacteristic> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVMediaCharacteristic.valueOf(o);
 }
 @MarshalsPointer
 public static AVMetadataKeyISOUserData toObject(
     Class<AVMetadataKeyISOUserData> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVMetadataKeyISOUserData.valueOf(o);
 }
 @MarshalsPointer
 public static AVSampleRateConverterSettings toObject(
     Class<AVSampleRateConverterSettings> cls, long handle, long flags) {
   NSDictionary o =
       (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new AVSampleRateConverterSettings(o);
 }
Esempio n. 13
0
 @MarshalsPointer
 public static AVVideoSettings toObject(Class<AVVideoSettings> cls, long handle, long flags) {
   NSDictionary<NSString, NSObject> o =
       (NSDictionary<NSString, NSObject>)
           NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
   if (o == null) {
     return null;
   }
   return new AVVideoSettings(o);
 }
 @MarshalsPointer
 public static long toNative(List<AVSampleRateConverterSettings> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSDictionary> array = new NSMutableArray<>();
   for (AVSampleRateConverterSettings i : l) {
     array.add(i.getDictionary());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<AVOutputSettingsPreset> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSString> array = new NSMutableArray<>();
   for (AVOutputSettingsPreset o : l) {
     array.add(o.value());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
Esempio n. 16
0
 @MarshalsPointer
 public static long toNative(List<CMVideoCodecType> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSMutableArray<NSString> array = new NSMutableArray<>();
   for (CMVideoCodecType i : l) {
     array.add(new NSString(i.asFourCharCode()));
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static long toNative(List<AVAudioSessionOrientation> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSString> array = new NSMutableArray<>();
   for (AVAudioSessionOrientation o : l) {
     array.add(o.value());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
Esempio n. 18
0
 @MarshalsPointer
 public static long toNative(List<AVLayerVideoGravity> l, long flags) {
   if (l == null) {
     return 0L;
   }
   NSArray<NSString> array = new NSMutableArray<>();
   for (AVLayerVideoGravity o : l) {
     array.add(o.value());
   }
   return NSObject.Marshaler.toNative(array, flags);
 }
 @MarshalsPointer
 public static List<AVSampleRateConverterSettings> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSDictionary> o =
       (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<AVSampleRateConverterSettings> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(new AVSampleRateConverterSettings(o.get(i)));
   }
   return list;
 }
Esempio n. 20
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<CMVideoCodecType> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<CMVideoCodecType> list = new ArrayList<>();
   for (NSString str : o) {
     list.add(CMVideoCodecType.valueOf(str));
   }
   return list;
 }
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<AVAudioSessionOrientation> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o =
       (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<AVAudioSessionOrientation> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(AVAudioSessionOrientation.valueOf(o.get(i)));
   }
   return list;
 }