[mythtv] Ticket #4872: Detect if video is letterboxed and switch to corect fill mode
Mårten Bohlin
mabo at mochc.net
Mon Mar 17 12:21:30 UTC 2008
On Wed, Mar 5, 2008 at 8:42 PM, MythTV <mythtv at cvs.mythtv.org> wrote:
> #4872: Detect if video is letterboxed and switch to corect fill mode
> -------------------------------------+--------------------------------------
> Reporter: Mårten <mabo at mochc.net> | Owner: ijr
> Type: enhancement | Status: new
> Priority: minor | Milestone: unknown
> Component: mythtv | Version: 0.21-fixes
> Severity: medium | Mlocked: 0
> -------------------------------------+--------------------------------------
Some comments about the new version of the patch (version 6).
I now do the detection on the pre-buffered frames. And this give me
two advantages:
* Switches that are very shorter than the amount of pre-buffered
frames are removed. This makes it smoother to watch. On my setup there
seems to be about one second of pre-buffered frames.
* The switch can be done almost at the exact frame where the switch
is detected. This also makes it look much better.
The cons is that I have to write multi-threaded code. Something that I
have not done i C before. I do not know how expensive locking a QMutex
is considered to be. So I have tried to keep that to a minimum.
So please try it out and let me know if it works.
Mårten
More information about the mythtv-dev
mailing list