Logo Search packages:      
Sourcecode: vdr-plugin-dvd version File versions  Download package

void cDvdPlayer::PGCTicksToBlocks ( int64_t  Ticks,
uint32_t &  BlockNum,
uint32_t &  TotalBlockNum 
)

returns the CurrentBlockNum and TotalBlockNum according to the given Ticks, TotalTicks of the actual PGC !

the TotalTicks of the actual PGC is fetched !

90000 ticks are 1 second, acording to MPEG !

Definition at line 2028 of file player-dvd.c.

References GetPGCLengthInTicks().

Referenced by Goto().

{
    int64_t TotalTicks = GetPGCLengthInTicks();

    TotalBlockNum = pgcTotalBlockNum;
    BlockNum = TotalTicks>0 ? (Ticks * TotalBlockNum / TotalTicks) : 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index