pullup.h
Go to the documentation of this file.
1 /*
2  * This file is part of MPlayer.
3  *
4  * MPlayer 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  * MPlayer 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 MPlayer; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef MPLAYER_PULLUP_H
20 #define MPLAYER_PULLUP_H
21 
22 #define PULLUP_CPU_MMX 1
23 #define PULLUP_CPU_MMX2 2
24 #define PULLUP_CPU_3DNOW 4
25 #define PULLUP_CPU_3DNOWEXT 8
26 #define PULLUP_CPU_SSE 16
27 #define PULLUP_CPU_SSE2 32
28 
29 #define PULLUP_FMT_Y 1
30 #define PULLUP_FMT_YUY2 2
31 #define PULLUP_FMT_UYVY 3
32 #define PULLUP_FMT_RGB32 4
33 
35 {
36  int lock[2];
37  unsigned char **planes;
38 };
39 
41 {
42  int parity;
44  unsigned int flags;
45  int breaks;
46  int affinity;
47  int *diffs;
48  int *comb;
49  int *var;
50  struct pullup_field *prev, *next;
51 };
52 
54 {
55  int lock;
56  int length;
57  int parity;
58  struct pullup_buffer **ifields, *ofields[2];
60 };
61 
63 {
64  /* Public interface */
65  int format;
66  int nplanes;
67  int *bpp, *w, *h, *stride, *background;
68  unsigned int cpu;
69  int junk_left, junk_right, junk_top, junk_bottom;
70  int verbose;
74  /* Internal data */
75  struct pullup_field *first, *last, *head;
77  int nbuffers;
78  int (*diff)(unsigned char *, unsigned char *, int);
79  int (*comb)(unsigned char *, unsigned char *, int);
80  int (*var)(unsigned char *, unsigned char *, int);
81  int metric_w, metric_h, metric_len, metric_offset;
83 };
84 
85 
89 
90 void ff_pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity);
92 
94 void ff_pullup_pack_frame(struct pullup_context *c, struct pullup_frame *fr);
95 void ff_pullup_release_frame(struct pullup_frame *fr);
96 
101 
102 #endif /* MPLAYER_PULLUP_H */
int breaks
Definition: pullup.h:45
int format
Definition: pullup.h:65
void ff_pullup_flush_fields(struct pullup_context *c)
Definition: pullup.c:443
int stride
Definition: mace.c:144
struct pullup_buffer * buffer
Definition: pullup.h:59
struct pullup_frame * frame
Definition: pullup.h:82
int nbuffers
Definition: pullup.h:77
int metric_plane
Definition: pullup.h:71
struct pullup_field * prev
Definition: pullup.h:50
#define b
Definition: input.c:42
trying all byte sequences megabyte in length and selecting the best looking sequence will yield cases to try But first
struct pullup_buffer * ff_pullup_lock_buffer(struct pullup_buffer *b, int parity)
Definition: pullup.c:292
void ff_pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity)
Definition: pullup.c:416
int * var
Definition: pullup.h:49
int parity
Definition: pullup.h:42
void ff_pullup_preinit_context(struct pullup_context *c)
Definition: pullup.c:757
struct pullup_buffer * ff_pullup_get_buffer(struct pullup_context *c, int parity)
Definition: pullup.c:307
int metric_w
Definition: pullup.h:81
int parity
Definition: pullup.h:57
unsigned char ** planes
Definition: pullup.h:37
void ff_pullup_pack_frame(struct pullup_context *c, struct pullup_frame *fr)
Definition: pullup.c:714
int lock[2]
Definition: pullup.h:36
int length
Definition: pullup.h:56
int junk_top
Definition: pullup.h:69
int verbose
Definition: pullup.h:70
struct pullup_context * ff_pullup_alloc_context(void)
Definition: pullup.c:748
#define diff(a, as, b, bs)
Definition: vf_phase.c:80
void ff_pullup_init_context(struct pullup_context *c)
Definition: pullup.c:766
int strict_breaks
Definition: pullup.h:72
struct pullup_buffer * buffer
Definition: pullup.h:43
unsigned int cpu
Definition: pullup.h:68
void ff_pullup_release_frame(struct pullup_frame *fr)
Definition: pullup.c:732
void ff_pullup_release_buffer(struct pullup_buffer *b, int parity)
Definition: pullup.c:300
int * diffs
Definition: pullup.h:47
int * w
Definition: pullup.h:67
int lock
Definition: pullup.h:55
unsigned int flags
Definition: pullup.h:44
static double c[64]
int * comb
Definition: pullup.h:48
void ff_pullup_free_context(struct pullup_context *c)
Definition: pullup.c:809
struct pullup_field * last
Definition: pullup.h:75
int nplanes
Definition: pullup.h:66
p parity
Definition: vf_mcdeint.c:178
struct pullup_buffer * buffers
Definition: pullup.h:76
int strict_pairs
Definition: pullup.h:73
struct pullup_frame * ff_pullup_get_frame(struct pullup_context *c)
Definition: pullup.c:648
int affinity
Definition: pullup.h:46
struct pullup_field * next
Definition: pullup.h:50