Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC Browser Plugins
Manage
Activity
Members
Labels
Plan
Issues
26
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC Browser Plugins
Commits
cbf3644c
Commit
cbf3644c
authored
8 years ago
by
Felix Paul Kühne
Browse files
Options
Downloads
Patches
Plain Diff
windowless-mac: base colorspace selection on original video size, not rendering dimensions
parent
bcb1b37d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
npapi/vlcwindowless_mac.cpp
+8
-8
8 additions, 8 deletions
npapi/vlcwindowless_mac.cpp
with
8 additions
and
8 deletions
npapi/vlcwindowless_mac.cpp
+
8
−
8
View file @
cbf3644c
...
...
@@ -279,20 +279,20 @@ bool VlcWindowlessMac::handle_event(void *event)
SInt32
minorVersion
;
Gestalt
(
gestaltSystemVersionMinor
,
&
minorVersion
);
if
(
minorVersion
>=
11
)
{
fprintf
(
stderr
,
"Guessing color space based on video dimensions (
height:
%i)"
,
cached
_height
);
fprintf
(
stderr
,
"Guessing color space based on video dimensions (
%ix
%i)
\n
"
,
m_media_source_width
,
m_media_source
_height
);
if
(
cached
_height
>=
2000
||
cached
_width
>=
3800
)
{
fprintf
(
stderr
,
"
Should use
BT.2020 color space
, but in reality it's BT.709
"
);
colorspace
=
CGColorSpaceCreateWithName
(
kCGColorSpaceITUR_
709
);
}
else
if
(
cached
_height
>
576
)
{
fprintf
(
stderr
,
"Using BT.709 color space"
);
if
(
m_media_source
_height
>=
2000
||
m_media_source
_width
>=
3800
)
{
fprintf
(
stderr
,
"
Using
BT.2020 color space
\n
"
);
colorspace
=
CGColorSpaceCreateWithName
(
kCGColorSpaceITUR_
2020
);
}
else
if
(
m_media_source
_height
>
576
)
{
fprintf
(
stderr
,
"Using BT.709 color space
\n
"
);
colorspace
=
CGColorSpaceCreateWithName
(
kCGColorSpaceITUR_709
);
}
else
{
fprintf
(
stderr
,
"SD content, using linear RGB color space"
);
fprintf
(
stderr
,
"SD content, using linear RGB color space
\n
"
);
colorspace
=
CGColorSpaceCreateWithName
(
kCGColorSpaceSRGB
);
}
}
else
{
fprintf
(
stderr
,
"OS does not support BT.709 or BT.2020 color spaces, output may vary"
);
fprintf
(
stderr
,
"
WARNING:
OS does not support BT.709 or BT.2020 color spaces, output may vary
\n
"
);
colorspace
=
CGColorSpaceCreateWithName
(
kCGColorSpaceGenericRGBLinear
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment