GstBaseTransformClass

Subclasses can override any of the available virtual methods or not, as needed. At minimum either transform or transform_ip need to be overridden. If the element can overwrite the input data with the results (data is of the same type and quantity) it should provide transform_ip.

struct GstBaseTransformClass {
void*[18] GstReserved;
}

Members

Variables

acceptCaps
int function(GstBaseTransform* trans, GstPadDirection direction, GstCaps* caps) acceptCaps;
beforeTransform
void function(GstBaseTransform* trans, GstBuffer* buffer) beforeTransform;
copyMetadata
int function(GstBaseTransform* trans, GstBuffer* input, GstBuffer* outbuf) copyMetadata;
decideAllocation
int function(GstBaseTransform* trans, GstQuery* query) decideAllocation;
filterMeta
int function(GstBaseTransform* trans, GstQuery* query, GType api, GstStructure* params) filterMeta;
fixateCaps
GstCaps* function(GstBaseTransform* trans, GstPadDirection direction, GstCaps* caps, GstCaps* othercaps) fixateCaps;
generateOutput
GstFlowReturn function(GstBaseTransform* trans, GstBuffer** outbuf) generateOutput;
getUnitSize
int function(GstBaseTransform* trans, GstCaps* caps, size_t* size) getUnitSize;
parentClass
GstElementClass parentClass;

Element parent class

passthroughOnSameCaps
bool passthroughOnSameCaps;

If set to TRUE, passthrough mode will be automatically enabled if the caps are the same. Set to FALSE by default.

prepareOutputBuffer
GstFlowReturn function(GstBaseTransform* trans, GstBuffer* input, GstBuffer** outbuf) prepareOutputBuffer;
proposeAllocation
int function(GstBaseTransform* trans, GstQuery* decideQuery, GstQuery* query) proposeAllocation;
query
int function(GstBaseTransform* trans, GstPadDirection direction, GstQuery* query) query;
setCaps
int function(GstBaseTransform* trans, GstCaps* incaps, GstCaps* outcaps) setCaps;
sinkEvent
int function(GstBaseTransform* trans, GstEvent* event) sinkEvent;
srcEvent
int function(GstBaseTransform* trans, GstEvent* event) srcEvent;
start
int function(GstBaseTransform* trans) start;
stop
int function(GstBaseTransform* trans) stop;
submitInputBuffer
GstFlowReturn function(GstBaseTransform* trans, int isDiscont, GstBuffer* input) submitInputBuffer;
transform
GstFlowReturn function(GstBaseTransform* trans, GstBuffer* inbuf, GstBuffer* outbuf) transform;
transformCaps
GstCaps* function(GstBaseTransform* trans, GstPadDirection direction, GstCaps* caps, GstCaps* filter) transformCaps;
transformIp
GstFlowReturn function(GstBaseTransform* trans, GstBuffer* buf) transformIp;
transformIpOnPassthrough
bool transformIpOnPassthrough;

If set to TRUE, transform_ip will be called in passthrough mode. The passed buffer might not be writable. When FALSE, neither transform nor transform_ip will be called in passthrough mode. Set to TRUE by default.

transformMeta
int function(GstBaseTransform* trans, GstBuffer* outbuf, GstMeta* meta, GstBuffer* inbuf) transformMeta;
transformSize
int function(GstBaseTransform* trans, GstPadDirection direction, GstCaps* caps, size_t size, GstCaps* othercaps, size_t* othersize) transformSize;