[MPlayer-dev-eng] [PATCH][RFC] video size change (realvideo)

Roberto Togni rxt at rtogni.it
Wed Nov 22 00:32:37 CET 2006


Hi all
This patch allows size changes during realvideo playback, samples in
real/size_change

The vd_realvideo.c part is ok, size change is limited to big->small,
it's assumed that the size in the rm container is the maximum size, and
all samples respects this (size change is known after the frame is
decoded by the binary codec, so if the picture is bigger than expected
mplayer is already sig11 because of mpi->plane[0] overflow when the
reise is checked). RealPlayer just rescale the smaller picture to the
big size, without changing the window size.

But I'm not sure about the vf.c vf_get_image() part. While is true that
there is no need to reallocate the memory buffer when the new mpi image
is smaller than the old one, there are a lot of other stuff that get
skipped with the reallocation (stride, alignement, and some vf() calls).
Does big->small resize works for other demuxers/codecs? Does anybody
knows how that mpi allocation code works and what are the minimal
things that have to be done on resize?
My simple solution is to always reallocate the buffer.

Ciao,
 Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: realsize.diff
Type: text/x-patch
Size: 1466 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061122/212db8fb/attachment.bin>


More information about the MPlayer-dev-eng mailing list