Current section
Files
Jump to
Current section
Files
c_src/membrane_h265_ffmpeg_plugin/encoder.h
#pragma once
#include <libavcodec/avcodec.h>
#include <libavutil/imgutils.h>
#include <libavutil/log.h>
#include <libavutil/opt.h>
typedef struct H265EncoderState {
AVCodecContext *codec_ctx;
unsigned long last_pts;
} State;
#define ENCODER_SEND_FRAME_ERROR -1
#define ENCODER_ENCODE_ERROR -2
#include "_generated/encoder.h"