Shaka Player Embedded
Classes | Public Member Functions | List of all members
shaka::SdlFrameDrawer Class Referencefinal

#include <sdl_frame_drawer.h>

Classes

class  Impl
 

Public Member Functions

 SdlFrameDrawer ()
 
 SdlFrameDrawer (SdlFrameDrawer &&)
 
 ~SdlFrameDrawer ()
 
SdlFrameDraweroperator= (SdlFrameDrawer &&)
 
 SdlFrameDrawer (const SdlFrameDrawer &)=delete
 
SdlFrameDraweroperator= (const SdlFrameDrawer &)=delete
 
void SetRenderer (SDL_Renderer *renderer)
 
SDL_Texture * Draw (std::shared_ptr< media::DecodedFrame > frame)
 

Detailed Description

A helper class that is used to convert Shaka Embedded Frame objects into an SDL texture.

Definition at line 34 of file sdl_frame_drawer.h.

Constructor & Destructor Documentation

§ SdlFrameDrawer() [1/3]

shaka::SdlFrameDrawer::SdlFrameDrawer ( )

Definition at line 253 of file sdl_frame_drawer.cc.

§ SdlFrameDrawer() [2/3]

shaka::SdlFrameDrawer::SdlFrameDrawer ( SdlFrameDrawer &&  )
default

§ ~SdlFrameDrawer()

shaka::SdlFrameDrawer::~SdlFrameDrawer ( )

Definition at line 255 of file sdl_frame_drawer.cc.

§ SdlFrameDrawer() [3/3]

shaka::SdlFrameDrawer::SdlFrameDrawer ( const SdlFrameDrawer )
delete

Member Function Documentation

§ Draw()

SDL_Texture * shaka::SdlFrameDrawer::Draw ( std::shared_ptr< media::DecodedFrame frame)

Draws the given frame onto a texture. This may invalidate any existing textures.

Parameters
frameThe frame to draw.
Returns
The created texture, or nullptr on error.

Definition at line 262 of file sdl_frame_drawer.cc.

§ operator=() [1/2]

SdlFrameDrawer & shaka::SdlFrameDrawer::operator= ( SdlFrameDrawer &&  )
default

§ operator=() [2/2]

SdlFrameDrawer& shaka::SdlFrameDrawer::operator= ( const SdlFrameDrawer )
delete

§ SetRenderer()

void shaka::SdlFrameDrawer::SetRenderer ( SDL_Renderer *  renderer)

Sets the renderer used to create textures. This MUST be called at least once before calling Draw. This can be changed at any time, but will invalidate any existing textures.

Definition at line 258 of file sdl_frame_drawer.cc.


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