[Scummvm-devel] VideoPlayer improvement: video positioning.
Vladimir Menshakov
whoozle at yandex.ru
Sun Jan 10 12:06:19 CET 2010
VideoPlayer renders video in the center of the screen which makes post-processing more complicated as it should be :)
I see two possible solutions:
1) Remove postProcess(byte *) and replace it with virtual method "render" or something. VideoPlayer's default implementation will do copyFrameToBuffer(centerx, centery).
2) Allow manual _frameX/Y modification via other method/extended arguments.
Real-world example: I have to deinterlace video. Modifying pixel data in center of the screen more complicated than if it was rendered in my buffer or aligned to the screen's top/bottom and so on. Or I could copy all video-render cycle in my class and not using VideoPlayer at all - but I will have to merge changes from VideoPlayer constantly. :(
More information about the Scummvm-devel
mailing list