Commit 9c992836 authored by Alexandre Lision's avatar Alexandre Lision

video: update frame api

Refs #75280

Change-Id: I63b200f7d41492cf1ddbf9a97c028ac95df1d792
parent e78a09bb
......@@ -344,10 +344,10 @@
-(void) renderer: (Video::Renderer*)renderer renderFrameForView:(NSView*) view
{
const QByteArray& data = renderer->currentFrame();
auto data = renderer->currentFrame();
QSize res = renderer->size();
auto buf = reinterpret_cast<const unsigned char*>(data.data());
auto buf = reinterpret_cast<const unsigned char*>(data->data());
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef newContext = CGBitmapContextCreate((void *)buf,
......
......@@ -161,10 +161,10 @@ QMetaObject::Connection previewStopped;
-(void) renderer: (Video::Renderer*)renderer renderFrameForView:(NSView*) view
{
const QByteArray& data = renderer->currentFrame();
auto data = renderer->currentFrame();
QSize res = renderer->size();
auto buf = reinterpret_cast<const unsigned char*>(data.data());
auto buf = reinterpret_cast<const unsigned char*>(data->data());
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef newContext = CGBitmapContextCreate((void *)buf,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment