FireBirdLib - Topfield TMS PVR TAP Programming Library
FBLib_rec.h File Reference
#include "libFireBird.h"

Go to the source code of this file.

Data Structures

struct  tHddRecordFile
 
struct  tTFRPlusHdr
 

Macros

#define PCRSECTORS   900
 
#define INFDATASTART   0x7d000
 
#define INFDATAMAXSIG   64
 
#define INFDATAMAXBLOCKS   100
 
#define INFDATMAGIC   "TFr+"
 

Functions

word getWord (const void *buffer, bool NeedsByteSwapping)
 
dword getDword (const void *buffer, bool NeedsByteSwapping)
 
void setWord (void *buffer, word Data, bool BigEndian)
 
void setDword (void *buffer, dword Data, bool BigEndian)
 
void DecodeExtInfo (byte *Buffer, dword p, tRECHeaderInfo *RECHeaderInfo)
 
void EncodeExtInfo (byte *Buffer, dword p, tRECHeaderInfo *RECHeaderInfo, bool BigEndian)
 
void HDD_DecodeRECHeader_ST_S (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_DecodeRECHeader_ST_T (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_DecodeRECHeader_ST_C (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_DecodeRECHeader_ST_T5700 (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_DecodeRECHeader_ST_T5800 (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_DecodeRECHeader_ST_TF7k7HDPVR (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_DecodeRECHeader_ST_TMSS (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_DecodeRECHeader_ST_TMST (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_DecodeRECHeader_ST_TMSC (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_S (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_T (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_C (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_T5700 (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_T5800 (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_TF7k7HDPVR (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_TMSS (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_TMST (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
void HDD_EncodeRECHeader_ST_TMSC (byte *Buffer, tRECHeaderInfo *RECHeaderInfo)
 
bool infData_OpenFile (const char *infFileName)
 
dword infData_Flen (void)
 
bool infData_LocateSig (const char *NameTag, dword *PayloadSize)
 
void infData_Truncate (const char *infFileName, dword Position)
 
void infData_CloseFile (void)
 

Variables

bool LibInitialized
 

Macro Definition Documentation

◆ INFDATAMAXBLOCKS

#define INFDATAMAXBLOCKS   100

Definition at line 17 of file FBLib_rec.h.

◆ INFDATAMAXSIG

#define INFDATAMAXSIG   64

Definition at line 16 of file FBLib_rec.h.

◆ INFDATASTART

#define INFDATASTART   0x7d000

Definition at line 15 of file FBLib_rec.h.

◆ INFDATMAGIC

#define INFDATMAGIC   "TFr+"

Definition at line 18 of file FBLib_rec.h.

◆ PCRSECTORS

#define PCRSECTORS   900

Definition at line 6 of file FBLib_rec.h.

Function Documentation

◆ DecodeExtInfo()

◆ EncodeExtInfo()

◆ getDword()

◆ getWord()

◆ HDD_DecodeRECHeader_ST_C()

◆ HDD_DecodeRECHeader_ST_S()

void HDD_DecodeRECHeader_ST_S ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_DecodeRECHeader_ST_T()

void HDD_DecodeRECHeader_ST_T ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_DecodeRECHeader_ST_T5700()

void HDD_DecodeRECHeader_ST_T5700 ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_DecodeRECHeader_ST_T5800()

void HDD_DecodeRECHeader_ST_T5800 ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_DecodeRECHeader_ST_TF7k7HDPVR()

void HDD_DecodeRECHeader_ST_TF7k7HDPVR ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_DecodeRECHeader_ST_TMSC()

void HDD_DecodeRECHeader_ST_TMSC ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

Definition at line 653 of file HDD_DecodeRECHeader.c.

References tRECHeaderInfo::Bookmark, tRECHeaderInfo::CryptFlag, DecodeExtInfo(), tRECHeaderInfo::EventDuration, tRECHeaderInfo::EventEndTime, tRECHeaderInfo::EventEventDescription, tRECHeaderInfo::EventEventID, tRECHeaderInfo::EventEventName, tRECHeaderInfo::EventParentalRate, tRECHeaderInfo::EventRunningStatus, tRECHeaderInfo::EventStartTime, tRECHeaderInfo::EventUnknown1, getDword(), getWord(), tRECHeaderInfo::HeaderCopyFlag, tRECHeaderInfo::HeaderDuration, tRECHeaderInfo::HeaderDurationSec, tRECHeaderInfo::HeaderFlags, tRECHeaderInfo::HeaderFlags2, tRECHeaderInfo::HeaderStartTime, tRECHeaderInfo::HeaderTSFlag, tRECHeaderInfo::HeaderUnknown2, tRECHeaderInfo::HeaderUnknown4, tRECHeaderInfo::NrBookmarks, tRECHeaderInfo::Resume, tRECHeaderInfo::SIAudioPID, tRECHeaderInfo::SIAudioStreamType, tRECHeaderInfo::SICASFlag, tRECHeaderInfo::SIDelFlag, tRECHeaderInfo::SILockFlag, tRECHeaderInfo::SIPCRPID, tRECHeaderInfo::SIPMTPID, tRECHeaderInfo::SISatIndex, tRECHeaderInfo::SIServiceID, tRECHeaderInfo::SIServiceType, tRECHeaderInfo::SISkipFlag, tRECHeaderInfo::SISvcName, tRECHeaderInfo::SITPIdx, tRECHeaderInfo::SITunerNum, tRECHeaderInfo::SIVideoPID, tRECHeaderInfo::SIVideoStreamType, tRECHeaderInfo::TPFrequency, tRECHeaderInfo::TPModulation, tRECHeaderInfo::TPOriginalNetworkID, tRECHeaderInfo::TPSymbolRate, tRECHeaderInfo::TPTSID, tRECHeaderInfo::TPUnknown6, TRACEENTER, TRACEEXIT, and WrongEndian.

Referenced by HDD_DecodeRECHeader().

◆ HDD_DecodeRECHeader_ST_TMSS()

void HDD_DecodeRECHeader_ST_TMSS ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

Definition at line 468 of file HDD_DecodeRECHeader.c.

References tRECHeaderInfo::Bookmark, tRECHeaderInfo::CryptFlag, DecodeExtInfo(), tRECHeaderInfo::EventDuration, tRECHeaderInfo::EventEndTime, tRECHeaderInfo::EventEventDescription, tRECHeaderInfo::EventEventID, tRECHeaderInfo::EventEventName, tRECHeaderInfo::EventParentalRate, tRECHeaderInfo::EventRunningStatus, tRECHeaderInfo::EventStartTime, tRECHeaderInfo::EventUnknown1, getDword(), getWord(), tRECHeaderInfo::HeaderCopyFlag, tRECHeaderInfo::HeaderDuration, tRECHeaderInfo::HeaderDurationSec, tRECHeaderInfo::HeaderFlags, tRECHeaderInfo::HeaderFlags2, tRECHeaderInfo::HeaderStartTime, tRECHeaderInfo::HeaderTSFlag, tRECHeaderInfo::HeaderUnknown2, tRECHeaderInfo::HeaderUnknown4, tRECHeaderInfo::NrBookmarks, tRECHeaderInfo::Resume, tRECHeaderInfo::SIAudioPID, tRECHeaderInfo::SIAudioStreamType, tRECHeaderInfo::SICASFlag, tRECHeaderInfo::SIDelFlag, tRECHeaderInfo::SILockFlag, tRECHeaderInfo::SIPCRPID, tRECHeaderInfo::SIPMTPID, tRECHeaderInfo::SISatIndex, tRECHeaderInfo::SIServiceID, tRECHeaderInfo::SIServiceType, tRECHeaderInfo::SISkipFlag, tRECHeaderInfo::SISvcName, tRECHeaderInfo::SITPIdx, tRECHeaderInfo::SITunerNum, tRECHeaderInfo::SIVideoPID, tRECHeaderInfo::SIVideoStreamType, tRECHeaderInfo::TPFEC, tRECHeaderInfo::TPFrequency, tRECHeaderInfo::TPMode, tRECHeaderInfo::TPModulation, tRECHeaderInfo::TPNetworkID, tRECHeaderInfo::TPOriginalNetworkID, tRECHeaderInfo::TPPilot, tRECHeaderInfo::TPPolarization, tRECHeaderInfo::TPSatIndex, tRECHeaderInfo::TPSymbolRate, tRECHeaderInfo::TPSystem, tRECHeaderInfo::TPTSID, tRECHeaderInfo::TPUnknown2, TRACEENTER, TRACEEXIT, and WrongEndian.

Referenced by HDD_DecodeRECHeader().

◆ HDD_DecodeRECHeader_ST_TMST()

void HDD_DecodeRECHeader_ST_TMST ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

Definition at line 563 of file HDD_DecodeRECHeader.c.

References tRECHeaderInfo::Bookmark, tRECHeaderInfo::CryptFlag, DecodeExtInfo(), tRECHeaderInfo::EventDuration, tRECHeaderInfo::EventEndTime, tRECHeaderInfo::EventEventDescription, tRECHeaderInfo::EventEventID, tRECHeaderInfo::EventEventName, tRECHeaderInfo::EventParentalRate, tRECHeaderInfo::EventRunningStatus, tRECHeaderInfo::EventStartTime, tRECHeaderInfo::EventUnknown1, getDword(), getWord(), tRECHeaderInfo::HeaderCopyFlag, tRECHeaderInfo::HeaderDuration, tRECHeaderInfo::HeaderDurationSec, tRECHeaderInfo::HeaderFlags, tRECHeaderInfo::HeaderFlags2, tRECHeaderInfo::HeaderStartTime, tRECHeaderInfo::HeaderTSFlag, tRECHeaderInfo::HeaderUnknown2, tRECHeaderInfo::HeaderUnknown4, tRECHeaderInfo::NrBookmarks, tRECHeaderInfo::Resume, tRECHeaderInfo::SIAudioPID, tRECHeaderInfo::SIAudioStreamType, tRECHeaderInfo::SICASFlag, tRECHeaderInfo::SIDelFlag, tRECHeaderInfo::SILockFlag, tRECHeaderInfo::SIPCRPID, tRECHeaderInfo::SIPMTPID, tRECHeaderInfo::SISatIndex, tRECHeaderInfo::SIServiceID, tRECHeaderInfo::SIServiceType, tRECHeaderInfo::SISkipFlag, tRECHeaderInfo::SISvcName, tRECHeaderInfo::SITPIdx, tRECHeaderInfo::SITunerNum, tRECHeaderInfo::SIVideoPID, tRECHeaderInfo::SIVideoStreamType, tRECHeaderInfo::TPBandwidth, tRECHeaderInfo::TPChannelNumber, tRECHeaderInfo::TPFrequency, tRECHeaderInfo::TPLPHPStream, tRECHeaderInfo::TPNetworkID, tRECHeaderInfo::TPOriginalNetworkID, tRECHeaderInfo::TPSatIndex, tRECHeaderInfo::TPTSID, tRECHeaderInfo::TPUnknown2, tRECHeaderInfo::TPUnknown4, TRACEENTER, TRACEEXIT, and WrongEndian.

Referenced by HDD_DecodeRECHeader().

◆ HDD_EncodeRECHeader_ST_C()

◆ HDD_EncodeRECHeader_ST_S()

◆ HDD_EncodeRECHeader_ST_T()

void HDD_EncodeRECHeader_ST_T ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_EncodeRECHeader_ST_T5700()

void HDD_EncodeRECHeader_ST_T5700 ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_EncodeRECHeader_ST_T5800()

void HDD_EncodeRECHeader_ST_T5800 ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_EncodeRECHeader_ST_TF7k7HDPVR()

void HDD_EncodeRECHeader_ST_TF7k7HDPVR ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_EncodeRECHeader_ST_TMSC()

void HDD_EncodeRECHeader_ST_TMSC ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

◆ HDD_EncodeRECHeader_ST_TMSS()

void HDD_EncodeRECHeader_ST_TMSS ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

Definition at line 532 of file HDD_EncodeRECHeader.c.

References tRECHeaderInfo::Bookmark, tRECHeaderInfo::CryptFlag, EncodeExtInfo(), tRECHeaderInfo::EventDuration, tRECHeaderInfo::EventEndTime, tRECHeaderInfo::EventEventDescription, tRECHeaderInfo::EventEventID, tRECHeaderInfo::EventEventName, tRECHeaderInfo::EventParentalRate, tRECHeaderInfo::EventRunningStatus, tRECHeaderInfo::EventStartTime, tRECHeaderInfo::EventUnknown1, tRECHeaderInfo::HeaderCopyFlag, tRECHeaderInfo::HeaderDuration, tRECHeaderInfo::HeaderDurationSec, tRECHeaderInfo::HeaderFlags, tRECHeaderInfo::HeaderFlags2, tRECHeaderInfo::HeaderStartTime, tRECHeaderInfo::HeaderTSFlag, tRECHeaderInfo::HeaderUnknown2, tRECHeaderInfo::HeaderUnknown4, tRECHeaderInfo::NrBookmarks, tRECHeaderInfo::Resume, setDword(), setWord(), tRECHeaderInfo::SIAudioPID, tRECHeaderInfo::SIAudioStreamType, tRECHeaderInfo::SICASFlag, tRECHeaderInfo::SIDelFlag, tRECHeaderInfo::SILockFlag, tRECHeaderInfo::SIPCRPID, tRECHeaderInfo::SIPMTPID, tRECHeaderInfo::SISatIndex, tRECHeaderInfo::SIServiceID, tRECHeaderInfo::SIServiceType, tRECHeaderInfo::SISkipFlag, tRECHeaderInfo::SISvcName, tRECHeaderInfo::SITPIdx, tRECHeaderInfo::SITunerNum, tRECHeaderInfo::SIVideoPID, tRECHeaderInfo::SIVideoStreamType, tRECHeaderInfo::TPFEC, tRECHeaderInfo::TPFrequency, tRECHeaderInfo::TPMode, tRECHeaderInfo::TPModulation, tRECHeaderInfo::TPNetworkID, tRECHeaderInfo::TPOriginalNetworkID, tRECHeaderInfo::TPPilot, tRECHeaderInfo::TPPolarization, tRECHeaderInfo::TPSatIndex, tRECHeaderInfo::TPSymbolRate, tRECHeaderInfo::TPSystem, tRECHeaderInfo::TPTSID, tRECHeaderInfo::TPUnknown2, TRACEENTER, and TRACEEXIT.

Referenced by HDD_EncodeRECHeader().

◆ HDD_EncodeRECHeader_ST_TMST()

void HDD_EncodeRECHeader_ST_TMST ( byte *  Buffer,
tRECHeaderInfo RECHeaderInfo 
)

Definition at line 632 of file HDD_EncodeRECHeader.c.

References tRECHeaderInfo::Bookmark, tRECHeaderInfo::CryptFlag, EncodeExtInfo(), tRECHeaderInfo::EventDuration, tRECHeaderInfo::EventEndTime, tRECHeaderInfo::EventEventDescription, tRECHeaderInfo::EventEventID, tRECHeaderInfo::EventEventName, tRECHeaderInfo::EventParentalRate, tRECHeaderInfo::EventRunningStatus, tRECHeaderInfo::EventStartTime, tRECHeaderInfo::EventUnknown1, tRECHeaderInfo::HeaderCopyFlag, tRECHeaderInfo::HeaderDuration, tRECHeaderInfo::HeaderDurationSec, tRECHeaderInfo::HeaderFlags, tRECHeaderInfo::HeaderFlags2, tRECHeaderInfo::HeaderStartTime, tRECHeaderInfo::HeaderTSFlag, tRECHeaderInfo::HeaderUnknown2, tRECHeaderInfo::HeaderUnknown4, tRECHeaderInfo::NrBookmarks, tRECHeaderInfo::Resume, setDword(), setWord(), tRECHeaderInfo::SIAudioPID, tRECHeaderInfo::SIAudioStreamType, tRECHeaderInfo::SICASFlag, tRECHeaderInfo::SIDelFlag, tRECHeaderInfo::SILockFlag, tRECHeaderInfo::SIPCRPID, tRECHeaderInfo::SIPMTPID, tRECHeaderInfo::SISatIndex, tRECHeaderInfo::SIServiceID, tRECHeaderInfo::SIServiceType, tRECHeaderInfo::SISkipFlag, tRECHeaderInfo::SISvcName, tRECHeaderInfo::SITPIdx, tRECHeaderInfo::SITunerNum, tRECHeaderInfo::SIVideoPID, tRECHeaderInfo::SIVideoStreamType, tRECHeaderInfo::TPBandwidth, tRECHeaderInfo::TPChannelNumber, tRECHeaderInfo::TPFrequency, tRECHeaderInfo::TPLPHPStream, tRECHeaderInfo::TPNetworkID, tRECHeaderInfo::TPOriginalNetworkID, tRECHeaderInfo::TPSatIndex, tRECHeaderInfo::TPTSID, tRECHeaderInfo::TPUnknown2, tRECHeaderInfo::TPUnknown4, TRACEENTER, and TRACEEXIT.

Referenced by HDD_EncodeRECHeader().

◆ infData_CloseFile()

void infData_CloseFile ( void  )

◆ infData_Flen()

dword infData_Flen ( void  )

◆ infData_LocateSig()

bool infData_LocateSig ( const char *  NameTag,
dword *  PayloadSize 
)

◆ infData_OpenFile()

bool infData_OpenFile ( const char *  infFileName)

◆ infData_Truncate()

void infData_Truncate ( const char *  infFileName,
dword  Position 
)

Definition at line 4 of file infData_Truncate.c.

References ConvertPathType(), FBLIB_DIR_SIZE, PF_FullLinuxPath, TRACEENTER, and TRACEEXIT.

Referenced by infData_Delete(), and infData_Set().

◆ setDword()

◆ setWord()

Variable Documentation

◆ LibInitialized

bool LibInitialized
extern

Definition at line 8 of file InitTAPex.c.