MythTV master
Classes | Macros | Functions | Variables
mythdvdstream.cpp File Reference
#include <QMutexLocker>
#include <QtGlobal>
#include <QtAlgorithms>
#include "libmythbase/mythlogging.h"
#include "mythdvdstream.h"
#include <algorithm>
#include <cstdio>
#include "dvdread/dvd_reader.h"
#include "dvdread/dvd_udf.h"
Include dependency graph for mythdvdstream.cpp:

Go to the source code of this file.

Classes

class  MythDVDStream::BlockRange
 

Macros

#define LOC   QString("DVDStream: ")
 

Functions

int InternalUDFReadBlocksRaw (dvd_reader_t *device, uint32_t lb_number, size_t block_count, unsigned char *data, int encrypted)
 
uint32_t Len2Blocks (uint32_t Length)
 Roundup bytes to DVD blocks. More...
 

Variables

static constexpr int DVDINPUT_NOFLAGS { 0 }
 Defines and flags. More...
 
static constexpr int DVDINPUT_READ_DECRYPT { 1 << 0 }
 
static constexpr int DVDCSS_SEEK_KEY { 1 << 1 }
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("DVDStream: ")

Definition at line 22 of file mythdvdstream.cpp.

Function Documentation

◆ InternalUDFReadBlocksRaw()

int InternalUDFReadBlocksRaw ( dvd_reader_t device,
uint32_t  lb_number,
size_t  block_count,
unsigned char *  data,
int  encrypted 
)

Referenced by MythDVDStream::SafeRead().

◆ Len2Blocks()

uint32_t Len2Blocks ( uint32_t  Length)
inline

Roundup bytes to DVD blocks.

Definition at line 64 of file mythdvdstream.cpp.

Referenced by MythDVDStream::OpenFile().

Variable Documentation

◆ DVDCSS_SEEK_KEY

constexpr int DVDCSS_SEEK_KEY { 1 << 1 }
staticconstexpr

Definition at line 56 of file mythdvdstream.cpp.

Referenced by MythDVDStream::SafeRead().

◆ DVDINPUT_NOFLAGS

constexpr int DVDINPUT_NOFLAGS { 0 }
staticconstexpr

Defines and flags.

Make sure they fit the libdvdcss API!

Definition at line 54 of file mythdvdstream.cpp.

Referenced by MythDVDStream::SafeRead().

◆ DVDINPUT_READ_DECRYPT

constexpr int DVDINPUT_READ_DECRYPT { 1 << 0 }
staticconstexpr

Definition at line 55 of file mythdvdstream.cpp.

Referenced by MythDVDStream::SafeRead().