2024-10-08 02:29:00 +00:00
|
|
|
#ifndef PLACEBO_H
|
|
|
|
#define PLACEBO_H
|
|
|
|
|
|
|
|
#include <filesystem>
|
|
|
|
|
2024-10-10 07:23:13 +00:00
|
|
|
extern "C" {
|
2024-10-08 02:29:00 +00:00
|
|
|
#include <libavcodec/avcodec.h>
|
|
|
|
#include <libavfilter/avfilter.h>
|
2024-10-10 07:23:13 +00:00
|
|
|
}
|
2024-10-08 02:29:00 +00:00
|
|
|
|
|
|
|
int init_libplacebo(
|
2024-10-10 07:23:13 +00:00
|
|
|
AVBufferRef *hw_ctx,
|
2024-10-08 02:29:00 +00:00
|
|
|
AVFilterGraph **filter_graph,
|
|
|
|
AVFilterContext **buffersrc_ctx,
|
|
|
|
AVFilterContext **buffersink_ctx,
|
|
|
|
AVCodecContext *dec_ctx,
|
|
|
|
int output_width,
|
|
|
|
int output_height,
|
|
|
|
const std::filesystem::path &shader_path
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif // PLACEBO_H
|