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
6a3525f3
Commit
6a3525f3
authored
Sep 26, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speex: split encoder from decoder
parent
a43e19d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/codec/speex.c
modules/codec/speex.c
+9
-2
No files found.
modules/codec/speex.c
View file @
6a3525f3
...
...
@@ -48,8 +48,11 @@
static
int
OpenDecoder
(
vlc_object_t
*
);
static
int
OpenPacketizer
(
vlc_object_t
*
);
static
void
CloseDecoder
(
vlc_object_t
*
);
#ifdef ENABLE_SOUT
static
int
OpenEncoder
(
vlc_object_t
*
);
static
void
CloseEncoder
(
vlc_object_t
*
);
#endif
#define ENC_CFG_PREFIX "sout-speex-"
...
...
@@ -102,6 +105,7 @@ vlc_module_begin ()
set_capability
(
"packetizer"
,
100
)
set_callbacks
(
OpenPacketizer
,
CloseDecoder
)
#ifdef ENABLE_SOUT
add_submodule
()
set_description
(
N_
(
"Speex audio encoder"
)
)
set_capability
(
"encoder"
,
100
)
...
...
@@ -132,6 +136,7 @@ vlc_module_begin ()
ENC_DTX_LONGTEXT
,
false
)
/* TODO agc, noise suppression, */
#endif
vlc_module_end
()
...
...
@@ -195,8 +200,6 @@ static block_t *SendPacket( decoder_t *, block_t * );
static
void
ParseSpeexComments
(
decoder_t
*
,
ogg_packet
*
);
static
block_t
*
Encode
(
encoder_t
*
,
block_t
*
);
/*****************************************************************************
* OpenDecoder: probe the decoder and return score
*****************************************************************************/
...
...
@@ -819,6 +822,7 @@ static void CloseDecoder( vlc_object_t *p_this )
free
(
p_sys
);
}
#ifdef ENABLE_SOUT
/*****************************************************************************
* encoder_sys_t: encoder descriptor
*****************************************************************************/
...
...
@@ -849,6 +853,8 @@ struct encoder_sys_t
int
i_frame_size
;
};
static
block_t
*
Encode
(
encoder_t
*
,
block_t
*
);
/*****************************************************************************
* OpenEncoder: probe the encoder and return score
*****************************************************************************/
...
...
@@ -1084,3 +1090,4 @@ static void CloseEncoder( vlc_object_t *p_this )
free
(
p_sys
->
p_buffer
);
free
(
p_sys
);
}
#endif
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