annotate libmpdemux/mf.h @ 28511:db19e31a2c7c

Add a calc_src_dst_rects that calculates from window size, panscan etc. which part of the video source must be scaled onto which part of the window. Direct3D and (future) VDPAU need this, for XvMC it makes it easier to add cropping support and Xv is changed to keep the diff to XvMC small.
author reimar
date Thu, 12 Feb 2009 17:40:53 +0000
parents 4129c8cfa742
children d643e4643313
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19300
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
1
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25964
diff changeset
2 #ifndef MPLAYER_MF_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25964
diff changeset
3 #define MPLAYER_MF_H
19300
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
4
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
5 extern int mf_w;
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
6 extern int mf_h;
25964
cb07fc632de1 Change mf_fps to double
reimar
parents: 25535
diff changeset
7 extern double mf_fps;
19300
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
8 extern char * mf_type;
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
9
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
10 typedef struct
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
11 {
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
12 int curr_frame;
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
13 int nr_of_files;
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
14 char ** names;
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
15 } mf_t;
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
16
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
17 mf_t* open_mf(char * filename);
0c7ad1c632cc mf.[hc] belong to libmpdemux
ben
parents:
diff changeset
18
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25964
diff changeset
19 #endif /* MPLAYER_MF_H */