| class TVideoFrameBuffer |
TVideoFrameBuffer represents a buffer for a single decoded video picture. The buffer must be contained within a chunk that can be shared across processes.
The frame buffer class is used both for video renderer data flow and with the MMMFVideoClientBufferSupport extension.
| Public Member Functions | |
|---|---|
| TVideoFrameBuffer (const TUncompressedVideoFormat &, TInt , TInt , const RChunk &, TInt ) | |
| IMPORT_C TUint8 * | Buffer () |
| IMPORT_C TInt | BufferId () |
| TBufferStatus | BufferStatus () |
| IMPORT_C const RChunk & | Chunk () |
| TDblQueLink & | DblQueLink () |
| IMPORT_C TUncompressedVideoFormat | Format () |
| TTime | PresentationTime () |
| void | SetBufferStatus ( TBufferStatus ) |
| void | SetPresentationTime (const TTime &) |
| IMPORT_C TUint | Stride () |
| Public Member Enumerations | |
|---|---|
| enum | TBufferStatus { EAvailable , EUsedByClient , EWaiting , ESubmitted } |
| Public Attributes | |
|---|---|
| const TInt | iOffset |
| Private Attributes | |
|---|---|
| TInt | iBufferId |
| RChunk | iChunk |
| TDblQueLink | iDblQueLink |
| TUncompressedVideoFormat | iFormat |
| TInt | iOffsetInChunk |
| TTime | iPresentationTime |
| TBufferStatus | iStatus |
| TInt | iStride |
| IMPORT_C | TVideoFrameBuffer | ( | const TUncompressedVideoFormat & | aFormat, |
| TInt | aStride, | |||
| TInt | aBufferId, | |||
| const RChunk & | aChunk, | |||
| TInt | aOffsetInChunk | |||
| ) | ||||
Constructor
| const TUncompressedVideoFormat & aFormat | Data format for the buffer. |
| TInt aStride | Stride for the buffer, i.e. the number of bytes from the start of one pixel row to the next. |
| TInt aBufferId | Buffer identifier, set by the buffer allocator. Buffer IDs are used to identify buffers in e.g. buffer rendering notifications. |
| const RChunk & aChunk | The chunk where the buffer is located. Note that the TVideoFrame Buffer does not take ownership of the RChunk. |
| TInt aOffsetInChunk | Offset from the beginning of the chunk for this buffer, in bytes. |
| IMPORT_C TUint8 * | Buffer | ( | ) | const |
Returns a pointer to buffer data as mapped to the current process s address space.
| IMPORT_C TInt | BufferId | ( | ) | const |
Returns the buffer identifier of the buffer. Buffer IDs are used to identify buffers.
| IMPORT_C TUncompressedVideoFormat | Format | ( | ) | const |
Returns the data format of the buffer. For YUV formats, typically only TUncompressedVideoFormat.iYuvFormat.iDataLayout and iPattern are valid.
| void | SetBufferStatus | ( | TBufferStatus | aStatus | ) |
Set buffer status.
| TBufferStatus aStatus | Buffer status set by video renderer |
| void | SetPresentationTime | ( | const TTime & | aTime | ) |
Set presentation time.
| const TTime & aTime | Presentation time |
| IMPORT_C TUint | Stride | ( | ) | const |
Returns the stride of the buffer. This is the number of bytes from the start of one pixel row to the next. The stride is commonly equal to bytes_per_pixel*width, but can be larger if the buffer requires padding. With planar YUV data the stride refers to luminance (Y) stride. Chrominance (U & V) stride is iStride/2.
Status used by video renderer
| EAvailable | |
| EUsedByClient | |
| EWaiting | |
| ESubmitted |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.