Commit 87a94467 authored by Stepan Salenikovich's avatar Stepan Salenikovich

Revert "video: update frame api"

This reverts commit 9c992836.

Change-Id: Ibc9cb6662949b3f623ce5f45c5dd94a3a5f5b3ba
parent 9c992836
...@@ -344,10 +344,10 @@ ...@@ -344,10 +344,10 @@
-(void) renderer: (Video::Renderer*)renderer renderFrameForView:(NSView*) view -(void) renderer: (Video::Renderer*)renderer renderFrameForView:(NSView*) view
{ {
auto data = renderer->currentFrame(); const QByteArray& data = renderer->currentFrame();
QSize res = renderer->size(); 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(); CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef newContext = CGBitmapContextCreate((void *)buf, CGContextRef newContext = CGBitmapContextCreate((void *)buf,
......
...@@ -161,10 +161,10 @@ QMetaObject::Connection previewStopped; ...@@ -161,10 +161,10 @@ QMetaObject::Connection previewStopped;
-(void) renderer: (Video::Renderer*)renderer renderFrameForView:(NSView*) view -(void) renderer: (Video::Renderer*)renderer renderFrameForView:(NSView*) view
{ {
auto data = renderer->currentFrame(); const QByteArray& data = renderer->currentFrame();
QSize res = renderer->size(); 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(); CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef newContext = CGBitmapContextCreate((void *)buf, 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