Declarations for video.
More...
#include "input.h"
#include "platform/common.h"
#include "thread_safe.h"
#include "video_colorspace.h"
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
Go to the source code of this file.
|
void | video::capture (safe::mail_t mail, config_t config, void *channel_data) |
|
void | video::free_buffer (AVBufferRef *ref) |
|
void | video::free_ctx (AVCodecContext *ctx) |
|
void | video::free_frame (AVFrame *frame) |
|
platf::mem_type_e | video::map_base_dev_type (AVHWDeviceType type) |
|
platf::pix_fmt_e | video::map_pix_fmt (AVPixelFormat fmt) |
|
int | video::probe_encoders () |
| Probe encoders and select the preferred encoder. This is called once at startup and each time a stream is launched to ensure the best encoder is selected. Encoder availability can change at runtime due to all sorts of things from driver updates to eGPUs.
|
|
bool | video::validate_encoder (encoder_t &encoder, bool expect_failure) |
|
◆ _CONVERT
Value: case flag_e::x: \
return std::string_view(#x)
◆ probe_encoders()
int video::probe_encoders |
( |
| ) |
|
Probe encoders and select the preferred encoder. This is called once at startup and each time a stream is launched to ensure the best encoder is selected. Encoder availability can change at runtime due to all sorts of things from driver updates to eGPUs.
- Warning
- This is only safe to call when there is no client actively streaming.