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
a9be2341
Commit
a9be2341
authored
Jul 25, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: improve decoder capability checks messages
parent
61bbaab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
modules/hw/vdpau/avcodec.c
modules/hw/vdpau/avcodec.c
+22
-14
No files found.
modules/hw/vdpau/avcodec.c
View file @
a9be2341
...
...
@@ -297,32 +297,40 @@ static int Open(vlc_va_t *va, int codec, const es_format_t *fmt)
/* Check capabilities */
VdpBool
support
;
uint32_t
l
vl
,
mb
,
width
,
height
;
uint32_t
l
,
mb
,
w
,
h
;
if
(
vdp_video_surface_query_capabilities
(
sys
->
vdp
,
sys
->
device
,
VDP_CHROMA_TYPE_420
,
&
support
,
&
w
idth
,
&
height
)
!=
VDP_STATUS_OK
)
VDP_CHROMA_TYPE_420
,
&
support
,
&
w
,
&
h
)
!=
VDP_STATUS_OK
)
support
=
VDP_FALSE
;
if
(
!
support
||
width
<
fmt
->
video
.
i_width
||
height
<
fmt
->
video
.
i_height
)
if
(
!
support
)
{
msg_Err
(
va
,
"video surface not supported: %s %ux%u"
,
"YUV 4:2:0"
,
fmt
->
video
.
i_width
,
fmt
->
video
.
i_height
);
msg_Err
(
va
,
"video surface format not supported: %s"
,
"YUV 4:2:0"
);
goto
error
;
}
msg_Dbg
(
va
,
"video surface limits: %"
PRIu32
"x%"
PRIu32
,
w
,
h
);
if
(
w
<
fmt
->
video
.
i_width
||
h
<
fmt
->
video
.
i_height
)
{
msg_Err
(
va
,
"video surface above limits: %ux%u"
,
fmt
->
video
.
i_width
,
fmt
->
video
.
i_height
);
goto
error
;
}
msg_Dbg
(
va
,
"video surface supported maximum: %s %"
PRIu32
"x%"
PRIu32
,
"YUV 4:2:0"
,
width
,
height
);
if
(
vdp_decoder_query_capabilities
(
sys
->
vdp
,
sys
->
device
,
profile
,
&
support
,
&
lvl
,
&
mb
,
&
width
,
&
height
)
!=
VDP_STATUS_OK
)
&
support
,
&
l
,
&
mb
,
&
w
,
&
h
)
!=
VDP_STATUS_OK
)
support
=
VDP_FALSE
;
if
(
!
support
||
(
int
)
lvl
<
level
||
width
<
fmt
->
video
.
i_width
||
height
<
fmt
->
video
.
i_height
)
if
(
!
support
)
{
msg_Err
(
va
,
"decoder profile not supported: %u"
,
profile
);
goto
error
;
}
msg_Dbg
(
va
,
"decoder profile limits: level %"
PRIu32
" mb %"
PRIu32
" "
"%"
PRIu32
"x%"
PRIu32
,
l
,
mb
,
w
,
h
);
if
((
int
)
l
<
level
||
w
<
fmt
->
video
.
i_width
||
h
<
fmt
->
video
.
i_height
)
{
msg_Err
(
va
,
"decod
ing profile not supported: %"
PRIu32
".
%d %ux%u"
,
profile
,
lv
l
,
fmt
->
video
.
i_width
,
fmt
->
video
.
i_height
);
msg_Err
(
va
,
"decod
er profile above limits: level
%d %ux%u"
,
leve
l
,
fmt
->
video
.
i_width
,
fmt
->
video
.
i_height
);
goto
error
;
}
msg_Dbg
(
va
,
"decoding profile supported maximum: %"
PRIu32
".%"
PRIu32
" mb %"
PRIu32
", %"
PRIu32
"x%"
PRIu32
,
profile
,
lvl
,
mb
,
width
,
height
);
const
char
*
infos
;
if
(
vdp_get_information_string
(
sys
->
vdp
,
&
infos
)
!=
VDP_STATUS_OK
)
...
...
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