Go to the documentation of this file.
17 int max_width =
m_hd ? 1200 : 600;
18 int max_height =
m_hd ? 800 : 400;
21 int width = (sz.width() > max_width) ? max_width : sz.width();
22 int height = (sz.height() > max_height) ? max_height : sz.height();
23 m_area = QRect(0, 0, width, height);
25 LOG(VB_GENERAL, LOG_INFO, QString(
"Initialised Goom (%1x%2)").arg(width).arg(height));
48 QMutexLocker lock(
mutex());
53 size_t numSamps = 512;
55 numSamps =
static_cast<size_t>(node->
m_length);
58 for (
size_t i = 0; i < numSamps; i++)
60 data[0][i] = node->
m_left[i];
77 QImage image(
m_area.size(), QImage::Format_ARGB32);
78 m_glSurface = glrender->CreateTextureFromQImage(&image);
86 reinterpret_cast<const uint8_t *
>(
m_buffer));
89 glrender->SetBlend(
false);
91 glrender->DrawBitmap(surfaces,
nullptr,
m_area, Area,
nullptr, 0);
92 glrender->SetBlend(
true);
94 glrender->doneCurrent();
104 const QString&
name(
void)
const override
126 const QString&
name(
void)
const override
std::array< GoomSingleData, 2 > GoomDualData
VideoVisualGoom(AudioPlayer *Audio, MythRender *Render, bool HD)
QOpenGLTexture * m_texture
MythGLTexture * m_glSurface
QOpenGLTexture::PixelFormat m_pixelFormat
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
VideoVisualGoomHDFactory VideoVisualGoomHDFactory
VideoVisual * Create(AudioPlayer *Audio, MythRender *Render) const override
bool SupportedRenderer(RenderType Type) override
QOpenGLTexture::PixelType m_pixelType
const QString & name(void) const override
void DeleteTexture(MythGLTexture *Texture)
void goom_init(guint32 resx, guint32 resy, int cinemascope)
guint32 * goom_update(GoomDualData &data, int forceMode)
bool SupportedRenderer(RenderType Type) override
void Draw(QRect Area, MythPainter *Painter, QPaintDevice *Device) override
MythMainWindow * GetMythMainWindow(void)
VideoVisual * Create(AudioPlayer *Audio, MythRender *Render) const override
RenderType Type(void) const
VideoVisualGoomFactory VideoVisualGoomFactory
VisualNode * GetNode(void)
~VideoVisualGoom() override
const QString & name(void) const override