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
978dedc5
Commit
978dedc5
authored
Sep 27, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxva: remove useless parameter
parent
b0b1c324
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
modules/codec/avcodec/d3d11va.c
modules/codec/avcodec/d3d11va.c
+1
-1
modules/codec/avcodec/directx_va.c
modules/codec/avcodec/directx_va.c
+1
-2
modules/codec/avcodec/directx_va.h
modules/codec/avcodec/directx_va.h
+1
-1
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+1
-1
No files found.
modules/codec/avcodec/d3d11va.c
View file @
978dedc5
...
...
@@ -147,7 +147,7 @@ static picture_t *DxAllocPicture(vlc_va_t *, const video_format_t *, unsigned in
static
int
Setup
(
vlc_va_t
*
va
,
AVCodecContext
*
avctx
,
vlc_fourcc_t
*
chroma
)
{
vlc_va_sys_t
*
sys
=
va
->
sys
;
if
(
directx_va_Setup
(
va
,
&
sys
->
dx_sys
,
avctx
,
chroma
)
!=
VLC_SUCCESS
)
if
(
directx_va_Setup
(
va
,
&
sys
->
dx_sys
,
avctx
)
!=
VLC_SUCCESS
)
return
VLC_EGENERIC
;
avctx
->
hwaccel_context
=
&
sys
->
hw
;
...
...
modules/codec/avcodec/directx_va.c
View file @
978dedc5
...
...
@@ -252,7 +252,7 @@ static const directx_va_mode_t *FindDxvaMode(const GUID *guid)
}
/* */
int
directx_va_Setup
(
vlc_va_t
*
va
,
directx_sys_t
*
dx_sys
,
AVCodecContext
*
avctx
,
vlc_fourcc_t
*
chroma
)
int
directx_va_Setup
(
vlc_va_t
*
va
,
directx_sys_t
*
dx_sys
,
AVCodecContext
*
avctx
)
{
int
surface_alignment
=
16
;
int
surface_count
=
4
;
...
...
@@ -265,7 +265,6 @@ int directx_va_Setup(vlc_va_t *va, directx_sys_t *dx_sys, AVCodecContext *avctx,
DestroyVideoDecoder
(
va
,
dx_sys
);
avctx
->
hwaccel_context
=
NULL
;
*
chroma
=
0
;
if
(
avctx
->
coded_width
<=
0
||
avctx
->
coded_height
<=
0
)
return
VLC_EGENERIC
;
...
...
modules/codec/avcodec/directx_va.h
View file @
978dedc5
...
...
@@ -136,7 +136,7 @@ typedef struct
int
directx_va_Open
(
vlc_va_t
*
,
directx_sys_t
*
,
AVCodecContext
*
ctx
,
const
es_format_t
*
fmt
,
bool
b_dll
);
void
directx_va_Close
(
vlc_va_t
*
,
directx_sys_t
*
);
int
directx_va_Setup
(
vlc_va_t
*
,
directx_sys_t
*
,
AVCodecContext
*
avctx
,
vlc_fourcc_t
*
chroma
);
int
directx_va_Setup
(
vlc_va_t
*
,
directx_sys_t
*
,
AVCodecContext
*
avctx
);
int
directx_va_Get
(
vlc_va_t
*
,
directx_sys_t
*
,
picture_t
*
pic
,
uint8_t
**
data
);
void
directx_va_Release
(
void
*
opaque
,
uint8_t
*
data
);
...
...
modules/codec/avcodec/dxva2.c
View file @
978dedc5
...
...
@@ -207,7 +207,7 @@ static filter_t *CreateFilter( vlc_object_t *p_this, const es_format_t *p_fmt_in
static
int
Setup
(
vlc_va_t
*
va
,
AVCodecContext
*
avctx
,
vlc_fourcc_t
*
chroma
)
{
vlc_va_sys_t
*
sys
=
va
->
sys
;
if
(
directx_va_Setup
(
va
,
&
sys
->
dx_sys
,
avctx
,
chroma
)
!=
VLC_SUCCESS
)
if
(
directx_va_Setup
(
va
,
&
sys
->
dx_sys
,
avctx
)
!=
VLC_SUCCESS
)
return
VLC_EGENERIC
;
avctx
->
hwaccel_context
=
&
sys
->
hw
;
...
...
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