#include <screen_connector.h>
|
| INJECT (ScreenConnector(WaylandScreenConnector &sc_android_src, HostModeCtrl &host_mode_ctrl)) |
|
virtual | ~ScreenConnector ()=default |
|
void | SetCallback (GenerateProcessedFrameCallback &&frame_callback) |
|
void | InjectFrame (std::uint32_t display_number, std::uint32_t frame_w, std::uint32_t frame_h, std::uint32_t frame_fourcc_format, std::uint32_t frame_stride_bytes, std::uint8_t *frame_bytes) |
|
bool | IsCallbackSet () const override |
|
void | SetDisplayEventCallback (DisplayEventCallback event_callback) |
|
ProcessedFrameType | OnNextFrame () |
|
bool | RenderConfirmationUi (std::uint32_t display_number, std::uint32_t frame_width, std::uint32_t frame_height, std::uint32_t frame_fourcc_format, std::uint32_t frame_stride_bytes, std::uint8_t *frame_bytes) override |
|
virtual bool | RenderConfirmationUi (uint32_t display_number, uint32_t frame_width, uint32_t frame_height, uint32_t frame_fourcc_format, uint32_t frame_stride_bytes, uint8_t *frame_bytes)=0 |
|
virtual bool | IsCallbackSet () const =0 |
|
virtual | ~ScreenConnectorFrameRenderer ()=default |
|
◆ FrameMultiplexer
template<typename ProcessedFrameType >
◆ GenerateProcessedFrameCallback
template<typename ProcessedFrameType >
using cuttlefish::ScreenConnector< ProcessedFrameType >::GenerateProcessedFrameCallback = std::function<void( std::uint32_t , std::uint32_t , std::uint32_t , std::uint32_t , std::uint32_t , std::uint8_t* , ProcessedFrameType& msg)> |
This is the type of the callback function WebRTC is supposed to provide ScreenConnector with.
The callback function is how a raw bytes frame should be processed for WebRTC
◆ ~ScreenConnector()
template<typename ProcessedFrameType >
◆ ScreenConnector()
template<typename ProcessedFrameType >
◆ INJECT()
template<typename ProcessedFrameType >
◆ InjectFrame()
template<typename ProcessedFrameType >
void cuttlefish::ScreenConnector< ProcessedFrameType >::InjectFrame |
( |
std::uint32_t |
display_number, |
|
|
std::uint32_t |
frame_w, |
|
|
std::uint32_t |
frame_h, |
|
|
std::uint32_t |
frame_fourcc_format, |
|
|
std::uint32_t |
frame_stride_bytes, |
|
|
std::uint8_t * |
frame_bytes |
|
) |
| |
|
inline |
◆ IsCallbackSet()
template<typename ProcessedFrameType >
◆ OnNextFrame()
template<typename ProcessedFrameType >
◆ RenderConfirmationUi()
template<typename ProcessedFrameType >
bool cuttlefish::ScreenConnector< ProcessedFrameType >::RenderConfirmationUi |
( |
std::uint32_t |
display_number, |
|
|
std::uint32_t |
frame_width, |
|
|
std::uint32_t |
frame_height, |
|
|
std::uint32_t |
frame_fourcc_format, |
|
|
std::uint32_t |
frame_stride_bytes, |
|
|
std::uint8_t * |
frame_bytes |
|
) |
| |
|
inlineoverride |
ConfUi calls this when it has frames to render
This won't be called if not by Confirmation UI. This won't affect rendering Android guest frames if Confirmation UI HAL is not active.
◆ SetCallback()
template<typename ProcessedFrameType >
set the callback function to be eventually used by Wayland-Based Connector
◆ SetDisplayEventCallback()
template<typename ProcessedFrameType >
◆ callback_from_streamer_
template<typename ProcessedFrameType >
◆ host_mode_ctrl_
template<typename ProcessedFrameType >
◆ on_next_frame_cnt_
template<typename ProcessedFrameType >
◆ render_confui_cnt_
template<typename ProcessedFrameType >
◆ sc_android_src_
template<typename ProcessedFrameType >
◆ sc_frame_multiplexer_
template<typename ProcessedFrameType >
internally has conf ui & android queues.
multiplexting the two input queues, so the consumer gets one input at a time from the right queue
◆ streamer_callback_mutex_
template<typename ProcessedFrameType >
◆ streamer_callback_set_cv_
template<typename ProcessedFrameType >
The documentation for this class was generated from the following file: