13#ifndef __HARDWAREDEVICE_H
14#define __HARDWAREDEVICE_H
83 LOGERROR(
"could not from read /sys/firmware/devicetree/base/compatible, no quirks set");
109 m_deviceName =
"bcm2837 (Raspberry Pi 2 Model B v1.2/ 3 Model B, Raspberry Pi 3 Compute Module 3)";
114 m_deviceName =
"bcm2711 (Raspberry Pi 4 Model B, Compute Module 4, Pi 400)";
119 m_deviceName =
"bcm2712 (Raspberry Pi 5, Compute Module 5, Pi 500)";
const char * GetName(void)
Get Hardware Name (currently unused)
cHardwareDevice(void)
Create a new hardware device.
int GetQuirks(void)
Get Hardware Quirks.
const char * m_deviceName
device name
int m_quirks
hardware dependent quirks for codec and and display
#define LOGDEBUG
log to LOG_DEBUG
#define LOGERROR
log to LOG_ERR
HardwareQuirks
Hardware dependent quirks.
static size_t ReadLineFromFile(char *buf, size_t size, const char *file)
Helper function to read a line from a given file.
@ QUIRK_CODEC_FLUSH_WORKAROUND
set, if we have to close and reopen the codec instead of avcodec_flush_buffers (rpi)
@ QUIRK_CODEC_SKIP_FIRST_FRAMES
set, if codec should skip first I-Frames
@ QUIRK_CODEC_SKIP_NUM_FRAMES
skip QUIRK_CODEC_SKIP_NUM_FRAMES, in case QUIRK_CODEC_SKIP_FIRST_FRAMES is set
@ QUIRK_CODEC_NEEDS_DIMENSION_PARSE
set, if codec needs some infos for init (coded_width and coded_height)
@ QUIRK_NO_HW_DEINT
set, if no hw deinterlacer available