|
| void | apply_colorspace () override |
| | Configures shader parameters for the specified colorspace.
|
| |
| int | convert (platf::img_t &img) override |
| | Convert the captured image into the target CUDA frame.
|
| |
| 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.
|
| |
| virtual void | init_codec_options (AVCodecContext *ctx, AVDictionary **options) |
| | Provides a hook for allow platform-specific code to adjust codec options.
|
| |
| virtual void | init_hwframes (AVHWFramesContext *frames) |
| | Initialize the hwframes context.
|
| |
| virtual int | prepare_to_derive_context (int hw_device_type) |
| | Prepare to derive a context.
|
| |
◆ apply_colorspace()
| void cuda::gl_cuda_vram_t::apply_colorspace |
( |
| ) |
|
|
inlineoverridevirtual |
◆ convert()
Convert the captured image into the target CUDA frame.
- Parameters
-
| img | Captured screen image. |
- Returns
- 0 on success or -1 on failure.
Reimplemented from platf::avcodec_encode_device_t.
◆ init()
| int cuda::gl_cuda_vram_t::init |
( |
int | in_width, |
|
|
int | in_height, |
|
|
int | offset_x, |
|
|
int | offset_y ) |
|
inline |
Initialize the GL->CUDA encoding device.
- Parameters
-
| in_width | Width of captured frames. |
| in_height | Height of captured frames. |
| offset_x | Offset of content in captured frame. |
| offset_y | Offset of content in captured frame. |
- Returns
- 0 on success or -1 on failure.
◆ set_frame()
| int cuda::gl_cuda_vram_t::set_frame |
( |
AVFrame * | frame, |
|
|
AVBufferRef * | hw_frames_ctx_buf ) |
|
inlineoverridevirtual |
Initialize color conversion into target CUDA frame.
- Parameters
-
| frame | Destination CUDA frame to write into. |
| hw_frames_ctx_buf | FFmpeg hardware frame context. |
- Returns
- 0 on success or -1 on failure.
Reimplemented from platf::avcodec_encode_device_t.
The documentation for this class was generated from the following file: