AP4_Processor::FragmentHandler Class Reference
Abstract class that defines the interface implemented by concrete fragment handlers. More...
#include <Ap4Processor.h>
Public Member Functions | |
virtual | ~FragmentHandler () |
Default destructor. | |
virtual AP4_Result | ProcessFragment () |
A fragment handler may override this method if it needs to modify the fragment atoms before processing the fragment samples. | |
virtual AP4_Result | FinishFragment () |
A fragment handler may override this method if it needs to modify the fragment atoms after processing the fragment samples. | |
virtual AP4_Size | GetProcessedSampleSize (AP4_Sample &sample) |
Returns the size of a sample after processing. | |
virtual AP4_Result | ProcessSample (AP4_DataBuffer &data_in, AP4_DataBuffer &data_out)=0 |
Process the data of one sample. |
Detailed Description
Abstract class that defines the interface implemented by concrete fragment handlers.
A fragment handler is responsible for processing a fragment and its media samples.
Definition at line 118 of file Ap4Processor.h.
Constructor & Destructor Documentation
virtual AP4_Processor::FragmentHandler::~FragmentHandler | ( | ) | [inline, virtual] |
Default destructor.
Definition at line 123 of file Ap4Processor.h.
Member Function Documentation
virtual AP4_Result AP4_Processor::FragmentHandler::FinishFragment | ( | ) | [inline, virtual] |
A fragment handler may override this method if it needs to modify the fragment atoms after processing the fragment samples.
NOTE: this method MUST NOT change the size of any of the atoms.
Definition at line 136 of file Ap4Processor.h.
References AP4_ERROR_NOT_SUPPORTED.
virtual AP4_Size AP4_Processor::FragmentHandler::GetProcessedSampleSize | ( | AP4_Sample & | sample | ) | [inline, virtual] |
Returns the size of a sample after processing.
- Parameters:
-
sample Sample of which the processed size is requested.
- Returns:
- Size of the sample data after processing.
Definition at line 143 of file Ap4Processor.h.
References AP4_Sample::GetSize().
virtual AP4_Result AP4_Processor::FragmentHandler::ProcessFragment | ( | ) | [inline, virtual] |
A fragment handler may override this method if it needs to modify the fragment atoms before processing the fragment samples.
Definition at line 129 of file Ap4Processor.h.
References AP4_SUCCESS.
virtual AP4_Result AP4_Processor::FragmentHandler::ProcessSample | ( | AP4_DataBuffer & | data_in, | |
AP4_DataBuffer & | data_out | |||
) | [pure virtual] |
Process the data of one sample.
- Parameters:
-
data_in Data buffer with the data of the sample to process. data_out Data buffer in which the processed sample data is returned.
The documentation for this class was generated from the following file:
Generated on Thu May 13 16:37:44 2010 for Bento4 MP4 SDK by
