Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5f9a4c4f
Commit
5f9a4c4f
authored
Apr 25, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vda: add debug messages (refs #8440)
parent
605feec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
modules/codec/avcodec/vda.c
modules/codec/avcodec/vda.c
+11
-1
No files found.
modules/codec/avcodec/vda.c
View file @
5f9a4c4f
...
...
@@ -169,12 +169,14 @@ static int Setup( vlc_va_t *p_external, void **pp_hw_ctx, vlc_fourcc_t *pi_chrom
case
1
:
p_va
->
hw_ctx
.
cv_pix_fmt_type
=
kCVPixelFormatType_422YpCbCr8
;
p_va
->
i_chroma
=
VLC_CODEC_UYVY
;
msg_Dbg
(
p_va
->
p_log
,
"using pixel format 422YpCbCr8"
);
break
;
case
0
:
default
:
p_va
->
hw_ctx
.
cv_pix_fmt_type
=
kCVPixelFormatType_420YpCbCr8Planar
;
p_va
->
i_chroma
=
VLC_CODEC_I420
;
CopyInitCache
(
&
p_va
->
image_cache
,
i_width
);
msg_Dbg
(
p_va
->
p_log
,
"using pixel format 420YpCbCr8Planar"
);
}
ok:
...
...
@@ -188,9 +190,11 @@ ok:
p_va
->
i_extradata
);
if
(
status
)
{
msg_Err
(
p_va
->
p_log
,
"Failed to create
the decoder
: %i"
,
status
);
msg_Err
(
p_va
->
p_log
,
"Failed to create
decoder
: %i"
,
status
);
return
VLC_EGENERIC
;
}
else
msg_Dbg
(
p_va
->
p_log
,
"VDA decoder created"
);
return
VLC_SUCCESS
;
}
...
...
@@ -253,6 +257,8 @@ static void Close( vlc_va_t *p_external )
{
vlc_va_vda_t
*
p_va
=
vlc_va_vda_Get
(
p_external
);
msg_Dbg
(
p_va
->
p_log
,
"destroying VDA decoder"
);
ff_vda_destroy_decoder
(
&
p_va
->
hw_ctx
)
;
if
(
p_va
->
hw_ctx
.
cv_pix_fmt_type
==
kCVPixelFormatType_420YpCbCr8Planar
)
...
...
@@ -263,8 +269,12 @@ static void Close( vlc_va_t *p_external )
static
int
Open
(
vlc_va_t
*
external
,
int
i_codec_id
,
const
es_format_t
*
fmt
)
{
msg_Dbg
(
external
,
"opening VDA module"
);
if
(
i_codec_id
!=
AV_CODEC_ID_H264
)
{
msg_Warn
(
external
,
"input codec isn't H264, canceling VDA decoding"
);
return
VLC_EGENERIC
;
}
if
(
fmt
->
p_extra
==
NULL
||
fmt
->
i_extra
<
7
)
{
...
...
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