ffmpeg/tools: Add function to translate encoder capabilities

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-07-06 13:07:51 +02:00
parent 93c6f0b35a
commit 143b7f585f
2 changed files with 53 additions and 1 deletions
+4 -1
View File
@@ -20,6 +20,7 @@
#pragma once
#include <obs.h>
#include <string>
extern "C" {
#include <libavutil/pixfmt.h>
@@ -27,6 +28,8 @@ extern "C" {
namespace ffmpeg {
namespace tools {
std::string translate_encoder_capabilities(int capabilities);
const char* get_pixel_format_name(AVPixelFormat v);
const char* get_color_space_name(AVColorSpace v);
@@ -38,7 +41,7 @@ namespace ffmpeg {
AVColorSpace obs_videocolorspace_to_avcolorspace(video_colorspace v);
AVColorRange obs_videorangetype_to_avcolorrange(video_range_type v);
}
} // namespace tools
} // namespace ffmpeg
#endif OBS_FFMPEG_FFMPEG_UTILITY