Example #1
0
 inline void operator +=(double t)
 {
     if (hasDts())
         m_dts += t;
     if (hasPts())
         m_pts += t;
 }
Example #2
0
void QtsPesPacket::setPts(const quint64& pts)
{
    if (hasPts()) {
        qtsPutPtsDts(_data.data() + 9, pts);
    }
}
Example #3
0
quint64 QtsPesPacket::getPts() const
{
    return hasPts() ? qtsGetPtsDts(_data.data() + 9) : 0;
}
Example #4
0
 inline bool isValid() const
 {
     return hasDts() || hasPts();
 }