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
9f4afd2f
Commit
9f4afd2f
authored
Jan 17, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit more explicit dxva2 describe function.
parent
ebf225d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+21
-2
No files found.
modules/codec/avcodec/dxva2.c
View file @
9f4afd2f
...
...
@@ -587,11 +587,30 @@ static void D3dDestroyDevice(vlc_va_dxva2_t *va)
*/
static
char
*
DxDescribe
(
vlc_va_dxva2_t
*
va
)
{
static
const
struct
{
unsigned
id
;
char
name
[
32
];
}
vendors
[]
=
{
{
0x1002
,
"ATI"
},
{
0x10DE
,
"NVIDIA"
},
{
0x8086
,
"Intel"
},
{
0x5333
,
"S3 Graphics"
},
{
0
,
""
}
};
D3DADAPTER_IDENTIFIER9
*
id
=
&
va
->
d3dai
;
const
char
*
vendor
=
"Unknown"
;
for
(
int
i
=
0
;
vendors
[
i
].
id
!=
0
;
i
++
)
{
if
(
vendors
[
i
].
id
==
id
->
VendorId
)
{
vendor
=
vendors
[
i
].
name
;
break
;
}
}
char
*
description
;
if
(
asprintf
(
&
description
,
"DXVA2 (%.*s, vendor %d, device %d, revision %d)"
,
if
(
asprintf
(
&
description
,
"DXVA2 (%.*s, vendor %d
(%s)
, device %d, revision %d)"
,
sizeof
(
id
->
Description
),
id
->
Description
,
id
->
VendorId
,
id
->
DeviceId
,
id
->
Revision
)
<
0
)
id
->
VendorId
,
vendor
,
id
->
DeviceId
,
id
->
Revision
)
<
0
)
return
NULL
;
return
description
;
}
...
...
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