dx50 = DX50
[mplayer/glamo.git] / libmpcodecs / pullup.h
bloba61bd76befcc00e82687bc1690333723bb97bab3
3 #define PULLUP_CPU_MMX 1
4 #define PULLUP_CPU_MMX2 2
5 #define PULLUP_CPU_3DNOW 4
6 #define PULLUP_CPU_3DNOWEXT 8
7 #define PULLUP_CPU_SSE 16
8 #define PULLUP_CPU_SSE2 32
10 #define PULLUP_FMT_Y 1
11 #define PULLUP_FMT_YUY2 2
12 #define PULLUP_FMT_UYVY 3
13 #define PULLUP_FMT_RGB32 4
15 struct pullup_buffer
17 int lock[2];
18 unsigned char **planes;
21 struct pullup_field
23 int parity;
24 struct pullup_buffer *buffer;
25 unsigned int flags;
26 int breaks;
27 int affinity;
28 int *diffs;
29 int *licomb;
30 struct pullup_field *prev, *next;
33 struct pullup_frame
35 int lock;
36 int length;
37 int parity;
38 struct pullup_buffer **fields;
39 struct pullup_buffer *buffer;
42 struct pullup_context
44 /* Public interface */
45 int format;
46 int nplanes;
47 int *bpp, *w, *h, *stride, *background;
48 unsigned int cpu;
49 int junk_left, junk_right, junk_top, junk_bottom;
50 int verbose;
51 int metric_plane;
52 /* Internal data */
53 struct pullup_field *first, *last, *head;
54 struct pullup_buffer *buffers;
55 int nbuffers;
56 int (*diff)(unsigned char *, unsigned char *, int);
57 int (*licomb)(unsigned char *, unsigned char *, int);
58 int metric_w, metric_h, metric_len, metric_offset;
59 struct pullup_frame *frame;
63 struct pullup_buffer *pullup_lock_buffer(struct pullup_buffer *b, int parity);
64 void pullup_release_buffer(struct pullup_buffer *b, int parity);
65 struct pullup_buffer *pullup_get_buffer(struct pullup_context *c, int parity);
67 void pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity);
68 void pullup_flush_fields(struct pullup_context *c);
70 struct pullup_frame *pullup_get_frame(struct pullup_context *c);
71 void pullup_pack_frame(struct pullup_context *c, struct pullup_frame *fr);
72 void pullup_release_frame(struct pullup_frame *fr);
74 struct pullup_context *pullup_alloc_context();
75 void pullup_preinit_context(struct pullup_context *c);
76 void pullup_init_context(struct pullup_context *c);
77 void pullup_free_context(struct pullup_context *c);