Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a001ce31
Commit
a001ce31
authored
Dec 07, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext: add a VDPAU implementation
parent
89923e41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
461 additions
and
0 deletions
+461
-0
APIchanges
doc/APIchanges
+2
-0
Makefile
libavutil/Makefile
+2
-0
hwcontext.c
libavutil/hwcontext.c
+3
-0
hwcontext_internal.h
libavutil/hwcontext_internal.h
+2
-0
hwcontext_vdpau.c
libavutil/hwcontext_vdpau.c
+408
-0
hwcontext_vdpau.h
libavutil/hwcontext_vdpau.h
+44
-0
No files found.
doc/APIchanges
View file @
a001ce31
...
...
@@ -17,6 +17,8 @@ API changes, most recent first:
xxxxxxx buffer.h - Add av_buffer_pool_init2().
xxxxxxx hwcontext.h - Add a new installed header hwcontext.h with a new API
for handling hwaccel frames.
xxxxxxx hwcontext_vdpau.h - Add a new installed header hwcontext_vdpau.h with
VDPAU-specific hwcontext definitions.
2016-xx-xx - xxxxxxx - lavf 57.3.0 - avformat.h
Add AVFormatContext.opaque, io_open and io_close, allowing custom IO
...
...
libavutil/Makefile
View file @
a001ce31
...
...
@@ -24,6 +24,7 @@ HEADERS = adler32.h \
frame.h
\
hmac.h
\
hwcontext.h
\
hwcontext_vdpau.h
\
imgutils.h
\
intfloat.h
\
intreadwrite.h
\
...
...
@@ -105,6 +106,7 @@ OBJS = adler32.o \
xtea.o
\
OBJS-$(CONFIG_LZO)
+=
lzo.o
OBJS-$(CONFIG_VDPAU)
+=
hwcontext_vdpau.o
OBJS
+=
$
(
COMPAT_OBJS:%
=
../compat/%
)
...
...
libavutil/hwcontext.c
View file @
a001ce31
...
...
@@ -29,6 +29,9 @@
#include "pixfmt.h"
static
const
HWContextType
*
hw_table
[]
=
{
#if CONFIG_VDPAU
&
ff_hwcontext_type_vdpau
,
#endif
NULL
,
};
...
...
libavutil/hwcontext_internal.h
View file @
a001ce31
...
...
@@ -86,4 +86,6 @@ struct AVHWFramesInternal {
AVBufferPool
*
pool_internal
;
};
extern
const
HWContextType
ff_hwcontext_type_vdpau
;
#endif
/* AVUTIL_HWCONTEXT_INTERNAL_H */
libavutil/hwcontext_vdpau.c
0 → 100644
View file @
a001ce31
This diff is collapsed.
Click to expand it.
libavutil/hwcontext_vdpau.h
0 → 100644
View file @
a001ce31
/*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* Libav is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVUTIL_HWCONTEXT_VDPAU_H
#define AVUTIL_HWCONTEXT_VDPAU_H
#include <vdpau/vdpau.h>
/**
* @file
* An API-specific header for AV_HWDEVICE_TYPE_VDPAU.
*
* This API supports dynamic frame pools. AVHWFramesContext.pool must return
* AVBufferRefs whose data pointer is a VdpVideoSurface.
*/
/**
* This struct is allocated as AVHWDeviceContext.hwctx
*/
typedef
struct
AVVDPAUDeviceContext
{
VdpDevice
device
;
VdpGetProcAddress
*
get_proc_address
;
}
AVVDPAUDeviceContext
;
/**
* AVHWFramesContext.hwctx is currently not used
*/
#endif
/* AVUTIL_HWCONTEXT_VDPAU_H */
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