[MPlayer-dev-eng] [PATCH] changes in vf_get_image semantics

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Tue Nov 23 08:57:15 CET 2004


Hi,

the attached patch modifies the *_get_image to make possible to specify 
an explicit horizontal and vertical alignment. This issue has already 
been discussed in the thread

http://mplayerhq.hu/pipermail/mplayer-dev-eng/2004-October/030502.html

The patch

1) renames vf_get_image to vf_get_image_aligned and adds two additional 
parameters, which specify alignment_bytecount-1 (only 2^n-1 are valid)

2) creates vf_get_image as wrappers calling vf_get_image_aligned with 
the proper alignment parameters - height_align=0, width_align=either 15 
or 0 depending on MP_IMGFLAG_ACCEPT_ALIGNED_STRIDE.

3) changes all (they are only a few) occurences of vf_get_image and 
mpcodecs_get_image with aligned dimensions to calls of 
_get_image_aligned with original dimension and explicit specification of 
the alignment.

Regards,
-- 
Jindrich Makovicka
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vf_explicit_align.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041123/4bac4b9c/attachment.asc>


More information about the MPlayer-dev-eng mailing list