Re: [PATCH][RFC] Run deinterlacer and decoder in separate threads

Roland Scheidegger <[email protected]> Wed, 16 May 2012 00:59:07 +0200
Newsgroups gmane.comp.video.xine.devel
Message-ID <[email protected]>
Didn't do any testing but I like the idea. I think though if the decoder
already does threaded decoding this (like h.264 though I'm sometimes
still seeing some trouble with that) won't really do much right?
I am not convinced that using threads for csc, pulldown, deinterlacing,
chroma filter is really the right way going forward. What makes these
operations slow is the memory traversal so handling them all at once
would make things way faster (in case of csc and deinterlacing it would
also increase the chroma quality a lot for combined deinterlace/csc at
least for deinterlacers doing bob/weave based on content, which means
you'd most likely would want to throw out the not terribly useful chroma
filter anyway for such setups so not much would be left for additional
threads...). Can't say much about pulldown, as currently it is totally
useless in a 50Hz world (not once in your lifetime will you see 3:2
pulldown which is the only thing it can handle), I guess though it might
not really be worth using a separate thread since it should be pretty
lightweight as it should only need to look at a fraction of all pixels
(even for more elaborate pulldown detection).

Roland

Am 15.05.2012 14:13, schrieb Petri Hintukainen:
> Hello,
> 
> Attached patch runs deinterlacer (tvtime plugin) and video decoder in
> separate threads.
> 
> It could be further improved by splitting deinterlacing to multiple
> threads, for example:
>  - pipelining: color space conversion, pulldown detection,
> deinterlacing, chroma filter, ...
>  - processing frames in slices
> 
> Usage:
> xine --post tvtime:threads=1
> 
> Not deeply tested ...
> 
> 
> - Petri
> 
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> 
> 
> 
> _______________________________________________
> xine-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xine-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/