Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
- API Level:
- 3
Represents a packet for multimedia.
public abstract class MediaPacket : IDisposable
- Inheritance
-
- Implements
-
IDisposable
Properties
Declaration
public IMediaBuffer Buffer { get; }
Property Value
Type |
Description |
IMediaBuffer |
The IMediaBuffer allocated to the packet.
This property will return null if the packet is in the raw video format.
|
API Level: 3
View Source
Gets or sets the buffer flags of the packet.
Declaration
public MediaPacketBufferFlags BufferFlags { get; set; }
Property Value
API Level: 3
Declaration
public int BufferWrittenLength { get; set; }
Property Value
API Level: 3
View Source
Gets or sets the DTS(Decoding Time Stamp) value of the current packet in nanoseconds.
Declaration
public ulong Dts { get; set; }
Property Value
API Level: 3
View Source
Gets or sets the duration value of the current packet in nanoseconds.
Declaration
public ulong Duration { get; set; }
Property Value
API Level: 6
View Source
Gets or sets the flip value of the current packet.
Declaration
public Flips Flip { get; set; }
Property Value
API Level: 5
View Source
Gets the media format of the current packet.
Declaration
public MediaFormat Format { get; }
Property Value
API Level: 3
View Source
Gets a value indicating whether the packet has been disposed.
Declaration
public bool IsDisposed { get; }
Property Value
Type |
Description |
Boolean |
true if the packet has been disposed of; otherwise, false.
|
API Level: 3
View Source
Gets a value indicating whether the packet is the encoded type.
Declaration
public bool IsEncoded { get; }
Property Value
Type |
Description |
Boolean |
true if the packet is the encoded type; otherwise, false.
|
API Level: 3
View Source
Gets or sets the PTS(Presentation Time Stamp) value of the current packet in nanoseconds.
Declaration
public ulong Pts { get; set; }
Property Value
API Level: 3
View Source
Gets or sets the rotation value of the current packet.
Declaration
public Rotation Rotation { get; set; }
Property Value
API Level: 5
Declaration
public MediaPacketVideoPlane[] VideoPlanes { get; }
Property Value
API Level: 3
Methods
Declaration
public static MediaPacket Create(MediaFormat format)
Parameters
Type |
Name |
Description |
MediaFormat |
format |
The media format for the new packet.
|
Returns
API Level: 3
View Source
Creates an object of the MediaPacket based on the original MediaPacket and increases the internal reference(hereafter ref) count by 1.
Declaration
public static MediaPacket Create(MediaPacket mediaPacket)
Parameters
Type |
Name |
Description |
MediaPacket |
mediaPacket |
The media packet to increase ref count.
|
Returns
Type |
Description |
MediaPacket |
A MediaPacket object which is based on original MediaPacket instance.
|
API Level: 10
Declaration
API Level: 3
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
Boolean |
disposing |
true to release both managed and unmanaged resources; false to release only unmanaged resources.
|
API Level: 3
View Source
Finalizes an instance of the MediaPacket class.
Declaration
protected void Finalize()
Implements
IDisposable
Extension Methods