implemented conversions between internal pixel formats
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user