GstBaseTransform

GstBaseTransform —

Synopsis


#include <gst/base/gstbasetransform.h>


            GstBaseTransform;
gboolean    gst_base_transform_is_passthrough
                                            (GstBaseTransform *trans);
void        gst_base_transform_set_passthrough
                                            (GstBaseTransform *trans,
                                             gboolean passthrough);
gboolean    gst_base_transform_is_in_place  (GstBaseTransform *trans);
void        gst_base_transform_set_in_place (GstBaseTransform *trans,
                                             gboolean in_place);
#define     GST_BASE_TRANSFORM_SINK_NAME
#define     GST_BASE_TRANSFORM_SRC_NAME


Description

Details

GstBaseTransform

typedef struct {
  GstElement	 element;
} GstBaseTransform;

The opaque GstBaseTransform data structure.


gst_base_transform_is_passthrough ()

gboolean    gst_base_transform_is_passthrough
                                            (GstBaseTransform *trans);

See if trans is configured as a passthrough transform.

trans : the GstBaseTransform to query
Returns : TRUE is the transform is configured in passthrough mode. MT safe.

gst_base_transform_set_passthrough ()

void        gst_base_transform_set_passthrough
                                            (GstBaseTransform *trans,
                                             gboolean passthrough);

Set passthrough mode for this filter by default. This is mostly useful for filters that do not care about negotiation.

Always TRUE for filters which don't implement either a transform or transform_ip method.

MT safe.

trans : the GstBaseTransform to set
passthrough : boolean indicating passthrough mode.

gst_base_transform_is_in_place ()

gboolean    gst_base_transform_is_in_place  (GstBaseTransform *trans);

See if trans is configured as a in_place transform.

trans : the GstBaseTransform to query
Returns : TRUE is the transform is configured in in_place mode. MT safe.

gst_base_transform_set_in_place ()

void        gst_base_transform_set_in_place (GstBaseTransform *trans,
                                             gboolean in_place);

Determines whether a non-writable buffer will be copied before passing to the transform_ip function.

  • Always TRUE if no transform function is implemented.
  • Always FALSE if ONLY transform_ip function is implemented.

MT safe.

trans : the GstBaseTransform to modify
in_place : Boolean value indicating that we would like to operate on in_place buffers.

GST_BASE_TRANSFORM_SINK_NAME

#define GST_BASE_TRANSFORM_SINK_NAME	"sink"

the name of the templates for the sink pad


GST_BASE_TRANSFORM_SRC_NAME

#define GST_BASE_TRANSFORM_SRC_NAME	"src"

the name of the templates for the source pad