Class VideoMediaFormat
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
- API Level:
- 3
Represents a video media format. This class cannot be inherited.
C#Copypublic sealed class VideoMediaFormat : MediaFormat
- Inheritance
Constructors
VideoMediaFormat(MediaFormatVideoMimeType, Int32, Int32)
Initializes a new instance of the VideoMediaFormat class with the specified mime type, width, and height.
Declaration
C#Copypublic VideoMediaFormat(MediaFormatVideoMimeType mimeType, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatVideoMimeType | mimeType | The mime type of the format. |
System.Int32 | width | The width value of the format. |
System.Int32 | height | The height value of the format |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
API Level: 3
VideoMediaFormat(MediaFormatVideoMimeType, Int32, Int32, Int32)
Initializes a new instance of the VideoMediaFormat class with the specified mime type, width, height, and frame rate.
Declaration
C#Copypublic VideoMediaFormat(MediaFormatVideoMimeType mimeType, int width, int height, int frameRate)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatVideoMimeType | mimeType | The mime type of the format. |
System.Int32 | width | The width value of the format. |
System.Int32 | height | The height value of the format |
System.Int32 | frameRate | The frame rate of the format. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
API Level: 3
VideoMediaFormat(MediaFormatVideoMimeType, Int32, Int32, Int32, Int32)
Initializes a new instance of the VideoMediaFormat class with the specified mime type, width, height, frame rate, and bit rate.
Declaration
C#Copypublic VideoMediaFormat(MediaFormatVideoMimeType mimeType, int width, int height, int frameRate, int bitRate)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatVideoMimeType | mimeType | The mime type of the format. |
System.Int32 | width | The width value of the format. |
System.Int32 | height | The height value of the format |
System.Int32 | frameRate | The frame rate of the format. |
System.Int32 | bitRate | The bit rate of the format. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
API Level: 3
VideoMediaFormat(MediaFormatVideoMimeType, Int32, Int32, Int32, Int32, Int32)
Initializes a new instance of the VideoMediaFormat class with the specified mime type, width, height, frame rate, bit rate and max bps.
Declaration
C#Copypublic VideoMediaFormat(MediaFormatVideoMimeType mimeType, int width, int height, int frameRate, int bitRate, int maxBps)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatVideoMimeType | mimeType | The mime type of the format. |
System.Int32 | width | The width value of the format. |
System.Int32 | height | The height value of the format |
System.Int32 | frameRate | The frame rate of the format. |
System.Int32 | bitRate | The bit rate of the format. |
System.Int32 | maxBps | The max bps of the format. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
API Level: 6
VideoMediaFormat(MediaFormatVideoMimeType, Size)
Initializes a new instance of the VideoMediaFormat class with the specified mime type and size.
Declaration
C#Copypublic VideoMediaFormat(MediaFormatVideoMimeType mimeType, Size size)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatVideoMimeType | mimeType | The mime type of the format. |
Size | size | The size of the format. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException | The width or the height of |
API Level: 3
VideoMediaFormat(MediaFormatVideoMimeType, Size, Int32)
Initializes a new instance of the VideoMediaFormat class with the specified mime type, width, height, and frame rate.
Declaration
C#Copypublic VideoMediaFormat(MediaFormatVideoMimeType mimeType, Size size, int frameRate)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatVideoMimeType | mimeType | The mime type of the format. |
Size | size | The video size of the format. |
System.Int32 | frameRate | The frame rate of the format. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException | The width or the height of |
API Level: 3
VideoMediaFormat(MediaFormatVideoMimeType, Size, Int32, Int32)
Initializes a new instance of the VideoMediaFormat class with the specified mime type, size, frame rate, and bit rate.
Declaration
C#Copypublic VideoMediaFormat(MediaFormatVideoMimeType mimeType, Size size, int frameRate, int bitRate)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatVideoMimeType | mimeType | The mime type of the format. |
Size | size | The size of the format. |
System.Int32 | frameRate | The frame rate of the format. |
System.Int32 | bitRate | The bit rate of the format. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException | The width or the height of |
API Level: 3
VideoMediaFormat(MediaFormatVideoMimeType, Size, Int32, Int32, Int32)
Initializes a new instance of the VideoMediaFormat class with the specified mime type, size, frame rate, bit rate and max bps.
Declaration
C#Copypublic VideoMediaFormat(MediaFormatVideoMimeType mimeType, Size size, int frameRate, int bitRate, int maxBps)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatVideoMimeType | mimeType | The mime type of the format. |
Size | size | The size of the format. |
System.Int32 | frameRate | The frame rate of the format. |
System.Int32 | bitRate | The bit rate of the format. |
System.Int32 | maxBps | The max bps of the format. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException | The width or the height of |
API Level: 6
Properties
Declaration
C#Copypublic int BitRate { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic int FrameRate { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic int MaxBps { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 6
Declaration
C#Copypublic MediaFormatVideoMimeType MimeType { get; }
Property Value
Type | Description |
---|---|
MediaFormatVideoMimeType |
API Level: 3
Declaration
C#Copypublic Size Size { get; }
Property Value
Type | Description |
---|---|
Size |
API Level: 3
Methods
Declaration
C#Copypublic override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | A System.Object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the formats are equal; otherwise, false. |
Overrides
API Level: 3
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this instance of VideoMediaFormat. |
Overrides
API Level: 3
Declaration
C#Copypublic override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |