Skip to content

Instantly share code, notes, and snippets.

#ifndef MYTHNVCONTROL_H
#define MYTHNVCONTROL_H
// Qt
#include <QLibrary>
// Std
#include <tuple>
#include <memory>
@mark-kendall
mark-kendall / MythDisplay
Created February 1, 2021 08:42
MythDisplay
enum DisplayFeature
{
NoFeatures = 0x0000,
LimitedModeSwitching = 0x0001,
FullVidModeSwitching = 0x0002,
VariableRefreshRate = 0x0004,
HighDynamicRange = 0x0008,
SeparableGUIAndVideo = 0x0010,
FullScreenOnly = 0x0020
};
diff --git a/mythtv/libs/libmythtv/mythvideooutgpu.cpp b/mythtv/libs/libmythtv/mythvideooutgpu.cpp
index 66f5124f61..93d81b70c6 100644
--- a/mythtv/libs/libmythtv/mythvideooutgpu.cpp
+++ b/mythtv/libs/libmythtv/mythvideooutgpu.cpp
@@ -355,13 +355,13 @@ void MythVideoOutputGPU::DoneDisplayingFrame(MythVideoFrame* Frame)
if (!Frame)
return;
- bool retain = MythVideoFrame::HardwareFormat(Frame->m_type);
+ auto retain = MythVideoFrame::HardwareFormat(Frame->m_type);
if (m_debanding)
{
if (!m_debandFilter)
m_debandFilter = new MythDebandFilterOpenGL(m_openglRender);
auto nexttex = m_debandFilter->Map(inputtextures, m_videoDispDim);
if (nexttex)
{
inputtextures.clear();
inputtextures.emplace_back(nexttex);
}
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE mythuitheme SYSTEM "http://www.mythtv.org/schema/mythuitheme.dtd">
<mythuitheme>
<!-- Base Font Definitions -->
<fontdef name="basesmall" face="Droid Sans">
<pixelsize>22</pixelsize>
<color>#24E024</color>
<weight>bold</weight>
</fontdef>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE mythuitheme SYSTEM "http://www.mythtv.org/schema/mythuitheme.dtd">
<mythuitheme>
<!-- Base Font Definitions -->
<fontdef name="basesmall" face="Droid Sans">
<pixelsize>22</pixelsize>
<color>#EEEEEE</color>
<weight>bold</weight>
</fontdef>
buildwin:
name: build windows
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Setup MSYS64
@mark-kendall
mark-kendall / gist:749407e908774987e21b70647a3120c4
Created October 31, 2020 08:56
TX 6 V4L2 /dev/video0 Request decoder
mark@arm-64:~$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'ST12' (Sunxi Tiled NV12 Format, compressed)
[1]: 'NV12' (Y/CbCr 4:2:0)
mark@arm-64:~$ v4l2-ctl --list-formats-out-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Output
@mark-kendall
mark-kendall / gist:c82de70fc51b380e9e7a749b25760460
Created October 31, 2020 08:52
Pi 4 V4L2 /dev/video11 Encoder
pi@pi4:~ $ v4l2-ctl --list-formats-ext -d /dev/video11
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar
[0]: 'H264' (H.264, compressed)
Size: Stepwise 32x32 - 1920x1920 with step 1/1
pi@pi4:~ $ v4l2-ctl --list-formats-out-ext -d /dev/video11
ioctl: VIDIOC_ENUM_FMT
Type: Video Output Multiplanar
@mark-kendall
mark-kendall / gist:591f0683c1b4b623be58e1bc720ddce4
Created October 31, 2020 08:50
Pi 4 V4L2 /dev/video10 (decoder)
pi@pi4:~ $ v4l2-ctl --list-formats-ext -d /dev/video10
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar
[0]: 'YU12' (Planar YUV 4:2:0)
Size: Stepwise 32x32 - 1920x1920 with step 1/1
[1]: 'YV12' (Planar YVU 4:2:0)
Size: Stepwise 32x32 - 1920x1920 with step 1/1
[2]: 'NV12' (Y/CbCr 4:2:0)
Size: Stepwise 32x32 - 1920x1920 with step 1/1