Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
df6abf27
Commit
df6abf27
authored
Jul 09, 2019
by
Kateryna Kostiuk
Committed by
Andreas Traczyk
Jul 09, 2019
Browse files
video: set pixel format for macOS
Change-Id: I0d3c7a0ec4a09504b25e36e23c9b44c02aff3d71
parent
8e2e9f4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/media/video/osxvideo/video_device_impl.mm
View file @
df6abf27
...
...
@@ -115,6 +115,7 @@ VideoDeviceImpl::getDeviceParams() const
params
.
input
=
params
.
name
;
params
.
framerate
=
rate_
;
params
.
format
=
"avfoundation"
;
params
.
pixel_format
=
"nv12"
;
params
.
width
=
current_size_
.
first
;
params
.
height
=
current_size_
.
second
;
return
params
;
...
...
src/media/video/video_input.cpp
View file @
df6abf27
...
...
@@ -456,6 +456,7 @@ VideoInput::initAVFoundation(const std::string& display)
clearOptions
();
decOpts_
.
format
=
"avfoundation"
;
decOpts_
.
pixel_format
=
"nv12"
;
decOpts_
.
input
=
"Capture screen 0"
;
decOpts_
.
framerate
=
30
;
...
...
Write
Preview
Supports
Markdown
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