Пример #1
0
 /** @since Available in iOS 4.0 and later. */
 public long getWidth() {
   if (has(Keys.Width())) {
     NSNumber val = (NSNumber) get(Keys.Width());
     return val.longValue();
   }
   return 0;
 }
Пример #2
0
 /** @since Available in iOS 7.0 and later. */
 public double getAverageNonDroppableFrameRate() {
   if (has(Keys.AverageNonDroppableFrameRate())) {
     NSNumber val = (NSNumber) get(Keys.AverageNonDroppableFrameRate());
     return val.doubleValue();
   }
   return 0;
 }
Пример #3
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoH264EntropyMode getH264EntropyMode() {
   if (has(Keys.H264EntropyMode())) {
     NSString val = (NSString) get(Keys.H264EntropyMode());
     return AVVideoH264EntropyMode.valueOf(val);
   }
   return null;
 }
Пример #4
0
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
Пример #5
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoProfileLevel getProfileLevel() {
   if (has(Keys.ProfileLevel())) {
     NSString val = (NSString) get(Keys.ProfileLevel());
     return AVVideoProfileLevel.valueOf(val);
   }
   return null;
 }
Пример #6
0
 public String getErrorDomain() {
   if (has(Keys.ErrorDomain())) {
     NSString val = (NSString) get(Keys.ErrorDomain());
     return val.toString();
   }
   return null;
 }
Пример #7
0
 /** @since Available in iOS 7.0 and later. */
 public boolean allowsFrameReordering() {
   if (has(Keys.AllowFrameReordering())) {
     NSNumber val = (NSNumber) get(Keys.AllowFrameReordering());
     return val.booleanValue();
   }
   return false;
 }
Пример #8
0
 /** @since Available in iOS 4.3 and later. */
 public CGPath getPath() {
   if (has(Keys.Path())) {
     CGPath val = get(Keys.Path(), CGPath.class);
     return val;
   }
   return null;
 }
Пример #9
0
 /** @since Available in iOS 5.0 and later. */
 public AVVideoScalingMode getScalingMode() {
   if (has(Keys.ScalingMode())) {
     NSString val = (NSString) get(Keys.ScalingMode());
     return AVVideoScalingMode.valueOf(val);
   }
   return null;
 }
 /** @since Available in iOS 7.0 and later. */
 public AVSampleRateConverterAlgorithm getAlgorithm() {
   if (has(Keys.Algorithm())) {
     NSString val = (NSString) get(Keys.Algorithm());
     return AVSampleRateConverterAlgorithm.valueOf(val);
   }
   return null;
 }
Пример #11
0
 /** @since Available in iOS 4.0 and later. */
 public long getHeight() {
   if (has(Keys.Height())) {
     NSNumber val = (NSNumber) get(Keys.Height());
     return val.longValue();
   }
   return 0;
 }
 public AVAudioQuality getAudioQuality() {
   if (has(Keys.AudioQuality())) {
     NSNumber val = (NSNumber) get(Keys.AudioQuality());
     return AVAudioQuality.valueOf(val.longValue());
   }
   return null;
 }
Пример #13
0
 /** @since Available in iOS 7.0 and later. */
 public double getExpectedSourceFrameRate() {
   if (has(Keys.ExpectedSourceFrameRate())) {
     NSNumber val = (NSNumber) get(Keys.ExpectedSourceFrameRate());
     return val.doubleValue();
   }
   return 0;
 }
Пример #14
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoCleanAperture getCleanAperture() {
   if (has(Keys.CleanAperture())) {
     NSDictionary<NSString, NSObject> val =
         (NSDictionary<NSString, NSObject>) get(Keys.CleanAperture());
     return new AVVideoCleanAperture(val);
   }
   return null;
 }
Пример #15
0
 /** @since Available in iOS 4.0 and later. */
 @WeaklyLinked
 public CMVideoCodecType getCodec() {
   if (has(Keys.Codec())) {
     NSNumber val = (NSNumber) get(Keys.Codec());
     return CMVideoCodecType.valueOf(val.longValue());
   }
   return null;
 }
Пример #16
0
 /** @since Available in iOS 4.0 and later. */
 public AVPixelAspectRatio getPixelAspectRatio() {
   if (has(Keys.PixelAspectRatio())) {
     NSDictionary<NSString, NSObject> val =
         (NSDictionary<NSString, NSObject>) get(Keys.PixelAspectRatio());
     AVPixelAspectRatio result =
         new AVPixelAspectRatio(
             val.getLong(AVPixelAspectRatio.HorizontalSpacing(), 0),
             val.getLong(AVPixelAspectRatio.VerticalSpacing(), 0));
     return result;
   }
   return null;
 }
Пример #17
0
 /** @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 AVSampleRateConverterSettings setAlgorithm(AVSampleRateConverterAlgorithm algorithm) {
   set(Keys.Algorithm(), algorithm.value());
   return this;
 }
Пример #19
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setHeight(long height) {
   set(Keys.Height(), NSNumber.valueOf(height));
   return this;
 }
Пример #20
0
 /** @since Available in iOS 4.3 and later. */
 public CTFrameClippingPath setPath(CGPath path) {
   set(Keys.Path(), path);
   return this;
 }
Пример #21
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setCleanAperture(AVVideoCleanAperture cleanAperture) {
   set(Keys.CleanAperture(), cleanAperture.getDictionary());
   return this;
 }
Пример #22
0
 public NSNetServiceErrorUserInfo setErrorDomain(String errorDomain) {
   set(Keys.ErrorDomain(), new NSString(errorDomain));
   return this;
 }
Пример #23
0
 /** @since Available in iOS 5.0 and later. */
 public AVVideoSettings setScalingMode(AVVideoScalingMode scalingMode) {
   set(Keys.ScalingMode(), scalingMode.value());
   return this;
 }
Пример #24
0
 public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) {
   set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value()));
   return this;
 }
Пример #25
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAllowsFrameReordering(boolean allowsFrameReordering) {
   set(Keys.AllowFrameReordering(), NSNumber.valueOf(allowsFrameReordering));
   return this;
 }
Пример #26
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAverageNonDroppableFrameRate(double averageNonDroppableFrameRate) {
   set(Keys.AverageNonDroppableFrameRate(), NSNumber.valueOf(averageNonDroppableFrameRate));
   return this;
 }
Пример #27
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setProfileLevel(AVVideoProfileLevel profileLevel) {
   set(Keys.ProfileLevel(), profileLevel.value());
   return this;
 }
Пример #28
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setH264EntropyMode(AVVideoH264EntropyMode h264EntropyMode) {
   set(Keys.H264EntropyMode(), h264EntropyMode.value());
   return this;
 }
 public AVSampleRateConverterSettings setAudioQuality(AVAudioQuality audioQuality) {
   set(Keys.AudioQuality(), NSNumber.valueOf(audioQuality.value()));
   return this;
 }
Пример #30
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setExpectedSourceFrameRate(double expectedSourceFrameRate) {
   set(Keys.ExpectedSourceFrameRate(), NSNumber.valueOf(expectedSourceFrameRate));
   return this;
 }