implemented conversions between internal pixel formats

This commit is contained in:
itsmattkc
2019-08-12 18:24:52 +10:00
parent eca8d98497
commit 3eee9893f8
6 changed files with 236 additions and 1 deletions
+5
View File
@@ -27,6 +27,7 @@
// FIXME: Test code only
#include "decoder/ffmpeg/ffmpegdecoder.h"
#include "render/colorservice.h"
#include "render/pixelservice.h"
// End test code
@@ -112,6 +113,10 @@ void MediaInput::Process(const rational &time)
return;
}
// Use OCIO
frame = PixelService::ConvertPixelFormat(frame, olive::PIX_FMT_RGBA32F);
ColorService::ConvertFrame(frame);
// FIXME: Test code
if (tex_buf_.IsCreated()) {
tex_buf_.Upload(frame->data());