mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
interlace: rename copy_field()
It is actually copying both fields (to a single frame/buffer).
This commit is contained in:
parent
5ac018e949
commit
eb914c127d
1 changed files with 4 additions and 3 deletions
|
@ -786,7 +786,7 @@ gst_interlace_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
}
|
||||
|
||||
static void
|
||||
copy_field (GstInterlace * interlace, GstBuffer * dest, GstBuffer * src,
|
||||
copy_fields (GstInterlace * interlace, GstBuffer * dest, GstBuffer * src,
|
||||
int field_index)
|
||||
{
|
||||
GstVideoInfo *info = &interlace->info;
|
||||
|
@ -923,11 +923,12 @@ gst_interlace_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||
|
||||
output_buffer = gst_buffer_new_and_alloc (gst_buffer_get_size (buffer));
|
||||
/* take the first field from the stored frame */
|
||||
copy_field (interlace, output_buffer, interlace->stored_frame,
|
||||
copy_fields (interlace, output_buffer, interlace->stored_frame,
|
||||
interlace->field_index);
|
||||
interlace->stored_fields--;
|
||||
/* take the second field from the incoming buffer */
|
||||
copy_field (interlace, output_buffer, buffer, interlace->field_index ^ 1);
|
||||
copy_fields (interlace, output_buffer, buffer,
|
||||
interlace->field_index ^ 1);
|
||||
current_fields--;
|
||||
n_output_fields = 2;
|
||||
interlaced = TRUE;
|
||||
|
|
Loading…
Reference in a new issue