/** @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 8.0 and later. */ public CFString getIdentifier() { if (has(Keys.Identifier())) { CFString val = get(Keys.Identifier(), CFString.class); return val; } return null; }
/** @since Available in iOS 8.0 and later. */ public CFString getExtendedLanguageTag() { if (has(Keys.ExtendedLanguageTag())) { CFString val = get(Keys.ExtendedLanguageTag(), CFString.class); return val; } return null; }
/** @since Available in iOS 4.0 and later. */ public CMTextDisplayFlags getDisplayFlags() { if (has(Keys.DisplayFlags())) { CFNumber val = get(Keys.DisplayFlags(), CFNumber.class); return new CMTextDisplayFlags(val.longValue()); } return null; }
/** @since Available in iOS 4.0 and later. */ public CMTextFormatDescriptionColor getBackgroundColor() { if (has(Keys.BackgroundColor())) { CFDictionary val = get(Keys.BackgroundColor(), CFDictionary.class); return new CMTextFormatDescriptionColor(val); } return null; }
/** @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 4.0 and later. */ public long getWidth() { if (has(Keys.Width())) { NSNumber val = (NSNumber) get(Keys.Width()); return val.longValue(); } return 0; }
/** @since Available in iOS 4.0 and later. */ public String getDefaultFontName() { if (has(Keys.DefaultFontName())) { CFString val = get(Keys.DefaultFontName(), CFString.class); return val.toString(); } return null; }
public AVAudioQuality getAudioQuality() { if (has(Keys.AudioQuality())) { NSNumber val = (NSNumber) get(Keys.AudioQuality()); return AVAudioQuality.valueOf(val.longValue()); } return null; }
/** @since Available in iOS 4.0 and later. */ public NSData getVerbatimISOSampleEntry() { if (has(Keys.VerbatimISOSampleEntry())) { NSData val = get(Keys.VerbatimISOSampleEntry(), NSData.class); return val; } return null; }
/** @since Available in iOS 4.0 and later. */ public Map<String, String> getFontTable() { if (has(Keys.FontTable())) { CFDictionary val = get(Keys.FontTable(), CFDictionary.class); return val.asStringStringMap(); } return null; }
/** @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; }
/** @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; }
/** @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; }
/** @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; }
/** @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; }
/** @since Available in iOS 4.0 and later. */ public CMTextFormatDescriptionRect getDefaultTextBox() { if (has(Keys.DefaultTextBox())) { CFDictionary val = get(Keys.DefaultTextBox(), CFDictionary.class); return new CMTextFormatDescriptionRect(val); } return null; }
/** @since Available in iOS 4.0 and later. */ public NSData getVerbatimSampleDescription() { if (has(Keys.VerbatimSampleDescription())) { NSData val = get(Keys.VerbatimSampleDescription(), NSData.class); return val; } return null; }
/** @since Available in iOS 4.0 and later. */ public CMTextFormatDescriptionStyle getDefaultStyle() { if (has(Keys.DefaultStyle())) { CFDictionary val = get(Keys.DefaultStyle(), CFDictionary.class); return new CMTextFormatDescriptionStyle(val); } return null; }
/** @since Available in iOS 4.0 and later. */ public CMTimeCodeFormatDescriptionSourceReferenceName getSourceReferenceName() { if (has(Keys.SourceReferenceName())) { CFDictionary val = get(Keys.SourceReferenceName(), CFDictionary.class); return new CMTimeCodeFormatDescriptionSourceReferenceName(val); } return null; }
/** @since Available in iOS 4.0 and later. */ public CMTextJustification getTextJustification() { if (has(Keys.TextJustification())) { CFNumber val = get(Keys.TextJustification(), CFNumber.class); return CMTextJustification.valueOf(val.longValue()); } 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; }
/** @since Available in iOS 8.0 and later. */ public CFString getDataType() { if (has(Keys.DataType())) { CFString val = get(Keys.DataType(), CFString.class); return val; } return null; }
/** @since Available in iOS 4.0 and later. */ public NSDictionary<NSString, NSObject> getSampleDescriptionExtensionAtoms() { if (has(Keys.SampleDescriptionExtensionAtoms())) { NSDictionary<NSString, NSObject> val = get(Keys.SampleDescriptionExtensionAtoms(), NSDictionary.class); return val; } return null; }
/** @since Available in iOS 4.0 and later. */ public NSDictionary<NSString, NSObject> getOriginalCompressionSettings() { if (has(Keys.OriginalCompressionSettings())) { NSDictionary<NSString, NSObject> val = get(Keys.OriginalCompressionSettings(), NSDictionary.class); return val; } return null; }
/** @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; }
/** @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; }
/** @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; }
/** @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 4.0 and later. */ public CMFormatDescriptionExtension setVerbatimISOSampleEntry(NSData verbatimISOSampleEntry) { set(Keys.VerbatimISOSampleEntry(), verbatimISOSampleEntry); return this; }