bool VideoOutputOpenGL::Init(int width, int height, float aspect, WId winid, const QRect &win_rect, MythCodecID codec_id) { QMutexLocker locker(&gl_context_lock); bool success = true; // FIXME Mac OS X overlay does not work with preview window.SetAllowPreviewEPG(true); gl_parent_win = winid; VideoOutput::Init(width, height, aspect, winid, win_rect, codec_id); SetProfile(); InitPictureAttributes(); success &= SetupContext(); InitDisplayMeasurements(width, height, false); success &= CreateBuffers(); success &= CreatePauseFrame(); success &= SetupOpenGL(); InitOSD(); MoveResize(); if (!success) TearDown(); return success; }
bool VideoOutputOpenGL::CreateGPUResources(void) { bool result = SetupContext(); QSize size = window.GetActualVideoDim(); InitDisplayMeasurements(size.width(), size.height(), false); InitOSD(); return result; }
cDisplay3BPPHalf::cDisplay3BPPHalf(int x0, int y0, int width, int height, bool upper) : cDisplay(width,height) { OsdX0=x0; OsdY0=y0; Upper=upper; osd=NULL; // Redirect all real init work to method InitOSD(); }