mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
effectv: Remove get_unit_size implementations
The default on from GstVideoFilter handles this already.
This commit is contained in:
parent
e040ae4ffc
commit
44a822b29f
8 changed files with 0 additions and 185 deletions
|
@ -138,28 +138,6 @@ gst_agingtv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_agingtv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
|
||||
guint * size)
|
||||
{
|
||||
GstAgingTV *filter = GST_AGINGTV (btrans);
|
||||
GstStructure *structure;
|
||||
gboolean ret = FALSE;
|
||||
gint width, height;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (gst_structure_get_int (structure, "width", &width) &&
|
||||
gst_structure_get_int (structure, "height", &height)) {
|
||||
*size = width * height * 32 / 8;
|
||||
ret = TRUE;
|
||||
GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
|
||||
width, height);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline guint
|
||||
fastrand (void)
|
||||
{
|
||||
|
@ -465,7 +443,6 @@ gst_agingtv_class_init (GstAgingTVClass * klass)
|
|||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
|
||||
|
||||
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_agingtv_set_caps);
|
||||
trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_agingtv_get_unit_size);
|
||||
trans_class->transform = GST_DEBUG_FUNCPTR (gst_agingtv_transform);
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_agingtv_start);
|
||||
}
|
||||
|
|
|
@ -115,28 +115,6 @@ gst_dicetv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_dicetv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
|
||||
guint * size)
|
||||
{
|
||||
GstDiceTV *filter = GST_DICETV (btrans);
|
||||
GstStructure *structure;
|
||||
gboolean ret = FALSE;
|
||||
gint width, height;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (gst_structure_get_int (structure, "width", &width) &&
|
||||
gst_structure_get_int (structure, "height", &height)) {
|
||||
*size = width * height * 32 / 8;
|
||||
ret = TRUE;
|
||||
GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
|
||||
width, height);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline guint
|
||||
fastrand (void)
|
||||
{
|
||||
|
@ -329,7 +307,6 @@ gst_dicetv_class_init (GstDiceTVClass * klass)
|
|||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | GST_PARAM_CONTROLLABLE));
|
||||
|
||||
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_dicetv_set_caps);
|
||||
trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_dicetv_get_unit_size);
|
||||
trans_class->transform = GST_DEBUG_FUNCPTR (gst_dicetv_transform);
|
||||
}
|
||||
|
||||
|
|
|
@ -108,28 +108,6 @@ gst_edgetv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_edgetv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
|
||||
guint * size)
|
||||
{
|
||||
GstEdgeTV *filter = GST_EDGETV (btrans);
|
||||
GstStructure *structure;
|
||||
gboolean ret = FALSE;
|
||||
gint width, height;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (gst_structure_get_int (structure, "width", &width) &&
|
||||
gst_structure_get_int (structure, "height", &height)) {
|
||||
*size = width * height * 32 / 8;
|
||||
ret = TRUE;
|
||||
GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
|
||||
width, height);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
gst_edgetv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out)
|
||||
{
|
||||
|
@ -269,7 +247,6 @@ gst_edgetv_class_init (GstEdgeTVClass * klass)
|
|||
gobject_class->finalize = gst_edgetv_finalize;
|
||||
|
||||
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_edgetv_set_caps);
|
||||
trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_edgetv_get_unit_size);
|
||||
trans_class->transform = GST_DEBUG_FUNCPTR (gst_edgetv_transform);
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_edgetv_start);
|
||||
}
|
||||
|
|
|
@ -114,28 +114,6 @@ gst_quarktv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_quarktv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
|
||||
guint * size)
|
||||
{
|
||||
GstQuarkTV *filter = GST_QUARKTV (btrans);
|
||||
GstStructure *structure;
|
||||
gboolean ret = FALSE;
|
||||
gint width, height;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (gst_structure_get_int (structure, "width", &width) &&
|
||||
gst_structure_get_int (structure, "height", &height)) {
|
||||
*size = width * height * 32 / 8;
|
||||
ret = TRUE;
|
||||
GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
|
||||
width, height);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline guint
|
||||
fastrand (void)
|
||||
{
|
||||
|
@ -320,7 +298,6 @@ gst_quarktv_class_init (GstQuarkTVClass * klass)
|
|||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_quarktv_set_caps);
|
||||
trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_quarktv_get_unit_size);
|
||||
trans_class->transform = GST_DEBUG_FUNCPTR (gst_quarktv_transform);
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_quarktv_start);
|
||||
}
|
||||
|
|
|
@ -126,28 +126,6 @@ gst_revtv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_revtv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
|
||||
guint * size)
|
||||
{
|
||||
GstRevTV *filter = GST_REVTV (btrans);
|
||||
GstStructure *structure;
|
||||
gboolean ret = FALSE;
|
||||
gint width, height;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (gst_structure_get_int (structure, "width", &width) &&
|
||||
gst_structure_get_int (structure, "height", &height)) {
|
||||
*size = width * height * 32 / 8;
|
||||
ret = TRUE;
|
||||
GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
|
||||
width, height);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
gst_revtv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out)
|
||||
{
|
||||
|
@ -267,7 +245,6 @@ gst_revtv_class_init (GstRevTVClass * klass)
|
|||
1, 200, 50, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_revtv_set_caps);
|
||||
trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_revtv_get_unit_size);
|
||||
trans_class->transform = GST_DEBUG_FUNCPTR (gst_revtv_transform);
|
||||
}
|
||||
|
||||
|
|
|
@ -118,28 +118,6 @@ gst_shagadelictv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_shagadelictv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
|
||||
guint * size)
|
||||
{
|
||||
GstShagadelicTV *filter = GST_SHAGADELICTV (btrans);
|
||||
GstStructure *structure;
|
||||
gboolean ret = FALSE;
|
||||
gint width, height;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (gst_structure_get_int (structure, "width", &width) &&
|
||||
gst_structure_get_int (structure, "height", &height)) {
|
||||
*size = width * height * 32 / 8;
|
||||
ret = TRUE;
|
||||
GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
|
||||
width, height);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline guint
|
||||
fastrand (void)
|
||||
{
|
||||
|
@ -300,8 +278,6 @@ gst_shagadelictv_class_init (GstShagadelicTVClass * klass)
|
|||
gobject_class->finalize = gst_shagadelictv_finalize;
|
||||
|
||||
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_shagadelictv_set_caps);
|
||||
trans_class->get_unit_size =
|
||||
GST_DEBUG_FUNCPTR (gst_shagadelictv_get_unit_size);
|
||||
trans_class->transform = GST_DEBUG_FUNCPTR (gst_shagadelictv_transform);
|
||||
}
|
||||
|
||||
|
|
|
@ -119,28 +119,6 @@ gst_vertigotv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_vertigotv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
|
||||
guint * size)
|
||||
{
|
||||
GstVertigoTV *filter = GST_VERTIGOTV (btrans);
|
||||
GstStructure *structure;
|
||||
gboolean ret = FALSE;
|
||||
gint width, height;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (gst_structure_get_int (structure, "width", &width) &&
|
||||
gst_structure_get_int (structure, "height", &height)) {
|
||||
*size = width * height * 32 / 8;
|
||||
ret = TRUE;
|
||||
GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
|
||||
width, height);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_vertigotv_set_parms (GstVertigoTV * filter)
|
||||
{
|
||||
|
@ -334,7 +312,6 @@ gst_vertigotv_class_init (GstVertigoTVClass * klass)
|
|||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_vertigotv_start);
|
||||
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_vertigotv_set_caps);
|
||||
trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_vertigotv_get_unit_size);
|
||||
trans_class->transform = GST_DEBUG_FUNCPTR (gst_vertigotv_transform);
|
||||
}
|
||||
|
||||
|
|
|
@ -130,28 +130,6 @@ gst_warptv_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_warptv_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
|
||||
guint * size)
|
||||
{
|
||||
GstWarpTV *filter = GST_WARPTV (btrans);
|
||||
GstStructure *structure;
|
||||
gboolean ret = FALSE;
|
||||
gint width, height;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (gst_structure_get_int (structure, "width", &width) &&
|
||||
gst_structure_get_int (structure, "height", &height)) {
|
||||
*size = width * height * 32 / 8;
|
||||
ret = TRUE;
|
||||
GST_DEBUG_OBJECT (filter, "our frame size is %d bytes (%dx%d)", *size,
|
||||
width, height);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
initSinTable (GstWarpTV * filter)
|
||||
{
|
||||
|
@ -313,7 +291,6 @@ gst_warptv_class_init (GstWarpTVClass * klass)
|
|||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_warptv_start);
|
||||
trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_warptv_set_caps);
|
||||
trans_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_warptv_get_unit_size);
|
||||
trans_class->transform = GST_DEBUG_FUNCPTR (gst_warptv_transform);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue