1 #ifndef __lib_dvb_radiotext_h
2 #define __lib_dvb_radiotext_h
4 #include <lib/base/object.h>
5 #include <lib/dvb/idvb.h>
6 #include <lib/dvb/pesparse.h>
7 #include <lib/gdi/gpixmap.h>
9 class eDVBRdsDecoder: public iObject, public ePESParser, public Object
11 DECLARE_REF(eDVBRdsDecoder);
12 int msgPtr, bsflag, qdar_pos, t_ptr, qdarmvi_show;
13 unsigned char message[66], lastmessage[66], datamessage[256], rtp_buf[5], leninfo, text_len, text_len2, state;
14 unsigned char rtp_item[64][64], rtplus_osd[64]; //rtp
15 unsigned char qdar[60*1024]; //60 kB for holding Rass qdar archive
16 unsigned short crc16, crc;
17 long part, parts, partcnt;
18 unsigned char rass_picture_mask[5]; // 40 bits... (10 * 4 pictures)
19 void addToPictureMask(int id);
20 void removeFromPictureMask(int id);
22 enum { RadioTextChanged, RtpTextChanged, RassInteractivePicMaskChanged, RecvRassSlidePic };
23 eDVBRdsDecoder(iDVBDemux *demux);
26 void connectEvent(const Slot1<void, int> &slot, ePtr<eConnection> &connection);
27 const char *getRadioText() { return (const char*)message; }
28 const char *getRtpText() { return (const char*)rtplus_osd; }
29 ePyObject getRassPictureMask();
30 std::string getRassPicture(int page, int subpage);
31 std::string getRassSlideshowPicture() { return "/tmp/RassLast.mvi"; }
34 void processPESPacket(__u8 *pkt, int len);
35 inline void gotAncillaryData(__u8 *data, int len);
36 void process_qdar(unsigned char*);
37 ePtr<iDVBPESReader> m_pes_reader;
38 ePtr<eConnection> m_read_connection;
39 Signal1<void, int> m_event;
40 ePtr<eTimer> m_abortTimer;