Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
video::avcodec_software_encode_device_t Class Reference
Inheritance diagram for video::avcodec_software_encode_device_t:
[legend]
Collaboration diagram for video::avcodec_software_encode_device_t:
[legend]

Public Member Functions

int convert (platf::img_t &img) override
int set_frame (AVFrame *frame, AVBufferRef *hw_frames_ctx) override
 Set the frame to be encoded.
void apply_colorspace () override
void prefill ()
int init (int in_width, int in_height, AVFrame *frame, AVPixelFormat format, bool hardware)
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

avcodec_frame_t hw_frame
avcodec_frame_t sw_frame
avcodec_frame_t sws_input_frame
avcodec_frame_t sws_output_frame
sws_t sws
int offsetW
int offsetH
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

Detailed Description

Definition at line 96 of file video.cpp.

Member Function Documentation

◆ apply_colorspace()

void video::avcodec_software_encode_device_t::apply_colorspace ( )
inlineoverridevirtual

Reimplemented from platf::avcodec_encode_device_t.

Definition at line 161 of file video.cpp.

◆ convert()

int video::avcodec_software_encode_device_t::convert ( platf::img_t & img)
inlineoverridevirtual

Reimplemented from platf::avcodec_encode_device_t.

Definition at line 98 of file video.cpp.

◆ init()

int video::avcodec_software_encode_device_t::init ( int in_width,
int in_height,
AVFrame * frame,
AVPixelFormat format,
bool hardware )
inline

Definition at line 177 of file video.cpp.

◆ prefill()

void video::avcodec_software_encode_device_t::prefill ( )
inline

When preserving aspect ratio, ensure that padding is black

Definition at line 169 of file video.cpp.

◆ set_frame()

int video::avcodec_software_encode_device_t::set_frame ( AVFrame * frame,
AVBufferRef * hw_frames_ctx )
inlineoverridevirtual

Set the frame to be encoded.

Note
Implementations must take ownership of 'frame'.

Reimplemented from platf::avcodec_encode_device_t.

Definition at line 144 of file video.cpp.

Member Data Documentation

◆ hw_frame

avcodec_frame_t video::avcodec_software_encode_device_t::hw_frame

Definition at line 248 of file video.cpp.

◆ offsetH

int video::avcodec_software_encode_device_t::offsetH

Definition at line 257 of file video.cpp.

◆ offsetW

int video::avcodec_software_encode_device_t::offsetW

Definition at line 256 of file video.cpp.

◆ sw_frame

avcodec_frame_t video::avcodec_software_encode_device_t::sw_frame

Definition at line 250 of file video.cpp.

◆ sws

sws_t video::avcodec_software_encode_device_t::sws

Definition at line 253 of file video.cpp.

◆ sws_input_frame

avcodec_frame_t video::avcodec_software_encode_device_t::sws_input_frame

Definition at line 251 of file video.cpp.

◆ sws_output_frame

avcodec_frame_t video::avcodec_software_encode_device_t::sws_output_frame

Definition at line 252 of file video.cpp.


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