Class MediaPacket
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
Represents a packet for multimedia.
public abstract class MediaPacket : IDisposable
- Inheritance
-
objectMedia
Packet
- Implements
-
System.
IDisposable
Properties
View SourceBuffer
Gets the buffer of the packet.
Declaration
public IMediaBuffer Buffer { get; }
Property Value
Type | Description |
---|---|
IMedia |
The IMedia |
Exceptions
Type | Condition |
---|---|
System. |
The MediaPacket has already been disposed of. |
See Also
View SourceBufferFlags
Gets or sets the buffer flags of the packet.
Declaration
public MediaPacketBufferFlags BufferFlags { get; set; }
Property Value
Type | Description |
---|---|
Media |
Exceptions
Type | Condition |
---|---|
System. |
The MediaPacket has already been disposed of. |
System. |
The MediaPacket is not in the writable state, which means it is being used by another module. |
BufferWrittenLength
Gets or sets a length of data written in the Buffer.
Declaration
public int BufferWrittenLength { get; set; }
Property Value
Type | Description |
---|---|
int |
Exceptions
Type | Condition |
---|---|
System. |
The MediaPacket has already been disposed of. |
System. |
The value specified for this property is less than zero or greater than the length of the Buffer. |
System. |
The MediaPacket has Video |
Dts
Gets or sets the DTS(Decoding Time Stamp) value of the current packet.
Declaration
public ulong Dts { get; set; }
Property Value
Type | Description |
---|---|
ulong |
Exceptions
Type | Condition |
---|---|
System. |
The MediaPacket has already been disposed of. |
System. |
The MediaPacket is not in the writable state, which means it is being used by another module. |
Flip
Gets or sets the flip value of the current packet.
Declaration
public Flips Flip { get; set; }
Property Value
Type | Description |
---|---|
Flips |
Remarks
None will be ignored in set case. It's not supported in Native FW.
Exceptions
Type | Condition |
---|---|
System. |
The specified value to set is invalid. |
System. |
The MediaPacket has already been disposed of. |
System. |
The MediaPacket is not in the writable state, which means it is being used by another module. |
Format
Gets the media format of the current packet.
Declaration
public MediaFormat Format { get; }
Property Value
Type | Description |
---|---|
Media |
IsDisposed
Gets a value indicating whether the packet has been disposed of.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
bool | true if the packet has been disposed of; otherwise, false. |
IsEncoded
Gets a value indicating whether the packet is the encoded type.
Declaration
public bool IsEncoded { get; }
Property Value
Type | Description |
---|---|
bool | true if the packet is the encoded type; otherwise, false. |
Exceptions
Type | Condition |
---|---|
System. |
The MediaPacket has already been disposed of. |
Pts
Gets or sets the PTS(Presentation Time Stamp) value of the current packet.
Declaration
public ulong Pts { get; set; }
Property Value
Type | Description |
---|---|
ulong |
Exceptions
Type | Condition |
---|---|
System. |
The MediaPacket has already been disposed of. |
System. |
The MediaPacket is not in the writable state, which means it is being used by another module. |
Rotation
Gets or sets the rotation value of the current packet.
Declaration
public Rotation Rotation { get; set; }
Property Value
Type | Description |
---|---|
Rotation |
Exceptions
Type | Condition |
---|---|
System. |
The specified value to set is invalid. |
System. |
The MediaPacket has already been disposed of. |
System. |
The MediaPacket is not in the writable state, which means it is being used by another module. |
VideoPlanes
Gets the video planes of the packet.
Declaration
public MediaPacketVideoPlane[] VideoPlanes { get; }
Property Value
Type | Description |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The MediaPacket has already been disposed of. |
See Also
Methods
View SourceCreate(MediaFormat)
Creates an object of the MediaPacket with the specified Media
Declaration
public static MediaPacket Create(MediaFormat format)
Parameters
Type | Name | Description |
---|---|---|
Media |
format | The media format for the new packet. |
Returns
Type | Description |
---|---|
Media |
A new MediaPacket object. |
Dispose()
Releases all resources used by the Media
Declaration
public void Dispose()
Exceptions
Type | Condition |
---|---|
System. |
The MediaPacket can not be disposed, which means it is being used by another module. |
Dispose(bool)
Releases the resources used by the Media
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
~MediaPacket()
Finalizes an instance of the MediaPacket class.
Declaration
protected ~MediaPacket()