mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
interlace: Re-indentation
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1349>
This commit is contained in:
parent
b53c1363f2
commit
1eeaee24d4
1 changed files with 9 additions and 10 deletions
|
@ -899,8 +899,8 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter)
|
||||||
gst_caps_features_remove (features, GST_CAPS_FEATURE_FORMAT_INTERLACED);
|
gst_caps_features_remove (features, GST_CAPS_FEATURE_FORMAT_INTERLACED);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_caps_set_simple (icaps, "interlace-mode", G_TYPE_STRING,
|
gst_caps_set_simple (icaps, "interlace-mode", G_TYPE_STRING, "progressive",
|
||||||
"progressive", NULL);
|
NULL);
|
||||||
|
|
||||||
/* Now add variants of the same caps with the interlace-mode and Interlaced
|
/* Now add variants of the same caps with the interlace-mode and Interlaced
|
||||||
* caps so we can operate in passthrough if needed. */
|
* caps so we can operate in passthrough if needed. */
|
||||||
|
@ -1057,8 +1057,8 @@ copy_field (GstInterlace * interlace, GstBuffer * src, int field_index)
|
||||||
GstBuffer *dest;
|
GstBuffer *dest;
|
||||||
|
|
||||||
dest =
|
dest =
|
||||||
gst_buffer_new_allocate (NULL,
|
gst_buffer_new_allocate (NULL, GST_VIDEO_INFO_SIZE (&interlace->out_info),
|
||||||
GST_VIDEO_INFO_SIZE (&interlace->out_info), NULL);
|
NULL);
|
||||||
|
|
||||||
if (!gst_video_frame_map (&dframe, &interlace->out_info, dest, GST_MAP_WRITE))
|
if (!gst_video_frame_map (&dframe, &interlace->out_info, dest, GST_MAP_WRITE))
|
||||||
goto dest_map_failed;
|
goto dest_map_failed;
|
||||||
|
@ -1094,8 +1094,7 @@ copy_field (GstInterlace * interlace, GstBuffer * src, int field_index)
|
||||||
return dest;
|
return dest;
|
||||||
dest_map_failed:
|
dest_map_failed:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (interlace, CORE, FAILED,
|
GST_ELEMENT_ERROR (interlace, CORE, FAILED, ("Failed to write map buffer"),
|
||||||
("Failed to write map buffer"),
|
|
||||||
("Failed to map dest buffer for field %d", field_index));
|
("Failed to map dest buffer for field %d", field_index));
|
||||||
gst_buffer_unref (dest);
|
gst_buffer_unref (dest);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -1148,8 +1147,8 @@ gst_interlace_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
||||||
GST_BUFFER_FLAGS (buffer),
|
GST_BUFFER_FLAGS (buffer),
|
||||||
(GST_BUFFER_FLAGS (buffer) & GST_VIDEO_BUFFER_FLAG_TFF) ? "tff" : "",
|
(GST_BUFFER_FLAGS (buffer) & GST_VIDEO_BUFFER_FLAG_TFF) ? "tff" : "",
|
||||||
(GST_BUFFER_FLAGS (buffer) & GST_VIDEO_BUFFER_FLAG_RFF) ? "rff" : "",
|
(GST_BUFFER_FLAGS (buffer) & GST_VIDEO_BUFFER_FLAG_RFF) ? "rff" : "",
|
||||||
(GST_BUFFER_FLAGS (buffer) & GST_VIDEO_BUFFER_FLAG_ONEFIELD) ?
|
(GST_BUFFER_FLAGS (buffer) & GST_VIDEO_BUFFER_FLAG_ONEFIELD) ? "onefield"
|
||||||
"onefield" : "");
|
: "");
|
||||||
|
|
||||||
if (interlace->passthrough) {
|
if (interlace->passthrough) {
|
||||||
return gst_pad_push (interlace->srcpad, buffer);
|
return gst_pad_push (interlace->srcpad, buffer);
|
||||||
|
@ -1275,8 +1274,8 @@ gst_interlace_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
||||||
|
|
||||||
if (!alternate) {
|
if (!alternate) {
|
||||||
g_assert (!output_buffer2);
|
g_assert (!output_buffer2);
|
||||||
gst_interlace_decorate_buffer (interlace, output_buffer,
|
gst_interlace_decorate_buffer (interlace, output_buffer, n_output_fields,
|
||||||
n_output_fields, interlaced);
|
interlaced);
|
||||||
} else {
|
} else {
|
||||||
g_assert (output_buffer2);
|
g_assert (output_buffer2);
|
||||||
gst_interlace_decorate_buffer_ts (interlace, output_buffer,
|
gst_interlace_decorate_buffer_ts (interlace, output_buffer,
|
||||||
|
|
Loading…
Reference in a new issue