Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
acd71ac3
Commit
acd71ac3
authored
May 02, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
voutqt.m: use kYUVSPixelFormat for MacIntel CPUs
parent
60b8618d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/gui/macosx/voutqt.m
modules/gui/macosx/voutqt.m
+6
-5
No files found.
modules/gui/macosx/voutqt.m
View file @
acd71ac3
...
...
@@ -62,7 +62,7 @@ struct vout_sys_t
VLCVoutView
*
o_vout_view
;
vlc_bool_t
b_saved_frame
;
vlc_bool_t
b_
altivec
;
vlc_bool_t
b_
cpu_has_simd
;
/* does CPU supports Altivec, MMX, etc... */
NSRect
s_frame
;
CodecType
i_codec
;
...
...
@@ -146,8 +146,9 @@ int E_(OpenVideoQT) ( vlc_object_t *p_this )
else
p_vout
->
p_sys
->
b_embedded
=
VLC_FALSE
;
p_vout
->
p_sys
->
b_altivec
=
p_vout
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_ALTIVEC
;
msg_Dbg
(
p_vout
,
"we do%s have Altivec"
,
p_vout
->
p_sys
->
b_altivec
?
""
:
"n't"
);
p_vout
->
p_sys
->
b_cpu_has_simd
=
(
p_vout
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_ALTIVEC
)
|
(
p_vout
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_MMXEXT
);
msg_Dbg
(
p_vout
,
"we do%s have SIMD enabled CPU"
,
p_vout
->
p_sys
->
b_cpu_has_simd
?
""
:
"n't"
);
/* Initialize QuickTime */
p_vout
->
p_sys
->
h_img_descr
=
...
...
@@ -168,7 +169,7 @@ int E_(OpenVideoQT) ( vlc_object_t *p_this )
vlc_mutex_lock
(
&
p_vout
->
p_vlc
->
quicktime_lock
);
/* Can we find the right chroma ? */
if
(
p_vout
->
p_sys
->
b_
altivec
)
if
(
p_vout
->
p_sys
->
b_
cpu_has_simd
)
{
err
=
FindCodec
(
kYUVSPixelFormat
,
bestSpeedCodec
,
nil
,
&
p_vout
->
p_sys
->
img_dc
);
...
...
@@ -182,7 +183,7 @@ int E_(OpenVideoQT) ( vlc_object_t *p_this )
if
(
err
==
noErr
&&
p_vout
->
p_sys
->
img_dc
!=
0
)
{
if
(
p_vout
->
p_sys
->
b_
altivec
)
if
(
p_vout
->
p_sys
->
b_
cpu_has_simd
)
{
p_vout
->
output
.
i_chroma
=
VLC_FOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
);
p_vout
->
p_sys
->
i_codec
=
kYUVSPixelFormat
;
...
...
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