Files
oak-editor/app/render/colorservice.h
T

27 lines
516 B
C++

#ifndef COLORSERVICE_H
#define COLORSERVICE_H
#include <memory>
#include <OpenColorIO/OpenColorIO.h>
namespace OCIO = OCIO_NAMESPACE::v1;
#include "decoder/frame.h"
#include "render/gl/shadergenerators.h"
class ColorService
{
public:
ColorService(const char *source_space, const char *dest_space);
void ConvertFrame(FramePtr f);
OCIO::ConstProcessorRcPtr GetProcessor();
private:
OCIO::ConstProcessorRcPtr processor;
};
using ColorServicePtr = std::shared_ptr<ColorService>;
#endif // COLORSERVICE_H