diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-06-13 01:48:09 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-06-13 01:48:09 +0000 |
commit | d349cabadd8f4b3530a9ae7049faa3f11387eab8 (patch) | |
tree | 8d6e84bc870bc7473ea55e18bf3b58062251c59d /src/post/deinterlace/pulldown.h | |
parent | a6b05cacbf52dd3b3b7aa4974d81e2221e203097 (diff) | |
download | xine-lib-d349cabadd8f4b3530a9ae7049faa3f11387eab8.tar.gz xine-lib-d349cabadd8f4b3530a9ae7049faa3f11387eab8.tar.bz2 |
new deinterlacer plugin based on tvtime
(please report if compilation breaks on non-x86 plataform)
see xine-devel for more information
CVS patchset: 5032
CVS date: 2003/06/13 01:48:09
Diffstat (limited to 'src/post/deinterlace/pulldown.h')
-rw-r--r-- | src/post/deinterlace/pulldown.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/post/deinterlace/pulldown.h b/src/post/deinterlace/pulldown.h new file mode 100644 index 000000000..197ec84be --- /dev/null +++ b/src/post/deinterlace/pulldown.h @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2001, 2002, 2003 Billy Biggs <vektor@dumbterm.net>. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef PULLDOWN_H_INCLUDED +#define PULLDOWN_H_INCLUDED + +#include <stdint.h> +#include "speedy.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define PULLDOWN_SEQ_AA (1<<0) /* next - prev */ +#define PULLDOWN_SEQ_AB (1<<1) /* prev - next */ +#define PULLDOWN_SEQ_BC (1<<2) /* prev - next */ +#define PULLDOWN_SEQ_CC (1<<3) /* next - prev */ +#define PULLDOWN_SEQ_DD (1<<4) /* next - prev */ + +#define PULLDOWN_ACTION_NEXT_PREV (1<<0) /* next - prev */ +#define PULLDOWN_ACTION_PREV_NEXT (1<<1) /* prev - next */ + +/** + * Returns 1 if the source is the previous field, 0 if it is + * the next field, for the given action. + */ +int pulldown_source( int action, int bottom_field ); + +int determine_pulldown_offset( int top_repeat, int bot_repeat, int tff, int last_offset ); +int determine_pulldown_offset_history( int top_repeat, int bot_repeat, int tff, int *realbest ); +int determine_pulldown_offset_history_new( int top_repeat, int bot_repeat, int tff, int predicted ); +int determine_pulldown_offset_short_history_new( int top_repeat, int bot_repeat, int tff, int predicted ); +int determine_pulldown_offset_dalias( pulldown_metrics_t *old_peak, pulldown_metrics_t *old_relative, + pulldown_metrics_t *old_mean, pulldown_metrics_t *new_peak, + pulldown_metrics_t *new_relative, pulldown_metrics_t *new_mean ); + +void diff_factor_packed422_frame( pulldown_metrics_t *peak, pulldown_metrics_t *rel, pulldown_metrics_t *mean, + uint8_t *old, uint8_t *new, int w, int h, int os, int ns ); + +int pulldown_drop( int action, int bottom_field ); + +#ifdef __cplusplus +}; +#endif +#endif /* PULLDOWN_H_INCLUDED */ |