MythTV  master
Macros | Enumerations | Functions | Variables
dtvrecorder.cpp File Reference
#include "atscstreamdata.h"
#include "mpegstreamdata.h"
#include "dvbstreamdata.h"
#include "dtvrecorder.h"
#include "programinfo.h"
#include "mythlogging.h"
#include "mpegtables.h"
#include "ringbuffer.h"
#include "tv_rec.h"
#include "mythsystemevent.h"
Include dependency graph for dtvrecorder.cpp:

Go to the source code of this file.

Macros

#define LOC
 DTVRecorder – base class for Digital Televison recorders Copyright 2003-2004 by Brandon Beattie, Doug Larrick, Jason Hoos, and Daniel Thor Kristjansson. More...
 

Enumerations

enum  { kExtractPTS, kExtractDTS }
 

Functions

static int64_t extract_timestamp (const uint8_t *bufptr, int bytes_left, int pts_or_dts)
 
static QDateTime ts_to_qdatetime (uint64_t pts, uint64_t pts_first, QDateTime &pts_first_dt)
 

Variables

static const FrameRate frameRateMap [16]
 

Macro Definition Documentation

◆ LOC

#define LOC
Value:
((m_tvrec) ? \
QString("DTVRec[%1]: ").arg(m_tvrec->GetInputId()) : \
QString("DTVRec(0x%1): ").arg(intptr_t(this),0,16))

DTVRecorder – base class for Digital Televison recorders Copyright 2003-2004 by Brandon Beattie, Doug Larrick, Jason Hoos, and Daniel Thor Kristjansson.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 32 of file dtvrecorder.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kExtractPTS 
kExtractDTS 

Definition at line 306 of file dtvrecorder.cpp.

Function Documentation

◆ extract_timestamp()

static int64_t extract_timestamp ( const uint8_t *  bufptr,
int  bytes_left,
int  pts_or_dts 
)
static

Definition at line 307 of file dtvrecorder.cpp.

Referenced by DTVRecorder::FindMPEG2Keyframes().

◆ ts_to_qdatetime()

static QDateTime ts_to_qdatetime ( uint64_t  pts,
uint64_t  pts_first,
QDateTime &  pts_first_dt 
)
static

Definition at line 335 of file dtvrecorder.cpp.

Referenced by DTVRecorder::HandleTimestamps().

Variable Documentation

◆ frameRateMap

const FrameRate frameRateMap[16]
static
Initial value:
= {
FrameRate(0), FrameRate(24000, 1001), FrameRate(24),
FrameRate(25), FrameRate(30000, 1001), FrameRate(30),
FrameRate(50), FrameRate(60000, 1001), FrameRate(60),
}

Definition at line 344 of file dtvrecorder.cpp.

Referenced by DTVRecorder::FindMPEG2Keyframes(), and DTVRecorder::FindPSKeyFrames().