MythTV  master
Macros | Enumerations | Functions | Variables
dtvrecorder.cpp File Reference
#include "libmythbase/mythlogging.h"
#include "libmythbase/programinfo.h"
#include "libmythbase/sizetliteral.h"
#include "bytereader.h"
#include "dtvrecorder.h"
#include "io/mythmediabuffer.h"
#include "mpeg/AVCParser.h"
#include "mpeg/HEVCParser.h"
#include "mpeg/atscstreamdata.h"
#include "mpeg/dvbstreamdata.h"
#include "mpeg/mpegstreamdata.h"
#include "mpeg/mpegtables.h"
#include "mythsystemevent.h"
#include "tv_rec.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  : std::uint8_t { 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, const QDateTime &pts_first_dt)
 

Variables

static const std::array< const MythAVRational, 16 > frameRateMap
 

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 37 of file dtvrecorder.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : std::uint8_t
Enumerator
kExtractPTS 
kExtractDTS 

Definition at line 332 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 333 of file dtvrecorder.cpp.

Referenced by DTVRecorder::FindMPEG2Keyframes().

◆ ts_to_qdatetime()

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

Definition at line 361 of file dtvrecorder.cpp.

Referenced by DTVRecorder::HandleTimestamps().

Variable Documentation

◆ frameRateMap

const std::array<const MythAVRational,16> frameRateMap
static
MythAVRational
C++ wrapper for FFmpeg libavutil AVRational.
Definition: mythavrational.h:14