summaryrefslogtreecommitdiffstats
path: root/libvo/old_vo_wrapper.c
blob: b52622321a57a7c66f99711abda82e9e9c87139e (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
 * This file is part of MPlayer.
 *
 * MPlayer 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 of the License, or
 * (at your option) any later version.
 *
 * MPlayer 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 MPlayer; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */


#include <stdint.h>
#include "old_vo_wrapper.h"
#include "video_out.h"

int old_vo_preinit(struct vo *vo, const char *arg)
{
    return vo->driver->old_functions->preinit(arg);
}


int old_vo_config(struct vo *vo, uint32_t width, uint32_t height,
                         uint32_t d_width, uint32_t d_height,
                         uint32_t flags, char *title, uint32_t format)
{
    return vo->driver->old_functions->config(width, height, d_width,
                                             d_height, flags, title, format);
}


int old_vo_control(struct vo *vo, uint32_t request, void *data)
{
    return vo->driver->old_functions->control(request, data);
}


int old_vo_draw_frame(struct vo *vo, uint8_t *src[])
{
    return vo->driver->old_functions->draw_frame(src);
}


int old_vo_draw_slice(struct vo *vo, uint8_t *src[], int stride[],
                             int w, int h, int x, int y)
{
    return vo->driver->old_functions->draw_slice(src, stride, w, h, x, y);
}


void old_vo_draw_osd(struct vo *vo)
{
    vo->driver->old_functions->draw_osd();
}


void old_vo_flip_page(struct vo *vo)
{
    vo->driver->old_functions->flip_page();
}


void old_vo_check_events(struct vo *vo)
{
    vo->driver->old_functions->check_events();
}


void old_vo_uninit(struct vo *vo)
{
    vo->driver->old_functions->uninit();
}