|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Encoder session state shared by capture and encoding threads. More...
#include <src/video.h>
Public Member Functions | |
| virtual int | convert (platf::img_t &img)=0 |
| Convert a captured frame into the encoder's required input representation. | |
| virtual void | invalidate_ref_frames (int64_t first_frame, int64_t last_frame)=0 |
| Mark the frame range whose references must be invalidated. | |
| virtual void | request_idr_frame ()=0 |
| Mark the frame as a request for an IDR frame. | |
| virtual void | request_normal_frame ()=0 |
| Mark the frame as a request for a normal inter frame. | |
Encoder session state shared by capture and encoding threads.
|
pure virtual |
Convert a captured frame into the encoder's required input representation.
| img | Captured image supplied by the platform display backend. |
Implemented in video::avcodec_encode_session_t, and video::nvenc_encode_session_t.
|
pure virtual |
Mark the frame range whose references must be invalidated.
| first_frame | First frame. |
| last_frame | Last frame. |
Implemented in video::avcodec_encode_session_t, and video::nvenc_encode_session_t.
|
pure virtual |
Mark the frame as a request for an IDR frame.
Implemented in video::avcodec_encode_session_t, and video::nvenc_encode_session_t.
|
pure virtual |
Mark the frame as a request for a normal inter frame.
Implemented in video::avcodec_encode_session_t, and video::nvenc_encode_session_t.