summaryrefslogtreecommitdiff
path: root/packages/mplayer/files/vo_pxa.h
blob: ee7825b76eac2ca91fdbf907030ad4fc7552215f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Video driver for PXA 27x Overlay 2, in conjunction with kernel driver
 * by Tim Chick <tim (DOT) chick (AT) csr (DOT) com>
 * (C) 2007
 */

#include <linux/fb.h>

#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>

typedef struct pxa_priv_s {
    uint8_t *fb_mem_base;
    int fd;
    int base_fd;
    struct fb_var_screeninfo my_fb_var;
    struct fb_fix_screeninfo my_fb_fix;
    struct fb_var_screeninfo base_orig_fb_var;
    int vm;
    uint32_t format;
    int src_width;
    int src_height;
} pxa_priv_t;

#define UNUSED(v) ((void)(v))

/* Internal API */
static int vo_pxa_query_format( uint32_t format );