Open Broadcaster Software
Free, open source software for live streaming and recording
obs-encoder.h File Reference

header for modules implementing encoders. More...

Go to the source code of this file.

Data Structures

struct  encoder_packet
 
struct  encoder_frame
 
struct  obs_encoder_info
 

Macros

#define OBS_ENCODER_CAP_DEPRECATED   (1 << 0)
 
#define OBS_ENCODER_CAP_PASS_TEXTURE   (1 << 1)
 
#define OBS_ENCODER_CAP_DYN_BITRATE   (1 << 2)
 
#define OBS_ENCODER_CAP_INTERNAL   (1 << 3)
 
#define obs_register_encoder(info)   obs_register_encoder_s(info, sizeof(struct obs_encoder_info))
 

Enumerations

enum  obs_encoder_type { OBS_ENCODER_AUDIO, OBS_ENCODER_VIDEO }
 

Functions

EXPORT void obs_register_encoder_s (const struct obs_encoder_info *info, size_t size)
 

Detailed Description

header for modules implementing encoders.

Encoders are modules that implement some codec that can be used by libobs to process output data.

Macro Definition Documentation

◆ OBS_ENCODER_CAP_DEPRECATED

#define OBS_ENCODER_CAP_DEPRECATED   (1 << 0)

◆ OBS_ENCODER_CAP_DYN_BITRATE

#define OBS_ENCODER_CAP_DYN_BITRATE   (1 << 2)

◆ OBS_ENCODER_CAP_INTERNAL

#define OBS_ENCODER_CAP_INTERNAL   (1 << 3)

◆ OBS_ENCODER_CAP_PASS_TEXTURE

#define OBS_ENCODER_CAP_PASS_TEXTURE   (1 << 1)

◆ obs_register_encoder

#define obs_register_encoder (   info)    obs_register_encoder_s(info, sizeof(struct obs_encoder_info))

Register an encoder definition to the current obs context. This should be used in obs_module_load.

Parameters
infoPointer to the source definition structure.

Enumeration Type Documentation

◆ obs_encoder_type

Specifies the encoder type

Enumerator
OBS_ENCODER_AUDIO 

The encoder provides an audio codec

OBS_ENCODER_VIDEO 

The encoder provides a video codec

Function Documentation

◆ obs_register_encoder_s()

EXPORT void obs_register_encoder_s ( const struct obs_encoder_info info,
size_t  size 
)