1
/*****************************************************************
5
Copyright (c) 2005 by Burkhard Plaum - plaum@ipf.uni-stuttgart.de
7
http://gmerlin.sourceforge.net
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
18
*****************************************************************/
22
#include <gavl/gavl.h>
24
#include <deinterlace.h>
26
static void deinterlace_copy(gavl_video_deinterlacer_t * d,
27
gavl_video_frame_t * input_frame,
28
gavl_video_frame_t * output_frame)
30
fprintf(stderr, "DEINTERLACE_COPY\n");
32
gavl_video_frame_get_field(d->format.pixelformat,
35
(d->opt.deinterlace_drop_mode ==
36
GAVL_DEINTERLACE_DROP_TOP) ? 1 : 0);
38
/* Dst field (even) */
39
gavl_video_frame_get_field(d->format.pixelformat,
42
gavl_video_frame_copy(&d->half_height_format,
43
d->dst_field, d->src_field);
46
gavl_video_frame_get_field(d->format.pixelformat,
49
gavl_video_frame_copy(&d->half_height_format,
50
d->dst_field, d->src_field);
54
gavl_video_deinterlace_func
55
gavl_find_deinterlacer_copy_c(const gavl_video_options_t * opt,
56
const gavl_video_format_t * format)
58
return deinterlace_copy;