two step process and configurable colorspaces

This commit is contained in:
itsmattkc
2019-03-20 01:42:40 +11:00
parent 0a5c3fe36e
commit 7d337e6de2
17 changed files with 559 additions and 244 deletions
+7 -2
View File
@@ -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;