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
GSoC
GSoC2018
macOS
vlc
Commits
acd71ac3
Commit
acd71ac3
authored
May 02, 2006
by
damienf
Browse files
voutqt.m: use kYUVSPixelFormat for MacIntel CPUs
parent
60b8618d
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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