|
Hermes 0.7.0
Linux game streaming host
|
Public Member Functions | |
| int | init (int in_width, int in_height, int offset_x, int offset_y) |
| Initialize the GL->CUDA encoding device. | |
| int | set_frame (AVFrame *frame, AVBufferRef *hw_frames_ctx_buf) override |
| Initialize color conversion into target CUDA frame. | |
| int | convert (platf::img_t &img) override |
| Convert the captured image into the target CUDA frame. | |
| void | apply_colorspace () override |
| Configures shader parameters for the specified colorspace. | |
| Public Member Functions inherited from platf::avcodec_encode_device_t | |
| virtual void | init_hwframes (AVHWFramesContext *frames) |
| Initialize the hwframes context. | |
| virtual void | init_codec_options (AVCodecContext *ctx, AVDictionary **options) |
| Provides a hook for allow platform-specific code to adjust codec options. | |
| virtual int | prepare_to_derive_context (int hw_device_type) |
| Prepare to derive a context. | |
Public Attributes | |
| file_t | file |
| gbm::gbm_t | gbm |
| egl::display_t | display |
| egl::ctx_t | ctx |
| stream_t | stream |
| frame_t | hwframe |
| egl::sws_t | sws |
| egl::nv12_t | nv12 |
| AVPixelFormat | sw_format |
| int | width |
| int | height |
| std::uint64_t | sequence |
| egl::rgb_t | rgb |
| registered_resource_t | y_res |
| registered_resource_t | uv_res |
| int | offset_x |
| int | offset_y |
| Public Attributes inherited from platf::avcodec_encode_device_t | |
| void * | data {} |
| AVFrame * | frame {} |
| Public Attributes inherited from platf::encode_device_t | |
| video::sunshine_colorspace_t | colorspace |
|
inlineoverridevirtual |
Configures shader parameters for the specified colorspace.
Reimplemented from platf::avcodec_encode_device_t.
|
inlineoverridevirtual |
Convert the captured image into the target CUDA frame.
| img | Captured screen image. |
Reimplemented from platf::avcodec_encode_device_t.
|
inline |
|
inlineoverridevirtual |
Initialize color conversion into target CUDA frame.
| frame | Destination CUDA frame to write into. |
| hw_frames_ctx_buf | FFmpeg hardware frame context. |
Reimplemented from platf::avcodec_encode_device_t.
| egl::sws_t cuda::gl_cuda_vram_t::sws |