Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
527df8b8
Commit
527df8b8
authored
Mar 27, 2014
by
Nicolas Dufresne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2transform: Add propose_allocation
This should remove 1 copy between the decoder and the transform.
parent
0488984f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
sys/v4l2/gstv4l2transform.c
sys/v4l2/gstv4l2transform.c
+7
-9
No files found.
sys/v4l2/gstv4l2transform.c
View file @
527df8b8
...
...
@@ -316,8 +316,6 @@ activate_failed:
return
GST_FLOW_ERROR
;
}
/* TODO */
#if 0
static
gboolean
gst_v4l2_transform_propose_allocation
(
GstBaseTransform
*
trans
,
GstQuery
*
decide_query
,
GstQuery
*
query
)
...
...
@@ -325,14 +323,17 @@ gst_v4l2_transform_propose_allocation (GstBaseTransform * trans,
GstV4l2Transform
*
self
=
GST_V4L2_TRANSFORM
(
trans
);
gboolean
ret
=
FALSE
;
/* FIXME propose alloc this need to be moved from src to v4l2object */
if (gst_v4l2_object_propose_allocation (self->v4l2output, query))
if
(
decide_query
==
NULL
)
ret
=
TRUE
;
else
ret
=
gst_v4l2_object_propose_allocation
(
self
->
v4l2output
,
query
);
if
(
ret
)
ret
=
GST_BASE_TRANSFORM_CLASS
(
parent_class
)
->
propose_allocation
(
trans
,
query);
decide_query
,
query
);
return
ret
;
}
#endif
/* copies the given caps */
static
GstCaps
*
...
...
@@ -604,11 +605,8 @@ gst_v4l2_transform_class_init (GstV4l2TransformClass * klass)
GST_DEBUG_FUNCPTR
(
gst_v4l2_transform_sink_event
);
base_transform_class
->
decide_allocation
=
GST_DEBUG_FUNCPTR
(
gst_v4l2_transform_decide_allocation
);
/* TODO */
#if 0
base_transform_class
->
propose_allocation
=
GST_DEBUG_FUNCPTR
(
gst_v4l2_transform_propose_allocation
);
#endif
base_transform_class
->
transform_caps
=
GST_DEBUG_FUNCPTR
(
gst_v4l2_transform_transform_caps
);
base_transform_class
->
fixate_caps
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment