xbmc
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CLinuxRendererGLES Class Reference
Inheritance diagram for CLinuxRendererGLES:
Inheritance graph
[legend]
Collaboration diagram for CLinuxRendererGLES:
Collaboration graph
[legend]

Classes

struct  CPictureBuffer
 
struct  CYuvPlane
 

Public Member Functions

bool Configure (const VideoPicture &picture, float fps, unsigned int orientation) override
 
bool IsConfigured () override
 
void AddVideoPicture (const VideoPicture &picture, int index) override
 
void UnInit () override
 
bool Flush (bool saveBuffers) override
 
void SetBufferSize (int numBuffers) override
 
bool IsGuiLayer () override
 
void ReleaseBuffer (int idx) override
 
void RenderUpdate (int index, int index2, bool clear, unsigned int flags, unsigned int alpha) override
 
void Update () override
 
bool RenderCapture (CRenderCapture *capture) override
 
CRenderInfo GetRenderInfo () override
 
bool ConfigChanged (const VideoPicture &picture) override
 
bool SupportsMultiPassRendering () override
 
bool Supports (ERENDERFEATURE feature) const override
 
bool Supports (ESCALINGMETHOD method) const override
 
CRenderCaptureGetRenderCapture () override
 
- Public Member Functions inherited from CBaseRenderer
virtual bool IsPictureHW (const VideoPicture &picture)
 
virtual bool NeedBuffer (int idx)
 
virtual bool WantsDoublePass ()
 
void SetViewMode (int viewMode)
 
void GetVideoRect (CRect &source, CRect &dest, CRect &view) const
 Get video rectangle and view window. More...
 
float GetAspectRatio () const
 
void SetVideoSettings (const CVideoSettings &settings)
 
virtual DEBUG_INFO_VIDEO GetDebugInfo (int idx)
 

Static Public Member Functions

static CBaseRendererCreate (CVideoBuffer *buffer)
 
static bool Register ()
 
- Static Public Member Functions inherited from CBaseRenderer
static void SettingOptionsRenderMethodsFiller (const std::shared_ptr< const CSetting > &setting, std::vector< IntegerSettingOption > &list, int &current, void *data)
 

Protected Member Functions

virtual void Render (unsigned int flags, int index)
 
virtual void RenderUpdateVideo (bool clear, unsigned int flags=0, unsigned int alpha=255)
 
int NextYV12Texture ()
 
virtual bool ValidateRenderTarget ()
 
virtual void LoadShaders (int field=FIELD_FULL)
 
virtual void ReleaseShaders ()
 
void SetTextureFilter (GLenum method)
 
void UpdateVideoFilter ()
 
AVColorPrimaries GetSrcPrimaries (AVColorPrimaries srcPrimaries, unsigned int width, unsigned int height)
 
virtual bool UploadTexture (int index)
 
virtual void DeleteTexture (int index)
 
virtual bool CreateTexture (int index)
 
bool UploadYV12Texture (int index)
 
void DeleteYV12Texture (int index)
 
bool CreateYV12Texture (int index)
 
virtual bool SkipUploadYV12 (int index)
 
bool UploadNV12Texture (int index)
 
void DeleteNV12Texture (int index)
 
bool CreateNV12Texture (int index)
 
void CalculateTextureSourceRects (int source, int num_planes)
 
void RenderToFBO (int index, int field)
 
void RenderFromFBO ()
 
void RenderSinglePass (int index, int field)
 
virtual bool LoadShadersHook ()
 
virtual bool RenderHook (int idx)
 
virtual void AfterRenderHook (int idx)
 
void LoadPlane (CYuvPlane &plane, int type, unsigned width, unsigned height, int stride, int bpp, void *data)
 
- Protected Member Functions inherited from CBaseRenderer
void CalcDestRect (float offsetX, float offsetY, float width, float height, float inputFrameRatio, float zoomAmount, float verticalShift, CRect &destRect)
 
void CalcNormalRenderRect (float offsetX, float offsetY, float width, float height, float inputFrameRatio, float zoomAmount, float verticalShift)
 
void CalculateFrameAspectRatio (unsigned int desired_width, unsigned int desired_height)
 
virtual void ManageRenderArea ()
 
virtual void ReorderDrawPoints ()
 
virtual EShaderFormat GetShaderFormat ()
 
void MarkDirty ()
 
void saveRotatedCoords ()
 
void syncDestRectToRotatedPoints ()
 
void restoreRotatedCoords ()
 

Protected Attributes

struct {
   CFrameBufferObject   fbo
 
   float   width {0.0}
 
   float   height {0.0}
 
m_fbo
 
int m_iYV12RenderBuffer {0}
 
int m_NumYV12Buffers {0}
 
bool m_bConfigured {false}
 
bool m_bValidated {false}
 
GLenum m_textureTarget = GL_TEXTURE_2D
 
int m_renderMethod {RENDER_GLSL}
 
RenderQuality m_renderQuality {RQ_SINGLEPASS}
 
int m_currentField {FIELD_FULL}
 
int m_reloadShaders {0}
 
CRenderSystemGLESm_renderSystem {nullptr}
 
GLenum m_pixelStoreKey {0}
 
CPictureBuffer m_buffers [NUM_BUFFERS]
 
Shaders::GLES::BaseYUV2RGBGLSLShaderm_pYUVProgShader {nullptr}
 
Shaders::GLES::BaseYUV2RGBGLSLShaderm_pYUVBobShader {nullptr}
 
Shaders::GLES::BaseVideoFilterShaderm_pVideoFilterShader {nullptr}
 
ESCALINGMETHOD m_scalingMethod {VS_SCALINGMETHOD_LINEAR}
 
ESCALINGMETHOD m_scalingMethodGui {VS_SCALINGMETHOD_MAX}
 
bool m_fullRange
 
AVColorPrimaries m_srcPrimaries
 
bool m_toneMap = false
 
ETONEMAPMETHOD m_toneMapMethod = VS_TONEMAPMETHOD_OFF
 
bool m_passthroughHDR = false
 
unsigned char * m_planeBuffer = nullptr
 
size_t m_planeBufferSize = 0
 
float m_clearColour {0.0f}
 
CRect m_viewRect
 
- Protected Attributes inherited from CBaseRenderer
unsigned int m_sourceWidth = 720
 
unsigned int m_sourceHeight = 480
 
float m_sourceFrameRatio = 1.0f
 
float m_fps = 0.0f
 
unsigned int m_renderOrientation = 0
 
CPoint m_rotatedDestCoords [4]
 
CPoint m_savedRotatedDestCoords [4]
 
CRect m_destRect
 
CRect m_sourceRect
 
CRect m_viewRect
 
unsigned m_iFlags = 0
 
AVPixelFormat m_format = AV_PIX_FMT_NONE
 
CVideoSettings m_videoSettings
 

Static Protected Attributes

static const int FIELD_FULL {0}
 
static const int FIELD_TOP {1}
 
static const int FIELD_BOT {2}
 

The documentation for this class was generated from the following files: