|
|
|
class TCodecProcessResult;
Indicates the result of processing data from the source buffer to a destination buffer and provides functions to compare the result code.
Defined in TCodecProcessResult:
EDstNotFilledCould not fill the destination buffer because the source buffer has been emptiedEEndOfDataCodec came across an end of data.EProcessCompleteThe codec successfully has completed its processing.EProcessCompleteRepositionRequestAs 'EFrameComplete' but also requests a call to GetNewDataPosition.EProcessErrorAn error occured.EProcessIncompleteCould not empty the source buffer because the destination buffer became full.EProcessIncompleteRepositionRequestAs 'EFrameIncomplete' but also requests a call to GetNewDataPosition.TCodecProcessResult()Default constructor.TCodecProcessResultStatusFlag to track the codec's processing status.iDstBytesAddedThe number of bytes added to the destination buffer.iSrcBytesProcessedThe number of source bytes processed.iStatusThe codec's processing status.operator!=(const TCodecProcessResultStatus)constOverloaded operator to test inequality.operator==(const TCodecProcessResultStatus)constOverloaded operator to test equality.inline TBool operator==(const TCodecProcessResultStatus aStatus) const;
Overloaded operator to test equality.
|
|
inline TBool operator!=(const TCodecProcessResultStatus aStatus) const;
Overloaded operator to test inequality.
|
|
TCodecProcessResultStatus
Flag to track the codec's processing status.
|
TCodecProcessResultStatus iStatus;
The codec's processing status.
TCodecProcessResult::TCodecProcessResultStatusFlag to track the codec's processing status.TUint iSrcBytesProcessed;
The number of source bytes processed.
The number of bytes of source data that have been processed.
A codec should set this, and iDstBytesAdded, to indicate the source bytes processed for a particular call (i.e. not the total number of source bytes processed or destination bytes added). The codec should also ensure that the length of the destination buffer matches the length of the processed data in the destination buffer. Note that the codec should not reallocate the maximum length of the destination buffer.
TUint iDstBytesAdded;
The number of bytes added to the destination buffer.
A codec should set this, and iSrcBytesProcessed, to indicate the source bytes processed for a particular call (i.e. not the total number of source bytes processed or destination bytes added). The codec should also ensure that the length of the destination buffer matches the length of the processed data in the destination buffer. Note that the codec should not reallocate the maximum length of the destination buffer.