vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
misc.h File Reference

Misc function header file. More...

#include <cstdio>
#include <cstdint>
#include <libavutil/frame.h>

Go to the source code of this file.

Macros

#define AV_NOPTS_VALUE   INT64_C(0x8000000000000000)
 
#define VIDEO_SURFACES_MAX   3
 

Functions

static bool isInterlacedFrame (AVFrame *frame)
 Check, if this is an interlaced frame.
 
static const char * Timestamp2String (int64_t ts, uint8_t divisor)
 Workaround for av_err2str() not working with C++.
 
static uint32_t ReadBytes (const uint8_t *data, int count)
 Return count amount of bytes from data.
 

Detailed Description

Misc function header file.

Definition in file misc.h.

Macro Definition Documentation

◆ AV_NOPTS_VALUE

#define AV_NOPTS_VALUE   INT64_C(0x8000000000000000)

Definition at line 69 of file misc.h.

◆ VIDEO_SURFACES_MAX

#define VIDEO_SURFACES_MAX   3

Definition at line 72 of file misc.h.

Function Documentation

◆ isInterlacedFrame()

static bool isInterlacedFrame ( AVFrame *  frame)
inlinestatic

Check, if this is an interlaced frame.

Parameters
frameAVFrame
Returns
true, if this frame is an interlaced frame

Definition at line 81 of file misc.h.

Referenced by cFilterThread::Action(), cVideoDecoder::ReceiveFrame(), and cVideoStream::RenderFrame().

◆ ReadBytes()

static uint32_t ReadBytes ( const uint8_t *  data,
int  count 
)
inlinestatic

Return count amount of bytes from data.

Definition at line 141 of file misc.h.

Referenced by cReassemblyBufferVideo::HasLeadingZero(), cPes::IsHeaderValid(), isValidStartCode(), and cReassemblyBufferVideo::ParseCodecHeader().

◆ Timestamp2String()

static const char * Timestamp2String ( int64_t  ts,
uint8_t  divisor 
)
inlinestatic