Android-cuttlefish cvd tool
Public Member Functions | Public Attributes | List of all members
cuttlefish::webrtc_streaming::LocalRecorder::Display Class Reference
Inheritance diagram for cuttlefish::webrtc_streaming::LocalRecorder::Display:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::webrtc_streaming::LocalRecorder::Display:
Collaboration graph
[legend]

Public Member Functions

 Display (LocalRecorder::Impl &impl)
 
 ~Display ()
 
void EncoderLoop ()
 
void Stop ()
 
virtual void OnFrame (const webrtc::VideoFrame &frame) override
 
virtual webrtc::EncodedImageCallback::Result OnEncodedImage (const webrtc::EncodedImage &encoded_image, const webrtc::CodecSpecificInfo *codec_specific_info) override
 

Public Attributes

LocalRecorder::Implimpl_
 
std::shared_ptr< webrtc::VideoTrackSourceInterface > source_
 
std::unique_ptr< webrtc::VideoEncoder > video_encoder_
 
uint64_t video_track_number_
 
std::thread encoder_thread_
 
std::condition_variable encoder_queue_signal_
 
std::mutex encode_queue_mutex_
 
std::list< webrtc::VideoFrame > encode_queue_
 
std::atomic_bool encoder_running_ = true
 

Constructor & Destructor Documentation

◆ Display()

cuttlefish::webrtc_streaming::LocalRecorder::Display::Display ( LocalRecorder::Impl impl)

◆ ~Display()

cuttlefish::webrtc_streaming::LocalRecorder::Display::~Display ( )
inline

Member Function Documentation

◆ EncoderLoop()

void cuttlefish::webrtc_streaming::LocalRecorder::Display::EncoderLoop ( )

◆ OnEncodedImage()

webrtc::EncodedImageCallback::Result cuttlefish::webrtc_streaming::LocalRecorder::Display::OnEncodedImage ( const webrtc::EncodedImage &  encoded_image,
const webrtc::CodecSpecificInfo *  codec_specific_info 
)
overridevirtual

◆ OnFrame()

void cuttlefish::webrtc_streaming::LocalRecorder::Display::OnFrame ( const webrtc::VideoFrame &  frame)
overridevirtual

◆ Stop()

void cuttlefish::webrtc_streaming::LocalRecorder::Display::Stop ( )

Member Data Documentation

◆ encode_queue_

std::list<webrtc::VideoFrame> cuttlefish::webrtc_streaming::LocalRecorder::Display::encode_queue_

◆ encode_queue_mutex_

std::mutex cuttlefish::webrtc_streaming::LocalRecorder::Display::encode_queue_mutex_

◆ encoder_queue_signal_

std::condition_variable cuttlefish::webrtc_streaming::LocalRecorder::Display::encoder_queue_signal_

◆ encoder_running_

std::atomic_bool cuttlefish::webrtc_streaming::LocalRecorder::Display::encoder_running_ = true

◆ encoder_thread_

std::thread cuttlefish::webrtc_streaming::LocalRecorder::Display::encoder_thread_

◆ impl_

LocalRecorder::Impl& cuttlefish::webrtc_streaming::LocalRecorder::Display::impl_

◆ source_

std::shared_ptr<webrtc::VideoTrackSourceInterface> cuttlefish::webrtc_streaming::LocalRecorder::Display::source_

◆ video_encoder_

std::unique_ptr<webrtc::VideoEncoder> cuttlefish::webrtc_streaming::LocalRecorder::Display::video_encoder_

◆ video_track_number_

uint64_t cuttlefish::webrtc_streaming::LocalRecorder::Display::video_track_number_

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