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
361829e7
Commit
361829e7
authored
Feb 26, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add avparser.h to prepare for submodulification
parent
cbf5dbd5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
11 deletions
+62
-11
modules/codec/avcodec/avcodec.c
modules/codec/avcodec/avcodec.c
+3
-0
modules/packetizer/Makefile.am
modules/packetizer/Makefile.am
+1
-0
modules/packetizer/avparser.c
modules/packetizer/avparser.c
+6
-10
modules/packetizer/avparser.h
modules/packetizer/avparser.h
+51
-0
po/POTFILES.in
po/POTFILES.in
+1
-1
No files found.
modules/codec/avcodec/avcodec.c
View file @
361829e7
...
@@ -70,6 +70,7 @@ static const char *const enc_hq_list_text[] = {
...
@@ -70,6 +70,7 @@ static const char *const enc_hq_list_text[] = {
#ifdef MERGE_FFMPEG
#ifdef MERGE_FFMPEG
# include "../../demux/avformat/avformat.h"
# include "../../demux/avformat/avformat.h"
# include "../../access/avio.h"
# include "../../access/avio.h"
# include "../../packetizer/avparser.h"
#endif
#endif
/*****************************************************************************
/*****************************************************************************
...
@@ -238,6 +239,8 @@ vlc_module_begin ()
...
@@ -238,6 +239,8 @@ vlc_module_begin ()
# include "../../demux/avformat/avformat.c"
# include "../../demux/avformat/avformat.c"
add_submodule
()
add_submodule
()
AVIO_MODULE
AVIO_MODULE
add_submodule
()
AVPARSER_MODULE
#endif
#endif
vlc_module_end
()
vlc_module_end
()
...
...
modules/packetizer/Makefile.am
View file @
361829e7
...
@@ -14,6 +14,7 @@ libpacketizer_flac_plugin_la_SOURCES = packetizer/flac.c
...
@@ -14,6 +14,7 @@ libpacketizer_flac_plugin_la_SOURCES = packetizer/flac.c
libpacketizer_hevc_plugin_la_SOURCES
=
packetizer/hevc.c
libpacketizer_hevc_plugin_la_SOURCES
=
packetizer/hevc.c
libpacketizer_avparser_plugin_la_SOURCES
=
packetizer/avparser.c
\
libpacketizer_avparser_plugin_la_SOURCES
=
packetizer/avparser.c
\
packetizer/avparser.h
\
codec/avcodec/avcommon.h
\
codec/avcodec/avcommon.h
\
codec/avcodec/avcodec.h
\
codec/avcodec/avcodec.h
\
codec/avcodec/fourcc.c
codec/avcodec/fourcc.c
...
...
modules/packetizer/avparser.c
View file @
361829e7
...
@@ -37,19 +37,15 @@
...
@@ -37,19 +37,15 @@
#include "../codec/avcodec/avcodec.h"
#include "../codec/avcodec/avcodec.h"
#include "../codec/avcodec/avcommon.h"
#include "../codec/avcodec/avcommon.h"
#include "avparser.h"
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
static
int
OpenPacketizer
(
vlc_object_t
*
);
#ifndef MERGE_FFMPEG
static
void
ClosePacketizer
(
vlc_object_t
*
);
vlc_module_begin
()
vlc_module_begin
()
set_category
(
CAT_SOUT
)
AVPARSER_MODULE
set_subcategory
(
SUBCAT_SOUT_PACKETIZER
)
set_description
(
N_
(
"avparser packetizer"
)
)
set_capability
(
"packetizer"
,
1
)
set_callbacks
(
OpenPacketizer
,
ClosePacketizer
)
vlc_module_end
()
vlc_module_end
()
#endif
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
...
@@ -69,7 +65,7 @@ static block_t * Packetize( decoder_t *, block_t ** );
...
@@ -69,7 +65,7 @@ static block_t * Packetize( decoder_t *, block_t ** );
* Tries to launch a decoder and return score so that the interface is able
* Tries to launch a decoder and return score so that the interface is able
* to choose.
* to choose.
*****************************************************************************/
*****************************************************************************/
static
int
OpenPacketizer
(
vlc_object_t
*
p_this
)
int
OpenPacketizer
(
vlc_object_t
*
p_this
)
{
{
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_sys_t
*
p_sys
;
decoder_sys_t
*
p_sys
;
...
@@ -125,7 +121,7 @@ static int OpenPacketizer( vlc_object_t *p_this )
...
@@ -125,7 +121,7 @@ static int OpenPacketizer( vlc_object_t *p_this )
/*****************************************************************************
/*****************************************************************************
* ClosePacketizer:
* ClosePacketizer:
*****************************************************************************/
*****************************************************************************/
static
void
ClosePacketizer
(
vlc_object_t
*
p_this
)
void
ClosePacketizer
(
vlc_object_t
*
p_this
)
{
{
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
avcodec_free_context
(
&
p_dec
->
p_sys
->
p_codec_ctx
);
avcodec_free_context
(
&
p_dec
->
p_sys
->
p_codec_ctx
);
...
...
modules/packetizer/avparser.h
0 → 100644
View file @
361829e7
/*****************************************************************************
* avparser.h
*****************************************************************************
* Copyright (C) 2015 VLC authors and VideoLAN
* $Id$
*
* Authors: Denis Charmet <typx@videolan.org>
*
* This program 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.
*
* This program 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 this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_codec.h>
#include <vlc_block.h>
#include "../codec/avcodec/avcodec.h"
#include "../codec/avcodec/avcommon.h"
/*****************************************************************************
* Module descriptor
*****************************************************************************/
int
OpenPacketizer
(
vlc_object_t
*
);
void
ClosePacketizer
(
vlc_object_t
*
);
#define AVPARSER_MODULE \
set_category( CAT_SOUT ) \
set_subcategory( SUBCAT_SOUT_PACKETIZER ) \
set_description( N_("avparser packetizer") ) \
set_capability( "packetizer", 1 ) \
set_callbacks( OpenPacketizer, ClosePacketizer )
po/POTFILES.in
View file @
361829e7
...
@@ -998,7 +998,7 @@ modules/mux/ogg.c
...
@@ -998,7 +998,7 @@ modules/mux/ogg.c
modules/mux/wav.c
modules/mux/wav.c
modules/notify/growl.m
modules/notify/growl.m
modules/notify/notify.c
modules/notify/notify.c
modules/packetizer/avparser.
c
modules/packetizer/avparser.
h
modules/packetizer/copy.c
modules/packetizer/copy.c
modules/packetizer/dirac.c
modules/packetizer/dirac.c
modules/packetizer/flac.c
modules/packetizer/flac.c
...
...
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