annotate libmpcodecs/vf_scale.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 bbb6ebec87a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10233
35f52ad860a0 vf_scale.h & related cleanup & some small warning fix by dominik
michael
parents:
diff changeset
1 //GPL
35f52ad860a0 vf_scale.h & related cleanup & some small warning fix by dominik
michael
parents:
diff changeset
2
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
3 #ifndef MPLAYER_VF_SCALE_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
4 #define MPLAYER_VF_SCALE_H
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 17566
diff changeset
5
17566
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 10233
diff changeset
6 int get_sws_cpuflags(void);
10233
35f52ad860a0 vf_scale.h & related cleanup & some small warning fix by dominik
michael
parents:
diff changeset
7 struct SwsContext *sws_getContextFromCmdLine(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat);
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 17566
diff changeset
8
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
9 #endif /* MPLAYER_VF_SCALE_H */