MythTV  master
mythvdpauinterop.cpp
Go to the documentation of this file.
1 // MythTV
2 #include "mythcorecontext.h"
3 #include "videocolourspace.h"
4 #include "mythvdpauhelper.h"
5 #include "mythvdpauinterop.h"
6 
7 #define LOC QString("VDPAUInterop: ")
8 
10 {
11  if (Context)
12  return new MythVDPAUInterop(Context, CodecId);
13  return nullptr;
14 }
15 
17 {
18  if ((FMT_VDPAU != Format) || !gCoreContext->IsUIThread())
19  return Unsupported;
20 
22  if (!context)
23  return Unsupported;
24 
25  if (context->hasExtension("GL_NV_vdpau_interop") && MythVDPAUHelper::HaveVDPAU())
26  return VDPAU;
27  return Unsupported;
28 }
29 
31  : MythOpenGLInterop(Context, VDPAU),
32  m_codec(CodecId)
33 {
34 }
35 
37 {
38  if (!m_context)
39  return;
40 
41  if (m_colourSpace)
43 
44  OpenGLLocker locker(m_context);
46  Cleanup();
47  delete m_helper;
48 }
49 
51 {
52  OpenGLLocker locker(m_context);
53 
54  // per the spec, this should automatically release any registered
55  // and mapped surfaces
56  if (m_finiNV)
57  m_finiNV();
58 
59  if (m_helper && !m_preempted)
60  {
63  }
64 
65  m_mixer = 0;
66  m_outputSurface = 0;
69  m_mixerSize = QSize();
70  m_mixerChroma = VDP_CHROMA_TYPE_420;
71 
73 }
74 
76 {
77  while (!m_referenceFrames.isEmpty())
78  {
79  AVBufferRef* ref = m_referenceFrames.takeLast();
80  av_buffer_unref(&ref);
81  }
82 }
83 
85 {
86  if (!Buffer)
87  return;
88 
89  // don't retain twice for double rate
90  if (!m_referenceFrames.empty() &&
91  (static_cast<VdpVideoSurface>(reinterpret_cast<uintptr_t>(m_referenceFrames[0]->data)) ==
92  static_cast<VdpVideoSurface>(reinterpret_cast<uintptr_t>(Buffer->data))))
93  {
94  return;
95  }
96 
97  m_referenceFrames.push_front(av_buffer_ref(Buffer));
98 
99  // release old frames
100  while (m_referenceFrames.size() > 3)
101  {
102  AVBufferRef* ref = m_referenceFrames.takeLast();
103  av_buffer_unref(&ref);
104  }
105 }
106 
107 bool MythVDPAUInterop::InitNV(AVVDPAUDeviceContext* DeviceContext)
108 {
109  if (!DeviceContext || !m_context)
110  return false;
111 
113  m_helper && m_helper->IsValid())
114  return true;
115 
116  OpenGLLocker locker(m_context);
117  m_initNV = reinterpret_cast<MYTH_VDPAUINITNV>(m_context->GetProcAddress("glVDPAUInitNV"));
118  m_finiNV = reinterpret_cast<MYTH_VDPAUFININV>(m_context->GetProcAddress("glVDPAUFiniNV"));
119  m_registerNV = reinterpret_cast<MYTH_VDPAUREGOUTSURFNV>(m_context->GetProcAddress("glVDPAURegisterOutputSurfaceNV"));
120  m_accessNV = reinterpret_cast<MYTH_VDPAUSURFACCESSNV>(m_context->GetProcAddress("glVDPAUSurfaceAccessNV"));
121  m_mapNV = reinterpret_cast<MYTH_VDPAUMAPSURFNV>(m_context->GetProcAddress("glVDPAUMapSurfacesNV"));
122  m_unmapNV = reinterpret_cast<MYTH_VDPAUMAPSURFNV>(m_context->GetProcAddress("glVDPAUUnmapSurfacesNV"));
123 
124  delete m_helper;
125  m_helper = nullptr;
126 
128  {
129  m_helper = new MythVDPAUHelper(DeviceContext);
130  if (m_helper->IsValid())
131  {
132  connect(m_helper, &MythVDPAUHelper::DisplayPreempted, this, &MythVDPAUInterop::DisplayPreempted, Qt::DirectConnection);
133  LOG(VB_PLAYBACK, LOG_INFO, LOC + "Ready");
134  return true;
135  }
136  delete m_helper;
137  m_helper = nullptr;
138  }
139 
140  LOG(VB_GENERAL, LOG_ERR, LOC + "Failed to retrieve procs");
141  return false;
142 }
143 
144 bool MythVDPAUInterop::InitVDPAU(AVVDPAUDeviceContext* DeviceContext, VdpVideoSurface Surface,
145  MythDeintType Deint, bool DoubleRate)
146 {
147  if (!m_helper || !m_context || !Surface || !DeviceContext)
148  return false;
149 
150  VdpChromaType chroma = VDP_CHROMA_TYPE_420;
151  QSize size = m_helper->GetSurfaceParameters(Surface, chroma);
152 
153  if (m_mixer && (chroma != m_mixerChroma || size != m_mixerSize || Deint != m_deinterlacer))
154  Cleanup();
155 
156  if (!m_mixer)
157  {
158  m_mixer = m_helper->CreateMixer(size, chroma, Deint);
159  m_deinterlacer = Deint;
160  m_mixerChroma = chroma;
161  m_mixerSize = size;
162  if (DEINT_NONE != m_deinterlacer)
163  LOG(VB_PLAYBACK, LOG_INFO, LOC + QString("Setup deinterlacer '%1'")
165  }
166 
167  if (!m_outputSurface)
168  {
170  if (m_outputSurface)
171  {
172  vector<QSize> sizes;
173  sizes.push_back(size);
174  vector<MythVideoTexture*> textures =
176  if (textures.empty())
177  return false;
178  m_openglTextures.insert(DUMMY_INTEROP_ID, textures);
179  }
180  }
181 
182  if (m_mixer && m_outputSurface)
183  {
184  if (!m_outputSurfaceReg && !m_openglTextures.empty())
185  {
186  // This may fail if another interop is registered (but should not happen if
187  // decoder creataion is working properly). Subsequent surface
188  // registration will then fail and we will try again on the next pass
189  m_initNV(reinterpret_cast<void*>(static_cast<uintptr_t>(DeviceContext->device)),
190  reinterpret_cast<const void*>(DeviceContext->get_proc_address));
191  GLuint texid = m_openglTextures[DUMMY_INTEROP_ID][0]->m_textureId;
192  m_outputSurfaceReg = m_registerNV(reinterpret_cast<void*>(static_cast<uintptr_t>(m_outputSurface)),
193  QOpenGLTexture::Target2D, 1, &texid);
194  // this happens if there is another interop registered to this OpenGL context
195  if (!m_outputSurfaceReg)
196  {
197  LOG(VB_GENERAL, LOG_ERR, LOC + "Failed to register VdpOutputSurface. Will retry.");
198  }
199  else
200  {
201  m_accessNV(m_outputSurfaceReg, QOpenGLBuffer::ReadOnly);
202  }
203  }
204  return true;
205  }
206 
207  return (m_mixer != 0U) && (m_outputSurface != 0U);
208 }
209 
218  VideoColourSpace *ColourSpace,
219  VideoFrame *Frame,
220  FrameScanType Scan)
221 {
222  vector<MythVideoTexture*> result;
223  if (!Frame)
224  return result;
225 
226  if (m_preempted)
227  {
228  // Don't spam the logs with this warning
229  if (!m_preemptedWarning)
230  LOG(VB_PLAYBACK, LOG_INFO, LOC + "Display preempted. Decoder needs to be reset");
231  m_preemptedWarning = true;
232  return result;
233  }
234 
235  if (Context && (Context != m_context))
236  LOG(VB_GENERAL, LOG_WARNING, LOC + "Mismatched OpenGL contexts");
237 
238  // Check size
239  QSize surfacesize(Frame->width, Frame->height);
240  if (m_openglTextureSize != surfacesize)
241  {
242  if (!m_openglTextureSize.isEmpty())
243  LOG(VB_GENERAL, LOG_WARNING, LOC + "Video texture size changed!");
244  m_openglTextureSize = surfacesize;
245  }
246 
247  // Lock
248  OpenGLLocker locker(m_context);
249 
250  // Retrieve hardware frames context and AVVDPAUDeviceContext
251  if ((Frame->pix_fmt != AV_PIX_FMT_VDPAU) || (Frame->codec != FMT_VDPAU) ||
252  !Frame->buf || !Frame->priv[1])
253  return result;
254 
255  auto* buffer = reinterpret_cast<AVBufferRef*>(Frame->priv[1]);
256  if (!buffer || (buffer && !buffer->data))
257  return result;
258  auto* frames = reinterpret_cast<AVHWFramesContext*>(buffer->data);
259  if (!frames || (frames && !frames->device_ctx))
260  return result;
261  auto *devicecontext = reinterpret_cast<AVVDPAUDeviceContext*>(frames->device_ctx->hwctx);
262  if (!devicecontext)
263  return result;
264 
265  // Initialise
266  if (!InitNV(devicecontext))
267  return result;
268 
269  // Retrieve surface - we need its size to create the mixer and output surface
270  auto surface = static_cast<VdpVideoSurface>(reinterpret_cast<uintptr_t>(Frame->buf));
271  if (!surface)
272  return result;
273 
274  // Workaround HEVC interlaced bug
275  // VDPAU driver hangs if we try to render progressive HEVC as interlaced (tested with version 418.56)
276  // FFmpeg clearly currently has issues with interlaced HEVC (https://trac.ffmpeg.org/ticket/4141).
277  // Streams are always return with the field height.
278  // Deinterlacing does work with (some?) HEVC material flagged as interlaced.
279  if ((kCodec_HEVC_VDPAU == m_codec) && is_interlaced(Scan) && !Frame->interlaced_frame)
280  {
281  // This should only be logged a couple of times before the scan is detected as progressive
282  LOG(VB_GENERAL, LOG_INFO, LOC + "Ignoring scan for non-interlaced HEVC frame");
283  Scan = kScan_Progressive;
284  }
285 
286  // Check for deinterlacing - VDPAU deinterlacers trump all others as we can only
287  // deinterlace VDPAU frames here. So accept any deinterlacer.
288  // N.B. basic deinterlacing requires no additional setup and is managed with
289  // the field/frame parameter
290  bool doublerate = true;
291  MythDeintType deinterlacer = DEINT_BASIC;
292  if (is_interlaced(Scan))
293  {
295  DEINT_ALL);
296  if (!driverdeint)
297  {
298  doublerate = false;
300  }
301 
302  if (driverdeint)
303  {
304  Frame->deinterlace_inuse = driverdeint | DEINT_DRIVER;
305  Frame->deinterlace_inuse2x = doublerate;
306  deinterlacer = driverdeint;
307  }
308  }
309 
310  if ((deinterlacer == DEINT_HIGH) || (deinterlacer == DEINT_MEDIUM))
311  {
312  if (abs(Frame->frameCounter - m_discontinuityCounter) > 1)
314  RotateReferenceFrames(reinterpret_cast<AVBufferRef*>(Frame->priv[0]));
315  }
316  else
317  {
319  }
320  m_discontinuityCounter = Frame->frameCounter;
321 
322  // We need a mixer, an output surface and mapped texture
323  if (!InitVDPAU(devicecontext, surface, deinterlacer, doublerate))
324  return result;
325 
326  // Update colourspace and initialise on first frame - after mixer is created
327  if (ColourSpace)
328  {
329  if (!m_colourSpace)
330  {
331  if (m_helper->IsFeatureAvailable(VDP_VIDEO_MIXER_ATTRIBUTE_CSC_MATRIX))
332  {
334  connect(ColourSpace, &VideoColourSpace::Updated, this, &MythVDPAUInterop::UpdateColourSpace);
335  }
336  else
337  {
338  // N.B. CSC matrix support should always be available so there is no fallback.
340  LOG(VB_GENERAL, LOG_WARNING, LOC + "No VDPAU CSC matrix support");
341  }
342 
343  ColourSpace->IncrRef();
344  m_colourSpace = ColourSpace;
345  }
346  ColourSpace->UpdateColourSpace(Frame);
347  }
348 
349  // Render surface
351  m_helper->MixerRender(m_mixer, surface, m_outputSurface, Scan,
352  static_cast<int>(Frame->interlaced_reversed ? !Frame->top_field_first :
353  Frame->top_field_first), m_referenceFrames);
356 }
357 
358 void MythVDPAUInterop::UpdateColourSpace(bool /*PrimariesChanged*/)
359 {
360  if (!m_mixer || !m_context || !m_colourSpace || !m_helper)
361  return;
362 
363  OpenGLLocker locker(m_context);
365 }
366 
368 {
369  // N.B. Pre-emption is irrecoverable here. We ensure the error state is recorded
370  // and when AvFormatDecoder/MythCodecContext hit a problem, IsPreempted is checked.
371  // The decoder context is then released, along with the associated interop
372  // class (i.e. this) and a new interop is created.
373  LOG(VB_GENERAL, LOG_INFO, LOC + "VDPAU display preempted");
374  m_preempted = true;
375 }
376 
378 {
379  return m_preempted;
380 }
GetSingleRateOption
MythDeintType GetSingleRateOption(const VideoFrame *Frame, MythDeintType Type, MythDeintType Override)
Definition: mythframe.cpp:834
DEINT_DRIVER
@ DEINT_DRIVER
Definition: mythframe.h:129
DEINT_MEDIUM
@ DEINT_MEDIUM
Definition: mythframe.h:125
MythVDPAUInterop::m_mixerSize
QSize m_mixerSize
Definition: mythvdpauinterop.h:60
ReferenceCounter::DecrRef
virtual int DecrRef(void)
Decrements reference count and deletes on 0.
Definition: referencecounter.cpp:125
MythVDPAUInterop::RotateReferenceFrames
void RotateReferenceFrames(AVBufferRef *Buffer)
Definition: mythvdpauinterop.cpp:84
mythvdpauinterop.h
DEINT_SHADER
@ DEINT_SHADER
Definition: mythframe.h:128
MythVDPAUInterop::m_initNV
MYTH_VDPAUINITNV m_initNV
Definition: mythvdpauinterop.h:63
MYTH_VDPAUREGOUTSURFNV
MythVDPAUSurfaceNV(APIENTRY *)(const void *, GLenum, GLsizei, const GLuint *) MYTH_VDPAUREGOUTSURFNV
Definition: mythvdpauinterop.h:21
MYTH_VDPAUMAPSURFNV
void(APIENTRY *)(GLsizei, MythVDPAUSurfaceNV *) MYTH_VDPAUMAPSURFNV
Definition: mythvdpauinterop.h:23
LOC
#define LOC
Definition: mythvdpauinterop.cpp:7
Frame
Definition: zmdefines.h:94
MythRenderOpenGL::GetProcAddress
QFunctionPointer GetProcAddress(const QString &Proc) const
Definition: mythrenderopengl.cpp:1192
MythVDPAUInterop::~MythVDPAUInterop
~MythVDPAUInterop() override
Definition: mythvdpauinterop.cpp:36
MythVideoTexture::CreateTextures
static vector< MythVideoTexture * > CreateTextures(MythRenderOpenGL *Context, VideoFrameType Type, VideoFrameType Format, vector< QSize > Sizes, GLenum Target=QOpenGLTexture::Target2D)
Create a set of textures suitable for the given Type and Format.
Definition: mythvideotexture.cpp:57
DEINT_NONE
@ DEINT_NONE
Definition: mythframe.h:123
arg
arg(title).arg(filename).arg(doDelete))
Surface
Definition: surface.h:4
FrameScanType
FrameScanType
Definition: videoouttypes.h:79
GetDoubleRateOption
MythDeintType GetDoubleRateOption(const VideoFrame *Frame, MythDeintType Type, MythDeintType Override)
Definition: mythframe.cpp:847
MythCoreContext::IsUIThread
bool IsUIThread(void)
Definition: mythcorecontext.cpp:1356
Context
QHash< QString, Action * > Context
Definition: action.h:77
MythVDPAUInterop::InitNV
bool InitNV(AVVDPAUDeviceContext *DeviceContext)
Definition: mythvdpauinterop.cpp:107
MythDate::Format
Format
Definition: mythdate.h:13
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:23
MythVDPAUInterop::m_helper
MythVDPAUHelper * m_helper
Definition: mythvdpauinterop.h:55
DEINT_ALL
@ DEINT_ALL
Definition: mythframe.h:130
VideoFrame
Definition: mythframe.h:138
MythVDPAUHelper::HaveVDPAU
static bool HaveVDPAU(void)
Definition: mythvdpauhelper.cpp:53
DUMMY_INTEROP_ID
#define DUMMY_INTEROP_ID
Definition: mythopenglinterop.h:21
MythVDPAUHelper::IsFeatureAvailable
bool IsFeatureAvailable(uint Feature)
Definition: mythvdpauhelper.cpp:554
MythVDPAUHelper::CreateOutputSurface
VdpOutputSurface CreateOutputSurface(QSize Size)
Definition: mythvdpauhelper.cpp:398
MythVDPAUInterop::Cleanup
void Cleanup(void)
Definition: mythvdpauinterop.cpp:50
kPictureAttributeSupported_None
@ kPictureAttributeSupported_None
Definition: videoouttypes.h:102
MythVDPAUInterop::Create
static MythVDPAUInterop * Create(MythRenderOpenGL *Context, MythCodecID CodecId)
Definition: mythvdpauinterop.cpp:9
kCodec_HEVC_VDPAU
@ kCodec_HEVC_VDPAU
Definition: mythcodecid.h:46
MythOpenGLInterop::VDPAU
@ VDPAU
Definition: mythopenglinterop.h:38
MYTH_VDPAUFININV
void(APIENTRY *)(void) MYTH_VDPAUFININV
Definition: mythvdpauinterop.h:20
DEINT_CPU
@ DEINT_CPU
Definition: mythframe.h:127
MythVDPAUHelper::DeleteOutputSurface
void DeleteOutputSurface(VdpOutputSurface Surface)
Definition: mythvdpauhelper.cpp:412
MythVDPAUInterop::m_deinterlacer
MythDeintType m_deinterlacer
Definition: mythvdpauinterop.h:61
MythCodecID
MythCodecID
Definition: mythcodecid.h:11
MythOpenGLInterop::m_discontinuityCounter
long long m_discontinuityCounter
Definition: mythopenglinterop.h:77
DeinterlacerName
QString DeinterlacerName(MythDeintType Deint, bool DoubleRate, VideoFrameType Format)
Return a user friendly description of the given deinterlacer.
Definition: mythavutil.cpp:115
MythVDPAUInterop::m_preemptedWarning
bool m_preemptedWarning
Definition: mythvdpauinterop.h:71
MythOpenGLInterop
Definition: mythopenglinterop.h:24
MythVDPAUInterop::m_outputSurface
VdpOutputSurface m_outputSurface
Definition: mythvdpauinterop.h:56
mythvdpauhelper.h
MythOpenGLInterop::Unsupported
@ Unsupported
Definition: mythopenglinterop.h:31
kScan_Progressive
@ kScan_Progressive
Definition: videoouttypes.h:84
MythVDPAUInterop::GetInteropType
static Type GetInteropType(VideoFrameType Format)
Definition: mythvdpauinterop.cpp:16
MythVDPAUHelper::DisplayPreempted
void DisplayPreempted(void)
MythVDPAUHelper
A simple wrapper around VDPAU functionality.
Definition: mythvdpauhelper.h:39
VideoColourSpace::SetSupportedAttributes
void SetSupportedAttributes(PictureAttributeSupported Supported)
Enable the given set of picture attributes.
Definition: videocolourspace.cpp:140
MythVDPAUInterop::MythVDPAUInterop
MythVDPAUInterop(MythRenderOpenGL *Context, MythCodecID CodecID)
Definition: mythvdpauinterop.cpp:30
MythVDPAUHelper::DeleteMixer
void DeleteMixer(VdpVideoMixer Mixer)
Definition: mythvdpauhelper.cpp:531
MythVDPAUInterop
Definition: mythvdpauinterop.h:26
MythVDPAUHelper::GetSurfaceParameters
QSize GetSurfaceParameters(VdpVideoSurface Surface, VdpChromaType &Chroma)
Definition: mythvdpauhelper.cpp:566
MythVDPAUInterop::m_accessNV
MYTH_VDPAUSURFACCESSNV m_accessNV
Definition: mythvdpauinterop.h:66
MythVDPAUHelper::IsValid
bool IsValid(void) const
Definition: mythvdpauhelper.cpp:312
MythVDPAUInterop::m_codec
MythCodecID m_codec
Definition: mythvdpauinterop.h:69
MythOpenGLInterop::m_context
MythRenderOpenGL * m_context
Definition: mythopenglinterop.h:73
gCoreContext
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
Definition: mythcorecontext.cpp:57
MythVDPAUHelper::SetCSCMatrix
void SetCSCMatrix(VdpVideoMixer Mixer, VideoColourSpace *ColourSpace)
Definition: mythvdpauhelper.cpp:541
MythVDPAUHelper::CreateMixer
VdpVideoMixer CreateMixer(QSize Size, VdpChromaType ChromaType=VDP_CHROMA_TYPE_420, MythDeintType Deinterlacer=DEINT_BASIC)
Definition: mythvdpauhelper.cpp:422
videocolourspace.h
MythOpenGLInterop::Type
Type
Definition: mythopenglinterop.h:30
MYTH_VDPAUINITNV
void(APIENTRY *)(const void *, const void *) MYTH_VDPAUINITNV
Definition: mythvdpauinterop.h:19
FMT_ARGB32
@ FMT_ARGB32
Definition: mythframe.h:38
ALL_PICTURE_ATTRIBUTES
#define ALL_PICTURE_ATTRIBUTES
Definition: videoouttypes.h:111
MythVDPAUInterop::Acquire
vector< MythVideoTexture * > Acquire(MythRenderOpenGL *Context, VideoColourSpace *ColourSpace, VideoFrame *Frame, FrameScanType Scan) override
Map VDPAU video surfaces to an OpenGL texture.
Definition: mythvdpauinterop.cpp:217
MythVDPAUInterop::CleanupDeinterlacer
void CleanupDeinterlacer(void)
Definition: mythvdpauinterop.cpp:75
MythVDPAUInterop::m_referenceFrames
QVector< AVBufferRef * > m_referenceFrames
Definition: mythvdpauinterop.h:62
MythRenderOpenGL
Definition: mythrenderopengl.h:95
VideoColourSpace
VideoColourSpace contains a QMatrix4x4 that can convert YCbCr data to RGB.
Definition: videocolourspace.h:18
MythDeintType
MythDeintType
Definition: mythframe.h:122
Buffer
Definition: MythExternControl.h:37
mythcorecontext.h
FMT_VDPAU
@ FMT_VDPAU
Definition: mythframe.h:61
MythVDPAUInterop::m_mixerChroma
VdpChromaType m_mixerChroma
Definition: mythvdpauinterop.h:59
VideoColourSpace::UpdateColourSpace
bool UpdateColourSpace(const VideoFrame *Frame)
Set the current colourspace to use.
Definition: videocolourspace.cpp:332
DEINT_HIGH
@ DEINT_HIGH
Definition: mythframe.h:126
VideoColourSpace::Updated
void Updated(bool PrimariesChanged)
MYTH_VDPAUSURFACCESSNV
void(APIENTRY *)(MythVDPAUSurfaceNV, GLenum) MYTH_VDPAUSURFACCESSNV
Definition: mythvdpauinterop.h:22
MythRenderOpenGL::GetOpenGLRender
static MythRenderOpenGL * GetOpenGLRender(void)
Definition: mythrenderopengl.cpp:63
MythVDPAUInterop::m_mixer
VdpVideoMixer m_mixer
Definition: mythvdpauinterop.h:58
MythVDPAUInterop::IsPreempted
bool IsPreempted(void) const
Definition: mythvdpauinterop.cpp:377
MythVDPAUInterop::m_colourSpace
VideoColourSpace * m_colourSpace
Definition: mythvdpauinterop.h:54
MythVDPAUHelper::MixerRender
void MixerRender(VdpVideoMixer Mixer, VdpVideoSurface Source, VdpOutputSurface Dest, FrameScanType Scan, int TopFieldFirst, QVector< AVBufferRef * > &Frames)
Definition: mythvdpauhelper.cpp:476
VideoFrameType
VideoFrameType
Definition: mythframe.h:25
MythVDPAUInterop::UpdateColourSpace
void UpdateColourSpace(bool PrimariesChanged)
Definition: mythvdpauinterop.cpp:358
MythVDPAUInterop::m_preempted
bool m_preempted
Definition: mythvdpauinterop.h:70
MythOpenGLInterop::DeleteTextures
virtual void DeleteTextures(void)
Definition: mythopenglinterop.cpp:246
DEINT_BASIC
@ DEINT_BASIC
Definition: mythframe.h:124
MythOpenGLInterop::m_openglTextures
QHash< unsigned long long, vector< MythVideoTexture * > > m_openglTextures
Definition: mythopenglinterop.h:75
MythVDPAUInterop::m_finiNV
MYTH_VDPAUFININV m_finiNV
Definition: mythvdpauinterop.h:64
MythVDPAUInterop::m_unmapNV
MYTH_VDPAUMAPSURFNV m_unmapNV
Definition: mythvdpauinterop.h:68
MythVDPAUInterop::m_outputSurfaceReg
MythVDPAUSurfaceNV m_outputSurfaceReg
Definition: mythvdpauinterop.h:57
ReferenceCounter::IncrRef
virtual int IncrRef(void)
Increments reference count.
Definition: referencecounter.cpp:101
MythVDPAUInterop::m_registerNV
MYTH_VDPAUREGOUTSURFNV m_registerNV
Definition: mythvdpauinterop.h:65
is_interlaced
bool is_interlaced(FrameScanType Scan)
Definition: videoouttypes.h:174
MythVDPAUInterop::DisplayPreempted
void DisplayPreempted(void)
Definition: mythvdpauinterop.cpp:367
MythOpenGLInterop::m_openglTextureSize
QSize m_openglTextureSize
Definition: mythopenglinterop.h:76
MythVDPAUInterop::m_mapNV
MYTH_VDPAUMAPSURFNV m_mapNV
Definition: mythvdpauinterop.h:67
OpenGLLocker
Definition: mythrenderopengl.h:253
MythVDPAUInterop::InitVDPAU
bool InitVDPAU(AVVDPAUDeviceContext *DeviceContext, VdpVideoSurface Surface, MythDeintType Deint, bool DoubleRate)
Definition: mythvdpauinterop.cpp:144