diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-08-31 19:20:22 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-08-31 19:20:22 +0200 |
commit | 76c5a2b403e79bd9a76b2dcce1a30e601bd0a127 (patch) | |
tree | ada4989176c72968f26b24752f613b16bdf11fd9 /dxr3interface.c | |
parent | 34176db79c1d6bca5d4f76fc34f80e00565091e4 (diff) | |
download | vdr-plugin-dxr3-76c5a2b403e79bd9a76b2dcce1a30e601bd0a127.tar.gz vdr-plugin-dxr3-76c5a2b403e79bd9a76b2dcce1a30e601bd0a127.tar.bz2 |
add spuencoder implementation
move ClearOsd() from cDxr3Interface to cSpuEncoder class. Also make
method simpler to understand. Yet this method is not used.
Diffstat (limited to 'dxr3interface.c')
-rw-r--r-- | dxr3interface.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/dxr3interface.c b/dxr3interface.c index 7305aea..878503d 100644 --- a/dxr3interface.c +++ b/dxr3interface.c @@ -650,45 +650,6 @@ void cDxr3Interface::Resuscitation() } // ================================== -void cDxr3Interface::ClearOsd() -{ - encodedata ed; - int controlstart= 0; - int x1 = 0; - int& i = ed.count = 0; - - // display duration... - ed.data[i++]= 0x00; - ed.data[i++]= 0x00; //durration before turn on command occurs - //in 90000/1024 units - // x1 - ed.data[i++]= x1 >> 8; //since this is the last command block, this - ed.data[i++]= x1 & 0xff; //points back to itself - - - // 0x01: start displaying - ed.data[i++]= 0x02; - - // 0xFF: end sequence - ed.data[i++]= 0xFF; - if (!i&1) - { - ed.data[i++]= 0xff; - } - - // x0 - ed.data[2]= (controlstart) >> 8; - ed.data[3]= (controlstart) & 0xff; - - // packet size - ed.data[0]= i >> 8; - ed.data[1]= i & 0xff; - - WriteSpu((const uint8_t*) &ed, (int) ed.count); - ClearButton(); -} - -// ================================== void cDxr3Interface::WriteSpu(const uint8_t* pBuf, int length) { Lock(); |