[mythtv-commits] mythtv commit: r27381 by markk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Tue Nov 30 03:32:39 UTC 2010


      Author: markk
        Date: 2010-11-30 03:32:38 +0000 (Tue, 30 Nov 2010)
New Revision: 27381
   Changeset: http://svn.mythtv.org/trac/changeset/27381

Log:

Refactor TeletextDecoder and TeletextScreen and add a new TeletextReader
class.

This follows the approach used in the other subtitle and caption classes
whereby the screen object handles OSD representation of the data, the
reader object holds the state and data and the decoder object feeds new
data into the reader.

This simplifies setup and initialisation of the teletext objects and
removes the requirement to lock the OSD from the decoder, which was
causing endless problems.

The previous behaviour of always decoding teletext packets is also
reinstated which radically improves responsiveness. Actually decoding
and parsing the packets is trivial for a modern processor and hence
should have no impact on performance.

I will backport to release-0-24-fixes in a few days if there are no
reported problems.

Refs #9271


Added:

   trunk/mythtv/libs/libmythtv/teletextreader.cpp
   trunk/mythtv/libs/libmythtv/teletextreader.h

Modified:

   trunk/mythtv/libs/libmythtv/avformatdecoder.cpp
   trunk/mythtv/libs/libmythtv/avformatdecoder.h
   trunk/mythtv/libs/libmythtv/decoderbase.h
   trunk/mythtv/libs/libmythtv/libmythtv.pro
   trunk/mythtv/libs/libmythtv/mythplayer.cpp
   trunk/mythtv/libs/libmythtv/mythplayer.h
   trunk/mythtv/libs/libmythtv/teletextdecoder.cpp
   trunk/mythtv/libs/libmythtv/teletextdecoder.h
   trunk/mythtv/libs/libmythtv/teletextscreen.cpp
   trunk/mythtv/libs/libmythtv/teletextscreen.h




More information about the mythtv-commits mailing list