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
7a3a03a9
Commit
7a3a03a9
authored
Mar 04, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwdummy: update to libavcodec 55.26.0
(see also
fccfbd2f
)
parent
ec2e952e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
modules/codec/avcodec/hwdummy.c
modules/codec/avcodec/hwdummy.c
+7
-15
No files found.
modules/codec/avcodec/hwdummy.c
View file @
7a3a03a9
...
...
@@ -51,11 +51,6 @@ vlc_module_end()
#define DATA_MAGIC 0xda1a0000
#define OPAQUE_MAGIC 0x0da00e00
struct
vlc_va_sys_t
{
AVVDPAUContext
context
;
};
static
int
Lock
(
vlc_va_t
*
va
,
void
**
opaque
,
uint8_t
**
data
)
{
*
data
=
(
void
*
)(
uintptr_t
)
DATA_MAGIC
;
...
...
@@ -104,11 +99,8 @@ static int Copy(vlc_va_t *va, picture_t *pic, void *opaque, uint8_t *data)
static
int
Setup
(
vlc_va_t
*
va
,
void
**
ctxp
,
vlc_fourcc_t
*
chromap
,
int
width
,
int
height
)
{
vlc_va_sys_t
*
sys
=
va
->
sys
;
(
void
)
width
;
(
void
)
height
;
*
ctxp
=
&
sys
->
context
;
*
ctxp
=
(
AVVDPAUContext
*
)
va
->
sys
;
*
chromap
=
VLC_CODEC_YV12
;
return
VLC_SUCCESS
;
}
...
...
@@ -121,17 +113,17 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, const es_format_t *fmt)
vlc_fourcc_t
fourcc
;
}
u
=
{
.
fourcc
=
fmt
->
i_codec
};
vlc_va_sys_t
*
sys
=
calloc
(
1
,
sizeof
(
*
sys
)
);
if
(
unlikely
(
sys
==
NULL
))
AVVDPAUContext
*
hwctx
=
av_vdpau_alloc_context
(
);
if
(
unlikely
(
hwctx
==
NULL
))
return
VLC_ENOMEM
;
msg_Dbg
(
va
,
"codec %d (%4.4s) profile %d level %d"
,
ctx
->
codec_id
,
u
.
str
,
fmt
->
i_profile
,
fmt
->
i_level
);
sys
->
context
.
decoder
=
DECODER_MAGIC
;
sys
->
context
.
render
=
Render
;
hwctx
->
decoder
=
DECODER_MAGIC
;
hwctx
->
render
=
Render
;
va
->
sys
=
sys
;
va
->
sys
=
(
vlc_va_sys_t
*
)
hwctx
;
va
->
description
=
(
char
*
)
"Dummy video decoding accelerator"
;
va
->
pix_fmt
=
AV_PIX_FMT_VDPAU
;
va
->
setup
=
Setup
;
...
...
@@ -143,5 +135,5 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, const es_format_t *fmt)
static
void
Close
(
vlc_va_t
*
va
)
{
free
(
va
->
sys
);
av_
free
(
va
->
sys
);
}
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