Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-client-windows
Commits
485d908f
Commit
485d908f
authored
Jul 09, 2015
by
Edric Milaret
Committed by
gerrit2
Jul 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video: use ARGB for faster rendering
Refs #77150 Change-Id: I3c300e468ebea57b8fca097c6980a093cc0e2ff6
parent
68779c43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
videowidget.cpp
videowidget.cpp
+2
-2
No files found.
videowidget.cpp
View file @
485d908f
...
...
@@ -75,7 +75,7 @@ VideoWidget::paintEvent(QPaintEvent *evt) {
if
(
renderer_
&&
currentDistantFrame_
)
{
const
QSize
imgSize
(
renderer_
->
size
());
QImage
distantFrame
(
currentDistantFrame_
.
get
()
->
data
(),
imgSize
.
width
(),
imgSize
.
height
(),
QImage
::
Format_RGB
A8888
);
imgSize
.
width
(),
imgSize
.
height
(),
QImage
::
Format_
A
RGB
32_Premultiplied
);
auto
scaledDistant
=
distantFrame
.
scaled
(
size
(),
Qt
::
KeepAspectRatio
);
auto
xDiff
=
(
width
()
-
scaledDistant
.
width
())
/
2
;
auto
yDiff
=
(
height
()
-
scaledDistant
.
height
())
/
2
;
...
...
@@ -85,7 +85,7 @@ VideoWidget::paintEvent(QPaintEvent *evt) {
const
QSize
imgSize
(
previewRenderer_
->
size
());
QImage
previewFrame
(
currentPreviewFrame_
.
get
()
->
data
(),
imgSize
.
width
(),
imgSize
.
height
(),
QImage
::
Format_RGB
A8888
);
imgSize
.
width
(),
imgSize
.
height
(),
QImage
::
Format_
A
RGB
32_Premultiplied
);
auto
previewHeight
=
!
renderer_
?
height
()
:
height
()
/
4
;
auto
previewWidth
=
!
renderer_
?
width
()
:
width
()
/
4
;
auto
scaledPreview
=
previewFrame
.
scaled
(
previewWidth
,
previewHeight
,
Qt
::
KeepAspectRatio
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment