}
/**
- * gst_v4l2_object_setup_format:
+ * gst_v4l2_object_acquire_format:
* @v4l2object the object
* @info a GstVideoInfo to be filled
* @align a GstVideoAlignment to be filled
* Setup the format base on the currently configured format. This is useful in
* decoder or encoder elements where the output format is dictated by the
* input.
+ * Acquire the driver choosen format. This is useful in decoder or encoder elements where
+ * the output format is choosen by the HW.
*
* Returns: %TRUE on success, %FALSE on failure.
*/
gboolean
-gst_v4l2_object_setup_format (GstV4l2Object * v4l2object,
- GstVideoInfo * info, GstVideoAlignment * align)
+gst_v4l2_object_acquire_format (GstV4l2Object * v4l2object, GstVideoInfo * info,
+ GstVideoAlignment * align)
{
struct v4l2_fmtdesc *fmtdesc;
struct v4l2_format fmt;
GstCaps * gst_v4l2_object_get_caps (GstV4l2Object * v4l2object,
GstCaps * filter);
-gboolean gst_v4l2_object_setup_format (GstV4l2Object * v4l2object,
- GstVideoInfo * info,
- GstVideoAlignment * align);
-
+gboolean gst_v4l2_object_acquire_format (GstV4l2Object * v4l2object,
+ GstVideoInfo * info,
+ GstVideoAlignment * align);
+
gboolean gst_v4l2_object_decide_allocation (GstV4l2Object * v4l2object,
GstQuery * query);
gst_buffer_unref (codec_data);
- if (!gst_v4l2_object_setup_format (self->v4l2capture, &info, &self->align))
+ if (!gst_v4l2_object_acquire_format (self->v4l2capture, &info))
goto not_negotiated;
output_state = gst_video_decoder_set_output_state (decoder,