summaryrefslogtreecommitdiff
path: root/xine/osd_manager.h
blob: 5a5ec1e9ad007880c93267862d3c501c43eaa673 (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
/*
 * osd_manager.h:
 *
 * See the main source file 'xineliboutput.c' for copyright information and
 * how to reach the author.
 *
 * $Id: osd_manager.h,v 1.2 2013-01-15 20:33:29 phintuka Exp $
 *
 */

#ifndef XINELIBOUTPUT_OSD_MANAGER_H_
#define XINELIBOUTPUT_OSD_MANAGER_H_

/*
 * OSD manager executes OSD control messages from VDR.
 * - cache OSD data
 * - scale OSD when required
 * - re-scale OSD when video size changes
 * - generate xine overlay events
 */

struct osd_command_s;

typedef struct osd_manager_s osd_manager_t;

struct osd_manager_s {
  int  (*command)(osd_manager_t *, struct osd_command_s *, xine_stream_t *);
  void (*dispose)(osd_manager_t *, xine_stream_t *);

  void (*video_size_changed)(osd_manager_t *, xine_stream_t *, int width, int height);

  int  (*argb_supported)(xine_stream_t *);
};

osd_manager_t *init_osd_manager(void);


#endif /* XINELIBOUTPUT_OSD_MANAGER_H_ */