vdr-plugin-softhddevice-drm-gles 1.4.0
Macros | Functions
softhddevice.cpp File Reference

Device class. More...

#include <functional>
#include <mutex>
#include <variant>
#include <algorithm>
#include <assert.h>
#include <unistd.h>
#include <libintl.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "softhddevice-drm-gles.h"
#include "softhdosd.h"
#include "softhddevice.h"
#include "logger.h"
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/timestamp.h>
#include "buf2rgb.h"
#include "iatomic.h"
#include "videostream.h"
#include "audio.h"
#include "videorender.h"
#include "codec_audio.h"
#include "codec_video.h"
#include "pes.h"
#include "misc.h"
#include "pipreceiver.h"
Include dependency graph for softhddevice.cpp:

Go to the source code of this file.

Macros

#define __USE_GNU
 
#define _(str)   gettext(str)
 gettext shortcut More...
 
#define _N(str)   str
 gettext_noop shortcut More...
 

Functions

uint8_t * CreateJpeg (uint8_t *image, int *size, int quality, int width, int height)
 Call rgb to jpeg for C Plugin. More...
 
static void PrintStreamData (const uchar *payload)
 Print the start code, stream id, length, first three bytes (start code) of the payload, and the following 16 bytes of the codec payload. More...
 

Detailed Description

Device class.

This file defines cSoftHdDevice which is the implementation of cDevice. This is the place where all the device commands which are sent be VDR are placed in (i.e. Play(), TrickSpeed() ...)

Definition in file softhddevice.cpp.

Macro Definition Documentation

◆ _

#define _ (   str)    gettext(str)

gettext shortcut

Definition at line 68 of file softhddevice.cpp.

◆ __USE_GNU

#define __USE_GNU

Definition at line 27 of file softhddevice.cpp.

◆ _N

#define _N (   str)    str

gettext_noop shortcut

Definition at line 69 of file softhddevice.cpp.

Function Documentation

◆ CreateJpeg()

uint8_t * CreateJpeg ( uint8_t *  image,
int *  size,
int  quality,
int  width,
int  height 
)

Call rgb to jpeg for C Plugin.

Definition at line 74 of file softhddevice.cpp.

Referenced by cSoftHdDevice::GrabImage().

◆ PrintStreamData()

static void PrintStreamData ( const uchar *  payload)
static

Print the start code, stream id, length, first three bytes (start code) of the payload, and the following 16 bytes of the codec payload.

Parameters
datapointer to stream data
offsetprint from here

Definition at line 965 of file softhddevice.cpp.

References L_CODEC, and LOGDEBUG2.

Referenced by cSoftHdDevice::PlayVideoInternal().