yadif.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * FFmpeg 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.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with FFmpeg; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef AVFILTER_YADIF_H
20 #define AVFILTER_YADIF_H
21 
22 #include "libavutil/pixdesc.h"
23 #include "avfilter.h"
24 
25 enum YADIFMode {
26  YADIF_MODE_SEND_FRAME = 0, ///< send 1 frame for each frame
27  YADIF_MODE_SEND_FIELD = 1, ///< send 1 frame for each field
28  YADIF_MODE_SEND_FRAME_NOSPATIAL = 2, ///< send 1 frame for each frame but skips spatial interlacing check
29  YADIF_MODE_SEND_FIELD_NOSPATIAL = 3, ///< send 1 frame for each field but skips spatial interlacing check
30 };
31 
33  YADIF_PARITY_TFF = 0, ///< top field first
34  YADIF_PARITY_BFF = 1, ///< bottom field first
35  YADIF_PARITY_AUTO = -1, ///< auto detection
36 };
37 
38 enum YADIFDeint {
39  YADIF_DEINT_ALL = 0, ///< deinterlace all frames
40  YADIF_DEINT_INTERLACED = 1, ///< only deinterlace frames marked as interlaced
41 };
42 
43 typedef struct YADIFContext {
44  const AVClass *class;
45 
49 
51 
56 
57  /**
58  * Required alignment for filter_line
59  */
60  void (*filter_line)(void *dst,
61  void *prev, void *cur, void *next,
62  int w, int prefs, int mrefs, int parity, int mode);
63  void (*filter_edges)(void *dst, void *prev, void *cur, void *next,
64  int w, int prefs, int mrefs, int parity, int mode);
65 
67  int eof;
70 } YADIFContext;
71 
72 void ff_yadif_init_x86(YADIFContext *yadif);
73 
74 #endif /* AVFILTER_YADIF_H */
This structure describes decoded (raw) audio or video data.
Definition: frame.h:76
external API header
send 1 frame for each frame but skips spatial interlacing check
Definition: yadif.h:28
int frame_pending
Definition: yadif.h:50
uint8_t * temp_line
Definition: yadif.h:68
void ff_yadif_init_x86(YADIFContext *yadif)
Definition: vf_yadif_init.c:62
output residual component w
AVFrame * cur
Definition: yadif.h:52
uint8_t
enum YADIFParity parity
Definition: yadif.h:47
AVFrame * next
Definition: yadif.h:53
bottom field first
Definition: yadif.h:34
send 1 frame for each field
Definition: yadif.h:27
AVFrame * prev
Definition: yadif.h:54
YADIFDeint
Definition: yadif.h:38
auto detection
Definition: yadif.h:35
enum YADIFMode mode
Definition: yadif.h:46
void(* filter_edges)(void *dst, void *prev, void *cur, void *next, int w, int prefs, int mrefs, int parity, int mode)
Definition: yadif.h:63
enum YADIFDeint deint
Definition: yadif.h:48
YADIFParity
Definition: yadif.h:32
int eof
Definition: yadif.h:67
typedef void(RENAME(mix_any_func_type))
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
Definition: pixdesc.h:55
AVFrame * out
Definition: yadif.h:55
Describe the class of an AVClass context structure.
Definition: log.h:50
send 1 frame for each field but skips spatial interlacing check
Definition: yadif.h:29
void(* filter_line)(void *dst, void *prev, void *cur, void *next, int w, int prefs, int mrefs, int parity, int mode)
Required alignment for filter_line.
Definition: yadif.h:60
YADIFMode
Definition: yadif.h:25
const AVPixFmtDescriptor * csp
Definition: yadif.h:66
deinterlace all frames
Definition: yadif.h:39
else dst[i][x+y *dst_stride[i]]
Definition: vf_mcdeint.c:160
send 1 frame for each frame
Definition: yadif.h:26
struct YADIFContext YADIFContext
int temp_line_size
Definition: yadif.h:69
only deinterlace frames marked as interlaced
Definition: yadif.h:40
top field first
Definition: yadif.h:33