two step process and configurable colorspaces
This commit is contained in:
+7
-2
@@ -516,6 +516,11 @@ void Clip::Close(bool wait) {
|
||||
// delete framebuffers
|
||||
fbo.clear();
|
||||
|
||||
#ifndef NO_OCIO
|
||||
// delete OCIO shader
|
||||
ocio_shader = nullptr;
|
||||
#endif
|
||||
|
||||
if (UsesCacher()) {
|
||||
cacher.Close(wait);
|
||||
} else {
|
||||
@@ -605,8 +610,8 @@ bool Clip::Retrieve()
|
||||
}
|
||||
|
||||
texture->setData(QOpenGLTexture::RGBA,
|
||||
QOpenGLTexture::UInt8,
|
||||
const_cast<const uint8_t*>(using_db_1 ? data_buffer_1 : data_buffer_2));
|
||||
QOpenGLTexture::UInt8,
|
||||
const_cast<const uint8_t*>(using_db_1 ? data_buffer_1 : data_buffer_2));
|
||||
|
||||
if (data_buffer_1 != frame->data[0]) {
|
||||
delete [] data_buffer_1;
|
||||
|
||||
@@ -157,6 +157,11 @@ public:
|
||||
QOpenGLTexture* texture;
|
||||
long texture_frame;
|
||||
|
||||
#ifndef NO_OCIO
|
||||
QOpenGLShaderProgramPtr ocio_shader;
|
||||
GLuint ocio_lut_texture;
|
||||
#endif
|
||||
|
||||
private:
|
||||
// timeline variables (should be copied in copy())
|
||||
bool enabled_;
|
||||
|
||||
Reference in New Issue
Block a user