/** * @since Available in iOS 7.0 and later. */ public AVVideoSettings setAverageNonDroppableFrameRate(double averageNonDroppableFrameRate) { set(Keys.AverageNonDroppableFrameRate(), NSNumber.valueOf(averageNonDroppableFrameRate)); return this; } /*</methods>*/
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setProfileLevel(AVVideoProfileLevel profileLevel) { set(Keys.ProfileLevel(), profileLevel.value()); return this; } /**
/** * @since Available in iOS 5.0 and later. */ public AVVideoSettings setScalingMode(AVVideoScalingMode scalingMode) { set(Keys.ScalingMode(), scalingMode.value()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setWidth(long width) { set(Keys.Width(), NSNumber.valueOf(width)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public AVVideoSettings setExpectedSourceFrameRate(double expectedSourceFrameRate) { set(Keys.ExpectedSourceFrameRate(), NSNumber.valueOf(expectedSourceFrameRate)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setHeight(long height) { set(Keys.Height(), NSNumber.valueOf(height)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setCleanAperture(AVVideoCleanAperture cleanAperture) { set(Keys.CleanAperture(), cleanAperture.getDictionary()); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public AVVideoSettings setAllowsFrameReordering(boolean allowsFrameReordering) { set(Keys.AllowFrameReordering(), NSNumber.valueOf(allowsFrameReordering)); return this; } /**
/** * @since Available in iOS 7.0 and later. */ public AVVideoSettings setH264EntropyMode(AVVideoH264EntropyMode h264EntropyMode) { set(Keys.H264EntropyMode(), h264EntropyMode.value()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ @WeaklyLinked public AVVideoSettings setCodec(CMVideoCodecType codec) { set(Keys.Codec(), NSNumber.valueOf(codec.value())); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setPixelAspectRatio(AVPixelAspectRatio pixelAspectRatio) { NSDictionary<NSString, NSObject> val = new NSMutableDictionary<>(); val.put(AVPixelAspectRatio.HorizontalSpacing(), pixelAspectRatio.getHorizontalSpacing()); val.put(AVPixelAspectRatio.VerticalSpacing(), pixelAspectRatio.getVerticalSpacing()); set(Keys.PixelAspectRatio(), val); return this; }
/** * @since Available in iOS 7.0 and later. */ public AVVideoSettings setAverageNonDroppableFrameRate(double averageNonDroppableFrameRate) { set(Keys.AverageNonDroppableFrameRate(), NSNumber.valueOf(averageNonDroppableFrameRate)); return this; } /*</methods>*/
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setProfileLevel(AVVideoProfileLevel profileLevel) { set(Keys.ProfileLevel(), profileLevel.value()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setHeight(long height) { set(Keys.Height(), NSNumber.valueOf(height)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setCleanAperture(AVVideoCleanAperture cleanAperture) { set(Keys.CleanAperture(), cleanAperture.getDictionary()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setWidth(long width) { set(Keys.Width(), NSNumber.valueOf(width)); return this; } /**
/** * @since Available in iOS 5.0 and later. */ public AVVideoSettings setScalingMode(AVVideoScalingMode scalingMode) { set(Keys.ScalingMode(), scalingMode.value()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setWidth(long width) { set(Keys.Width(), NSNumber.valueOf(width)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setProfileLevel(AVVideoProfileLevel profileLevel) { set(Keys.ProfileLevel(), profileLevel.value()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public AVVideoSettings setPixelAspectRatio(AVPixelAspectRatio pixelAspectRatio) { NSDictionary<NSString, NSObject> val = new NSMutableDictionary<>(); val.put(AVPixelAspectRatio.HorizontalSpacing(), pixelAspectRatio.getHorizontalSpacing()); val.put(AVPixelAspectRatio.VerticalSpacing(), pixelAspectRatio.getVerticalSpacing()); set(Keys.PixelAspectRatio(), val); return this; }