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
286fa11d
Commit
286fa11d
authored
May 20, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: add NDK module
The JNI module is now a submodule.
parent
cae9e8d8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
559 additions
and
3 deletions
+559
-3
modules/codec/Makefile.am
modules/codec/Makefile.am
+1
-1
modules/codec/omxil/mediacodec.c
modules/codec/omxil/mediacodec.c
+12
-2
modules/codec/omxil/mediacodec.h
modules/codec/omxil/mediacodec.h
+1
-0
modules/codec/omxil/mediacodec_ndk.c
modules/codec/omxil/mediacodec_ndk.c
+545
-0
No files found.
modules/codec/Makefile.am
View file @
286fa11d
...
...
@@ -398,7 +398,7 @@ libiomx_plugin_la_LIBADD = $(libomxil_plugin_la_LIBADD)
libmediacodec_plugin_la_CPPFLAGS
=
$(AM_CPPFLAGS)
-I
$(srcdir)
/codec/omxil
libmediacodec_plugin_la_SOURCES
=
codec/omxil/mediacodec.c codec/omxil/mediacodec.h
\
codec/omxil/mediacodec_jni.c codec/omxil/utils.c
\
codec/omxil/mediacodec_jni.c codec/omxil/
mediacodec_ndk.c codec/omxil/
utils.c
\
video_chroma/copy.c codec/omxil/android_opaque.c codec/omxil/android_opaque.h
\
packetizer/h264_nal.c packetizer/h264_nal.h
packetizer/hevc_nal.c
packetizer/hevc_nal.h
...
...
modules/codec/omxil/mediacodec.c
View file @
286fa11d
...
...
@@ -173,6 +173,7 @@ struct decoder_sys_t
* Local prototypes
*****************************************************************************/
static
int
OpenDecoderJni
(
vlc_object_t
*
);
static
int
OpenDecoderNdk
(
vlc_object_t
*
);
static
void
CloseDecoder
(
vlc_object_t
*
);
static
picture_t
*
DecodeVideo
(
decoder_t
*
,
block_t
**
);
...
...
@@ -197,8 +198,12 @@ vlc_module_begin ()
set_capability
(
"decoder"
,
0
)
/* Only enabled via commandline arguments */
add_bool
(
CFG_PREFIX
"dr"
,
true
,
DIRECTRENDERING_TEXT
,
DIRECTRENDERING_LONGTEXT
,
true
)
set_callbacks
(
OpenDecoderJni
,
CloseDecoder
)
add_shortcut
(
"mediacodec_jni"
)
set_callbacks
(
OpenDecoderNdk
,
CloseDecoder
)
add_shortcut
(
"mediacodec_ndk"
)
add_submodule
()
set_capability
(
"decoder"
,
0
)
set_callbacks
(
OpenDecoderJni
,
CloseDecoder
)
add_shortcut
(
"mediacodec_jni"
)
vlc_module_end
()
...
...
@@ -542,6 +547,11 @@ static int OpenDecoder(vlc_object_t *p_this, pf_MediaCodecApi_init pf_init)
return
StartMediaCodec
(
p_dec
);
}
static
int
OpenDecoderNdk
(
vlc_object_t
*
p_this
)
{
return
OpenDecoder
(
p_this
,
MediaCodecNdk_Init
);
}
static
int
OpenDecoderJni
(
vlc_object_t
*
p_this
)
{
return
OpenDecoder
(
p_this
,
MediaCodecJni_Init
);
...
...
modules/codec/omxil/mediacodec.h
View file @
286fa11d
...
...
@@ -30,6 +30,7 @@ typedef struct mc_api_out mc_api_out;
typedef
int
(
*
pf_MediaCodecApi_init
)(
mc_api
*
);
int
MediaCodecJni_Init
(
mc_api
*
);
int
MediaCodecNdk_Init
(
mc_api
*
);
struct
mc_api_out
{
...
...
modules/codec/omxil/mediacodec_ndk.c
0 → 100644
View file @
286fa11d
This diff is collapsed.
Click to expand it.
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