FMLiveSwitchVideoFormat Class Reference

A video format. More...

Instance Methods

(FMLiveSwitchVideoFormat *) - clone
 Clones this instance. More...
 
(FMLiveSwitchVideoFormat *) - createInstance
 Creates a new instance. More...
 
(int) - fourCC
 Gets the FourCC value for this format. More...
 
(NSString *) - fourCCToFormatNameWithFourcc:
 Converts a FourCC value to its format name. More...
 
(NSString *) - getMaxLevelWithLevel1:level2:
 Gets the maximum level. More...
 
(NSString *) - getMinLevelWithLevel1:level2:
 Gets the minimum level. More...
 
(FMLiveSwitchFormatInfo *) - info
 Gets this format as an info object. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(instancetype) - initWithName:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(instancetype) - initWithName:clockRate:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(instancetype) - initWithName:clockRate:packetizationMode:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(instancetype) - initWithName:clockRate:profile:level:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(instancetype) - initWithName:clockRate:profile:level:packetizationMode:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(instancetype) - initWithName:clockRate:profile:level:packetizationMode:tier:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(bool) - isAbgr
 Gets a value indicating whether this format is ABGR. More...
 
(bool) - isArgb
 Gets a value indicating whether this format is ARGB. More...
 
(bool) - isBgr
 Gets a value indicating whether this format is BGR. More...
 
(bool) - isBgra
 Gets a value indicating whether this format is BGRA. More...
 
(bool) - isCompressed
 Gets whether this is a compressed format. More...
 
(bool) - isH264
 Gets a value indicating whether this format is H.264. More...
 
(bool) - isH265
 Gets a value indicating whether this format is H.265. More...
 
(bool) - isI420
 Gets a value indicating whether this format is I420. More...
 
(bool) - isLevelCompatibleWithLevel:
 Gets whether a level is compatible. More...
 
(bool) - isNv12
 Gets a value indicating whether this format is NV12. More...
 
(bool) - isNv21
 Gets a value indicating whether this format is NV21. More...
 
(bool) - isProfileCompatibleWithProfile:
 Gets whether a profile is compatible. More...
 
(bool) - isRaw
 Gets a value indicating whether this format is RGB, BGR, I420, YV12, NV12, NV21, RGBA, BGRA, ARGB, or ABGR. More...
 
(bool) - isRgb
 Gets a value indicating whether this format is RGB. More...
 
(bool) - isRgba
 Gets a value indicating whether this format is RGBA. More...
 
(bool) - isRgbaType
 Gets a value indicating whether this format is RGBA, BGRA, ARGB, or ABGR. More...
 
(bool) - isRgbType
 Gets a value indicating whether this format is RGB or BGR. More...
 
(bool) - isVp8
 Gets a value indicating whether this format is VP8. More...
 
(bool) - isVp9
 Gets a value indicating whether this format is VP9. More...
 
(bool) - isYuvType
 Gets a value indicating whether this format is I420, YV12, NV12, or NV21. More...
 
(bool) - isYv12
 Gets a value indicating whether this format is YV12. More...
 
(NSString *) - parameters
 Gets the parameters. More...
 
(void) - setFourCC:
 Sets the FourCC value for this format. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 
(void) - updateProfileToCompatibleWithFormat:
 Updates the profile to a compatible value. More...
 
- Instance Methods inherited from FMLiveSwitchMediaFormat
(NSString *) - description
 Returns a string that represents this instance. More...
 
(NSString *) - fullName
 Gets the full name, including clock rate and encoding parameters. More...
 
(bool) - isCompatibleWithFormat:
 Determines whether the specified format is compatible. More...
 
(bool) - isEncrypted
 Gets a value indicating that the data is encrypted. More...
 
(bool) - isEquivalentWithFormat:
 Determines whether the specified format is equivalent. More...
 
(bool) - isEquivalentWithFormat:ignoreIsPacketized:
 Determines whether the specified format is equivalent. More...
 
(bool) - isFixedBitrate
 Gets a value indicating whether a format only supports fixed bitrate. More...
 
(bool) - isInjected
 Gets a value indicating that the data is injected into the primary media stream (e.g. More...
 
(bool) - isPacketized
 Gets a value indicating whether the data is packetized. More...
 
(NSString *) - level
 Gets the level. More...
 
(bool) - levelIsStrict
 Gets a value indicating whether the level is strict. More...
 
(int) - maxBitrate
 Gets the maximum bitrate supported by this format, in kbps. More...
 
(int) - minBitrate
 Gets the minimum bitrate supported by this format, in kbps. More...
 
(NSString *) - name
 Gets the name. More...
 
(NSString *) - packetizationMode
 Gets the packetization mode. More...
 
(NSString *) - profile
 Gets the profile. More...
 
(void) - setClockRate:
 Sets the clock rate. More...
 
(void) - setIsEncrypted:
 Sets a value indicating that the data is encrypted. More...
 
(void) - setIsFixedBitrate:
 Sets a value indicating whether a format only supports fixed bitrate. More...
 
(void) - setIsInjected:
 Sets a value indicating that the data is injected into the primary media stream (e.g. More...
 
(void) - setIsPacketized:
 Sets a value indicating whether the data is packetized. More...
 
(void) - setLevel:
 Sets the level. More...
 
(void) - setLevelIsStrict:
 Sets a value indicating whether the level is strict. More...
 
(void) - setName:
 Sets the name. More...
 
(void) - setPacketizationMode:
 Sets the packetization mode. More...
 
(void) - setProfile:
 Sets the profile. More...
 
(void) - setStaticPayloadType:
 Sets the static payload type, if this format has a static payload type registered with IANA. More...
 
(void) - setTier:
 Sets the tier. More...
 
(int) - staticPayloadType
 Gets the static payload type, if this format has a static payload type registered with IANA. More...
 
(NSString *) - tier
 Gets the tier. More...
 
(void) - updateLevelIsStrictToCompatibleWithFormat:
 Updates the level-is-strict flag to a compatible value. More...
 
(void) - updateLevelToCompatibleWithFormat:
 Updates the level to a compatible value. More...
 
(void) - updateProfileToCompatibleWithFormat:
 Updates the profile to a compatible value. More...
 
(void) - updateTierToCompatibleWithFormat:
 Updates the tier to a compatible value. More...
 

Class Methods

(FMLiveSwitchVideoFormat *) + abgr
 Gets an ABGR video format. More...
 
(NSString *) + abgrName
 Gets the name of the ABGR video format ("ABGR"). More...
 
(FMLiveSwitchVideoFormat *) + argb
 Gets an ARGB video format. More...
 
(NSString *) + argbName
 Gets the name of the ARGB video format ("ARGB"). More...
 
(FMLiveSwitchVideoFormat *) + bgr
 Gets a BGR video format. More...
 
(FMLiveSwitchVideoFormat *) + bgra
 Gets an BGRA video format. More...
 
(NSString *) + bgraName
 Gets the name of the BGRA video format ("BGRA"). More...
 
(NSString *) + bgrName
 Gets the name of the BGR video format ("BGR"). More...
 
(int) + defaultClockRate
 Gets the default clock rate. More...
 
(int) + formatNameToFourCCWithFormatName:
 Converts a format name to its FourCC value. More...
 
(FMLiveSwitchVideoFormat *) + fromFormatInfo:
 Transforms a FormatInfo into an VideoFormat. More...
 
(FMLiveSwitchVideoFormat *) + fromJsonWithVideoFormatJson:
 Deserializes an instance from JSON. More...
 
(FMLiveSwitchVideoFormat *) + h264
 Gets an H.264 video format. More...
 
(NSString *) + h264Name
 Gets the name of the H.264 video format ("H264"). More...
 
(FMLiveSwitchVideoFormat *) + h265
 Gets an H.265 video format. More...
 
(NSString *) + h265Name
 Gets the name of the H.265 video format ("H265"). More...
 
(FMLiveSwitchVideoFormat *) + i420
 Gets an I420 video format. More...
 
(NSString *) + i420Name
 Gets the name of the I420 video format ("I420"). More...
 
(FMLiveSwitchVideoFormat *) + nv12
 Gets an NV12 video format. More...
 
(NSString *) + nv12Name
 Gets the name of the NV12 video format ("NV12"). More...
 
(FMLiveSwitchVideoFormat *) + nv21
 Gets an NV21 video format. More...
 
(NSString *) + nv21Name
 Gets the name of the NV21 video format ("NV21"). More...
 
(FMLiveSwitchVideoFormat *) + rgb
 Gets an RGB video format. More...
 
(FMLiveSwitchVideoFormat *) + rgba
 Gets an RGBA video format. More...
 
(NSString *) + rgbaName
 Gets the name of the RGBA video format ("RGBA"). More...
 
(NSString *) + rgbName
 Gets the name of the RGB video format ("RGB"). More...
 
(int) + toFourCCWithA:b:c:d:
 Converts 4 FourCC characters to an int. More...
 
(int) + toFourCCWithFourcc:
 Converts a FourCC string to a int. More...
 
(NSString *) + toJsonWithVideoFormat:
 Serializes an instance to JSON. More...
 
(FMLiveSwitchVideoFormat *) + videoFormat
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(FMLiveSwitchVideoFormat *) + videoFormatWithName:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(FMLiveSwitchVideoFormat *) + videoFormatWithName:clockRate:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(FMLiveSwitchVideoFormat *) + videoFormatWithName:clockRate:packetizationMode:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(FMLiveSwitchVideoFormat *) + videoFormatWithName:clockRate:profile:level:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(FMLiveSwitchVideoFormat *) + videoFormatWithName:clockRate:profile:level:packetizationMode:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(FMLiveSwitchVideoFormat *) + videoFormatWithName:clockRate:profile:level:packetizationMode:tier:
 Initializes a new instance of the FMLiveSwitchVideoFormat class. More...
 
(FMLiveSwitchVideoFormat *) + vp8
 Gets a VP8 video format. More...
 
(NSString *) + vp8Name
 Gets the name of the VP8 video format ("VP8"). More...
 
(FMLiveSwitchVideoFormat *) + vp9
 Gets a VP9 video format. More...
 
(NSString *) + vp9Name
 Gets the name of the VP9 video format ("VP9"). More...
 
(FMLiveSwitchVideoFormat *) + yv12
 Gets a YV12 video format. More...
 
(NSString *) + yv12Name
 Gets the name of the YV12 video format ("YV12"). More...
 
- Class Methods inherited from FMLiveSwitchMediaFormat
(FMLiveSwitchMediaFormat *) + mediaFormat
 Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More...
 
(FMLiveSwitchMediaFormat *) + mediaFormatWithName:clockRate:
 Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More...
 
(FMLiveSwitchMediaFormat *) + mediaFormatWithName:clockRate:packetizationMode:
 Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More...
 
(FMLiveSwitchMediaFormat *) + mediaFormatWithName:clockRate:profile:level:
 Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More...
 
(FMLiveSwitchMediaFormat *) + mediaFormatWithName:clockRate:profile:level:packetizationMode:
 Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More...
 
(FMLiveSwitchMediaFormat *) + mediaFormatWithName:clockRate:profile:level:packetizationMode:tier:
 Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More...
 
(NSString *) + redName
 Gets the name of the RED media format. More...
 
(NSString *) + ulpFecName
 Gets the name of the ULPFEC media format. More...
 

Additional Inherited Members

- Protected Attributes inherited from FMLiveSwitchMediaFormat
 __pad0__: NSObject- (int) clockRate
 

Detailed Description

A video format.

Method Documentation

◆ abgr

Gets an ABGR video format.

◆ abgrName

+ (NSString*) abgrName

Gets the name of the ABGR video format ("ABGR").

Indicates that each pixel occupies 32 bits (8 bits for alpha, then 8 bits for blue, then8 bits for green, then 8 bits for red).

◆ argb

Gets an ARGB video format.

◆ argbName

+ (NSString*) argbName

Gets the name of the ARGB video format ("ARGB").

Indicates that each pixel occupies 32 bits (8 bits for alpha, then 8 bits for red, then 8 bits for green, then 8 bits for blue).

◆ bgr

Gets a BGR video format.

◆ bgra

Gets an BGRA video format.

◆ bgraName

+ (NSString*) bgraName

Gets the name of the BGRA video format ("BGRA").

Indicates that each pixel occupies 32 bits (8 bits for blue, then8 bits for green, then 8 bits for red, then 8 bits for alpha).

◆ bgrName

+ (NSString*) bgrName

Gets the name of the BGR video format ("BGR").

Indicates that each pixel occupies 24 bits (8 bits for blue, then8 bits for green, then 8 bits for red).

◆ clone

Clones this instance.

Implements FMLiveSwitchMediaFormat.

◆ createInstance

- (FMLiveSwitchVideoFormat*) createInstance

Creates a new instance.

Implements FMLiveSwitchMediaFormat.

Implemented in FMLiveSwitchVp9Format, FMLiveSwitchVp8Format, and FMLiveSwitchH264Format.

◆ defaultClockRate

+ (int) defaultClockRate

Gets the default clock rate.

◆ formatNameToFourCCWithFormatName:

+ (int) formatNameToFourCCWithFormatName: (NSString *)  formatName

Converts a format name to its FourCC value.

Parameters
formatNameThe format name.
Returns
The FourCC value, or 0 if the format name is not recognized.

◆ fourCC

- (int) fourCC

Gets the FourCC value for this format.

◆ fourCCToFormatNameWithFourcc:

- (NSString*) fourCCToFormatNameWithFourcc: (int)  fourcc

Converts a FourCC value to its format name.

Parameters
fourccThe FourCC value.
Returns
The format name, or an empty string if the FourCC value is not recognized.

◆ fromFormatInfo:

+ (FMLiveSwitchVideoFormat*) fromFormatInfo: (FMLiveSwitchFormatInfo *)  info

Transforms a FormatInfo into an VideoFormat.

Parameters
infoThe format info.

◆ fromJsonWithVideoFormatJson:

+ (FMLiveSwitchVideoFormat*) fromJsonWithVideoFormatJson: (NSString *)  videoFormatJson

Deserializes an instance from JSON.

Parameters
videoFormatJsonThe video format JSON.

◆ getMaxLevelWithLevel1:level2:

- (NSString*) getMaxLevelWithLevel1: (NSString *)  level1
level2: (NSString *)  level2 

Gets the maximum level.

Parameters
level1The first level.
level2The second level.
Returns
The maximum level.

Implements FMLiveSwitchMediaFormat.

◆ getMinLevelWithLevel1:level2:

- (NSString*) getMinLevelWithLevel1: (NSString *)  level1
level2: (NSString *)  level2 

Gets the minimum level.

Parameters
level1The first level.
level2The second level.
Returns
The minimum level.

Implements FMLiveSwitchMediaFormat.

◆ h264

Gets an H.264 video format.

◆ h264Name

+ (NSString*) h264Name

Gets the name of the H.264 video format ("H264").

◆ h265

Gets an H.265 video format.

◆ h265Name

+ (NSString*) h265Name

Gets the name of the H.265 video format ("H265").

◆ i420

Gets an I420 video format.

◆ i420Name

+ (NSString*) i420Name

Gets the name of the I420 video format ("I420").

Indicates that each pixel occupies 12 bits (8 bits for Y, 2 bits for U, and 2 bits for V). Y plane is followed by U plane and then V plane.

◆ info

Gets this format as an info object.

Implements FMLiveSwitchMediaFormat.

◆ init

- (instancetype) init

◆ initWithName:

- (instancetype) initWithName: (NSString *)  name

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.

◆ initWithName:clockRate:

- (instancetype) initWithName: (NSString *)  name
clockRate: (int)  clockRate 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.

Implements FMLiveSwitchMediaFormat.

◆ initWithName:clockRate:packetizationMode:

- (instancetype) initWithName: (NSString *)  name
clockRate: (int)  clockRate
packetizationMode: (NSString *)  packetizationMode 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.
packetizationModeThe packetization mode.

Implements FMLiveSwitchMediaFormat.

◆ initWithName:clockRate:profile:level:

- (instancetype) initWithName: (NSString *)  name
clockRate: (int)  clockRate
profile: (NSString *)  profile
level: (NSString *)  level 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.
profileThe media format profile.
levelThe media format level.

Implements FMLiveSwitchMediaFormat.

◆ initWithName:clockRate:profile:level:packetizationMode:

- (instancetype) initWithName: (NSString *)  name
clockRate: (int)  clockRate
profile: (NSString *)  profile
level: (NSString *)  level
packetizationMode: (NSString *)  packetizationMode 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.
packetizationModeThe packetization mode.
levelThe media format level.
profileThe media format profile.

Implements FMLiveSwitchMediaFormat.

◆ initWithName:clockRate:profile:level:packetizationMode:tier:

- (instancetype) initWithName: (NSString *)  name
clockRate: (int)  clockRate
profile: (NSString *)  profile
level: (NSString *)  level
packetizationMode: (NSString *)  packetizationMode
tier: (NSString *)  tier 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.
packetizationModeThe packetization mode.
levelThe media format level.
profileThe media format profile.
tierThe media format tier.

Implements FMLiveSwitchMediaFormat.

◆ isAbgr

- (bool) isAbgr

Gets a value indicating whether this format is ABGR.

◆ isArgb

- (bool) isArgb

Gets a value indicating whether this format is ARGB.

◆ isBgr

- (bool) isBgr

Gets a value indicating whether this format is BGR.

◆ isBgra

- (bool) isBgra

Gets a value indicating whether this format is BGRA.

◆ isCompressed

- (bool) isCompressed

Gets whether this is a compressed format.

Implements FMLiveSwitchMediaFormat.

◆ isH264

- (bool) isH264

Gets a value indicating whether this format is H.264.

◆ isH265

- (bool) isH265

Gets a value indicating whether this format is H.265.

◆ isI420

- (bool) isI420

Gets a value indicating whether this format is I420.

◆ isLevelCompatibleWithLevel:

- (bool) isLevelCompatibleWithLevel: (NSString *)  level

Gets whether a level is compatible.

Parameters
levelThe level.

Implements FMLiveSwitchMediaFormat.

◆ isNv12

- (bool) isNv12

Gets a value indicating whether this format is NV12.

◆ isNv21

- (bool) isNv21

Gets a value indicating whether this format is NV21.

◆ isProfileCompatibleWithProfile:

- (bool) isProfileCompatibleWithProfile: (NSString *)  profile

Gets whether a profile is compatible.

Parameters
profileThe profile.

Implements FMLiveSwitchMediaFormat.

◆ isRaw

- (bool) isRaw

Gets a value indicating whether this format is RGB, BGR, I420, YV12, NV12, NV21, RGBA, BGRA, ARGB, or ABGR.

◆ isRgb

- (bool) isRgb

Gets a value indicating whether this format is RGB.

◆ isRgba

- (bool) isRgba

Gets a value indicating whether this format is RGBA.

◆ isRgbaType

- (bool) isRgbaType

Gets a value indicating whether this format is RGBA, BGRA, ARGB, or ABGR.

◆ isRgbType

- (bool) isRgbType

Gets a value indicating whether this format is RGB or BGR.

◆ isVp8

- (bool) isVp8

Gets a value indicating whether this format is VP8.

◆ isVp9

- (bool) isVp9

Gets a value indicating whether this format is VP9.

◆ isYuvType

- (bool) isYuvType

Gets a value indicating whether this format is I420, YV12, NV12, or NV21.

◆ isYv12

- (bool) isYv12

Gets a value indicating whether this format is YV12.

◆ nv12

Gets an NV12 video format.

◆ nv12Name

+ (NSString*) nv12Name

Gets the name of the NV12 video format ("NV12").

Indicates that each pixel occupies 12 bits (8 bits for Y, 2 bits for U, and 2 bits for V). Y plane is followed by interleaved U/V plane.

◆ nv21

Gets an NV21 video format.

◆ nv21Name

+ (NSString*) nv21Name

Gets the name of the NV21 video format ("NV21").

Indicates that each pixel occupies 12 bits (8 bits for Y, 2 bits for U, and 2 bits for V). Y plane is followed by interleaved V/U plane.

◆ parameters

- (NSString*) parameters

Gets the parameters.

Implements FMLiveSwitchMediaFormat.

◆ rgb

Gets an RGB video format.

◆ rgba

Gets an RGBA video format.

◆ rgbaName

+ (NSString*) rgbaName

Gets the name of the RGBA video format ("RGBA").

Indicates that each pixel occupies 32 bits (8 bits for red, then 8 bits for green, then 8 bits for blue, then 8 bits for alpha).

◆ rgbName

+ (NSString*) rgbName

Gets the name of the RGB video format ("RGB").

Indicates that each pixel occupies 24 bits (8 bits for red, then 8 bits for green, then 8 bits for blue).

◆ setFourCC:

- (void) setFourCC: (int)  value

Sets the FourCC value for this format.

◆ toFourCCWithA:b:c:d:

+ (int) toFourCCWithA: (unichar)  a
b: (unichar)  b
c: (unichar)  c
d: (unichar)  d 

Converts 4 FourCC characters to an int.

◆ toFourCCWithFourcc:

+ (int) toFourCCWithFourcc: (NSString *)  fourcc

Converts a FourCC string to a int.

Parameters
fourccThe fourcc.

◆ toJson

- (NSString*) toJson

Serializes this instance to JSON.

◆ toJsonWithVideoFormat:

+ (NSString*) toJsonWithVideoFormat: (FMLiveSwitchVideoFormat *)  videoFormat

Serializes an instance to JSON.

Parameters
videoFormatThe video format.

◆ updateProfileToCompatibleWithFormat:

- (void) updateProfileToCompatibleWithFormat: (FMLiveSwitchVideoFormat *)  format

Updates the profile to a compatible value.

Parameters
formatThe format.

◆ videoFormat

+ (FMLiveSwitchVideoFormat*) videoFormat

Initializes a new instance of the FMLiveSwitchVideoFormat class.

◆ videoFormatWithName:

+ (FMLiveSwitchVideoFormat*) videoFormatWithName: (NSString *)  name

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.

◆ videoFormatWithName:clockRate:

+ (FMLiveSwitchVideoFormat*) videoFormatWithName: (NSString *)  name
clockRate: (int)  clockRate 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.

◆ videoFormatWithName:clockRate:packetizationMode:

+ (FMLiveSwitchVideoFormat*) videoFormatWithName: (NSString *)  name
clockRate: (int)  clockRate
packetizationMode: (NSString *)  packetizationMode 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.
packetizationModeThe packetization mode.

◆ videoFormatWithName:clockRate:profile:level:

+ (FMLiveSwitchVideoFormat*) videoFormatWithName: (NSString *)  name
clockRate: (int)  clockRate
profile: (NSString *)  profile
level: (NSString *)  level 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.
profileThe media format profile.
levelThe media format level.

◆ videoFormatWithName:clockRate:profile:level:packetizationMode:

+ (FMLiveSwitchVideoFormat*) videoFormatWithName: (NSString *)  name
clockRate: (int)  clockRate
profile: (NSString *)  profile
level: (NSString *)  level
packetizationMode: (NSString *)  packetizationMode 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.
packetizationModeThe packetization mode.
levelThe media format level.
profileThe media format profile.

◆ videoFormatWithName:clockRate:profile:level:packetizationMode:tier:

+ (FMLiveSwitchVideoFormat*) videoFormatWithName: (NSString *)  name
clockRate: (int)  clockRate
profile: (NSString *)  profile
level: (NSString *)  level
packetizationMode: (NSString *)  packetizationMode
tier: (NSString *)  tier 

Initializes a new instance of the FMLiveSwitchVideoFormat class.

Parameters
nameThe name.
clockRateThe clock rate.
packetizationModeThe packetization mode.
levelThe media format level.
profileThe media format profile.
tierThe media format tier.

◆ vp8

Gets a VP8 video format.

◆ vp8Name

+ (NSString*) vp8Name

Gets the name of the VP8 video format ("VP8").

◆ vp9

Gets a VP9 video format.

◆ vp9Name

+ (NSString*) vp9Name

Gets the name of the VP9 video format ("VP9").

◆ yv12

Gets a YV12 video format.

◆ yv12Name

+ (NSString*) yv12Name

Gets the name of the YV12 video format ("YV12").

Indicates that each pixel occupies 12 bits (8 bits for Y, 2 bits for U, and 2 bits for V). Y plane is followed by V plane and then U plane.