Shaka Player Embedded
Classes | Public Member Functions | List of all members
shaka::media::DecoderThread Class Reference

#include <decoder_thread.h>

Classes

class  Client
 

Public Member Functions

 DecoderThread (Client *client, DecodedStream *output)
 
 ~DecoderThread ()
 
 SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE (DecoderThread)
 
void Attach (const ElementaryStream *input)
 
void Detach ()
 
void OnSeek ()
 
void SetCdm (eme::Implementation *cdm)
 
void SetDecoder (Decoder *decoder)
 

Detailed Description

Handles the thread that decodes input content. This handles synchronizing the threads and connecting the Decoder to the Stream.

Definition at line 39 of file decoder_thread.h.

Constructor & Destructor Documentation

§ DecoderThread()

shaka::media::DecoderThread::DecoderThread ( Client client,
DecodedStream output 
)
Parameters
clientA client object for callback events.
outputThe object to put decoded frames into.

Definition at line 55 of file decoder_thread.cc.

§ ~DecoderThread()

shaka::media::DecoderThread::~DecoderThread ( )

Definition at line 69 of file decoder_thread.cc.

Member Function Documentation

§ Attach()

void shaka::media::DecoderThread::Attach ( const ElementaryStream input)

Starts decoding frames from the given stream.

Definition at line 78 of file decoder_thread.cc.

§ Detach()

void shaka::media::DecoderThread::Detach ( )

Stops decoding frames from the current stream.

Definition at line 85 of file decoder_thread.cc.

§ OnSeek()

void shaka::media::DecoderThread::OnSeek ( )

Called when the video seeks. This should reset any internal data and start over decoding.

Definition at line 90 of file decoder_thread.cc.

§ SetCdm()

void shaka::media::DecoderThread::SetCdm ( eme::Implementation cdm)

Definition at line 99 of file decoder_thread.cc.

§ SetDecoder()

void shaka::media::DecoderThread::SetDecoder ( Decoder decoder)

Sets the decoder used to decode frames.

Definition at line 104 of file decoder_thread.cc.

§ SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE()

shaka::media::DecoderThread::SHAKA_NON_COPYABLE_OR_MOVABLE_TYPE ( DecoderThread  )

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