Commit 0012eab6 authored by Edric Milaret's avatar Edric Milaret Committed by Stepan Salenikovich

video: only use RGBA pixel format for OSX

- Using ARGB with Qt Painter is faster
(3 to 5 percent less of average cpu load on Windows Qt Client)

Refs #77150

Change-Id: I13838ae2174040ac4c0e6635e55afef35a57976d
parent d11d5998
......@@ -339,7 +339,11 @@ SinkClient::update(Observable<std::shared_ptr<VideoFrame>>* /*obs*/,
VideoScaler scaler;
const int width = f->width();
const int height = f->height();
#ifndef __APPLE__
const int format = VIDEO_PIXFMT_BGRA;
#else
const int format = VIDEO_PIXFMT_RGBA;
#endif
const auto bytes = videoFrameSize(format, width, height);
if (bytes > 0) {
......
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