Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f4cb3f99
Commit
f4cb3f99
authored
Jul 30, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videotoolbox: added support for ProRes
parent
1a28a5c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
modules/codec/videotoolbox.m
modules/codec/videotoolbox.m
+30
-3
No files found.
modules/codec/videotoolbox.m
View file @
f4cb3f99
...
...
@@ -156,7 +156,34 @@ static CMVideoCodecType CodecPrecheck(decoder_t *p_dec)
break
;
#if !TARGET_OS_IPHONE
/* there are no DV decoders on iOS, so bailout early */
/* there are no DV or ProRes decoders on iOS, so bailout early */
case
VLC_CODEC_PRORES
:
/* the VT decoder can't differenciate between the ProRes flavors, so we do it */
switch
(
p_dec
->
fmt_in
.
i_original_fourcc
)
{
case
VLC_FOURCC
(
'a'
,
'p'
,
'4'
,
'c'
):
case
VLC_FOURCC
(
'a'
,
'p'
,
'4'
,
'h'
):
codec
=
kCMVideoCodecType_AppleProRes4444
;
break
;
case
VLC_FOURCC
(
'a'
,
'p'
,
'c'
,
'h'
):
codec
=
kCMVideoCodecType_AppleProRes422HQ
;
break
;
case
VLC_FOURCC
(
'a'
,
'p'
,
'c'
,
's'
):
codec
=
kCMVideoCodecType_AppleProRes422LT
;
break
;
case
VLC_FOURCC
(
'a'
,
'p'
,
'c'
,
'o'
):
codec
=
kCMVideoCodecType_AppleProRes422Proxy
;
break
;
default:
codec
=
kCMVideoCodecType_AppleProRes422
;
break
;
}
if
(
codec
!=
0
)
break
;
case
VLC_CODEC_DV
:
/* the VT decoder can't differenciate between PAL and NTSC, so we need to do it */
switch
(
p_dec
->
fmt_in
.
i_original_fourcc
)
{
...
...
@@ -234,9 +261,9 @@ static int StartVideoToolbox(decoder_t *p_dec, block_t *p_block)
/* Do a late opening if there is no extra data and no valid video size */
if
((
p_dec
->
fmt_in
.
video
.
i_width
==
0
||
p_dec
->
fmt_in
.
video
.
i_height
==
0
||
p_dec
->
fmt_in
.
i_extra
==
0
)
&&
p_block
==
NULL
)
{
msg_
Err
(
p_dec
,
"waiting for H264 SPS/PPS, extra data %i"
,
p_dec
->
fmt_in
.
i_extra
);
msg_
Dbg
(
p_dec
,
"waiting for H264 SPS/PPS, will start late"
);
return
VLC_SUCCESS
;
// return VLC_GENERIC to leave the waiting to someone else
return
VLC_SUCCESS
;
}
uint32_t
size
;
...
...
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