hdr video can be used in the pipeline without conversion to rgba8888

This commit is contained in:
itsmattkc
2019-03-26 21:58:47 +11:00
parent d8acef21a8
commit 6b40a4ccf8
4 changed files with 9 additions and 8 deletions
+2 -4
View File
@@ -37,8 +37,6 @@
#include "global/debug.h"
#include "global/timing.h"
const int kRGBAComponentCount = 4;
Clip::Clip(Sequence* s) :
sequence(s),
cacher(this),
@@ -584,13 +582,13 @@ bool Clip::Retrieve()
}
f->glPixelStorei(GL_UNPACK_ROW_LENGTH, frame->linesize[0]/kRGBAComponentCount);
int video_width = cacher.media_width();
int video_height = cacher.media_height();
const olive::rendering::BitDepthInfo& bit_depth_info = olive::rendering::bit_depths.at(cacher.media_pixel_format());
f->glPixelStorei(GL_UNPACK_ROW_LENGTH, frame->linesize[0]/bit_depth_info.bytes_per_pixel);
if (allocate_data) {
// the raw frame size may differ from the one we're using (e.g. a lower resolution proxy), so we make sure