Exemple #1
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;
 }
Exemple #2
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;
 }
Exemple #3
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;
 }
Exemple #4
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;
 }
Exemple #5
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;
 }
Exemple #6
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;
 }
 /** @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;
 }
Exemple #8
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;
 }
 public AVAudioQuality getAudioQuality() {
   if (has(Keys.AudioQuality())) {
     NSNumber val = (NSNumber) get(Keys.AudioQuality());
     return AVAudioQuality.valueOf(val.longValue());
   }
   return null;
 }
Exemple #10
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;
 }
Exemple #11
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;
 }
Exemple #12
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;
 }
Exemple #13
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;
 }
Exemple #14
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;
 }
Exemple #16
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setWidth(long width) {
   set(Keys.Width(), NSNumber.valueOf(width));
   return this;
 }
Exemple #17
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAverageNonDroppableFrameRate(double averageNonDroppableFrameRate) {
   set(Keys.AverageNonDroppableFrameRate(), NSNumber.valueOf(averageNonDroppableFrameRate));
   return this;
 }
Exemple #18
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setExpectedSourceFrameRate(double expectedSourceFrameRate) {
   set(Keys.ExpectedSourceFrameRate(), NSNumber.valueOf(expectedSourceFrameRate));
   return this;
 }
Exemple #19
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setHeight(long height) {
   set(Keys.Height(), NSNumber.valueOf(height));
   return this;
 }
Exemple #20
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setCleanAperture(AVVideoCleanAperture cleanAperture) {
   set(Keys.CleanAperture(), cleanAperture.getDictionary());
   return this;
 }
Exemple #21
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setH264EntropyMode(AVVideoH264EntropyMode h264EntropyMode) {
   set(Keys.H264EntropyMode(), h264EntropyMode.value());
   return this;
 }
Exemple #22
0
 /** @since Available in iOS 5.0 and later. */
 public AVVideoSettings setScalingMode(AVVideoScalingMode scalingMode) {
   set(Keys.ScalingMode(), scalingMode.value());
   return this;
 }
Exemple #23
0
 /** @since Available in iOS 4.0 and later. */
 @WeaklyLinked
 public AVVideoSettings setCodec(CMVideoCodecType codec) {
   set(Keys.Codec(), NSNumber.valueOf(codec.value()));
   return this;
 }
Exemple #24
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAllowsFrameReordering(boolean allowsFrameReordering) {
   set(Keys.AllowFrameReordering(), NSNumber.valueOf(allowsFrameReordering));
   return this;
 }
 public AVSampleRateConverterSettings setAudioQuality(AVAudioQuality audioQuality) {
   set(Keys.AudioQuality(), NSNumber.valueOf(audioQuality.value()));
   return this;
 }
Exemple #26
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setProfileLevel(AVVideoProfileLevel profileLevel) {
   set(Keys.ProfileLevel(), profileLevel.value());
   return this;
 }