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
d47186c7
Commit
d47186c7
authored
Sep 13, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packetizers: move state enum in packetizer_helper.h
parent
13d4cc70
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
60 deletions
+15
-60
modules/codec/a52.c
modules/codec/a52.c
+2
-10
modules/codec/dts.c
modules/codec/dts.c
+2
-10
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+2
-10
modules/packetizer/flac.c
modules/packetizer/flac.c
+1
-10
modules/packetizer/mlp.c
modules/packetizer/mlp.c
+2
-10
modules/packetizer/mpeg4audio.c
modules/packetizer/mpeg4audio.c
+1
-9
modules/packetizer/packetizer_helper.h
modules/packetizer/packetizer_helper.h
+5
-1
No files found.
modules/codec/a52.c
View file @
d47186c7
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
#include "a52.h"
#include "a52.h"
#include "../packetizer/packetizer_helper.h"
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -85,16 +87,6 @@ struct decoder_sys_t
...
@@ -85,16 +87,6 @@ struct decoder_sys_t
vlc_a52_header_t
frame
;
vlc_a52_header_t
frame
;
};
};
enum
{
STATE_NOSYNC
,
STATE_SYNC
,
STATE_HEADER
,
STATE_NEXT_SYNC
,
STATE_GET_DATA
,
STATE_SEND_DATA
};
/****************************************************************************
/****************************************************************************
* Local prototypes
* Local prototypes
****************************************************************************/
****************************************************************************/
...
...
modules/codec/dts.c
View file @
d47186c7
...
@@ -40,6 +40,8 @@
...
@@ -40,6 +40,8 @@
#include <vlc_modules.h>
#include <vlc_modules.h>
#include <vlc_cpu.h>
#include <vlc_cpu.h>
#include "../packetizer/packetizer_helper.h"
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -89,16 +91,6 @@ struct decoder_sys_t
...
@@ -89,16 +91,6 @@ struct decoder_sys_t
unsigned
int
i_channels_conf
;
unsigned
int
i_channels_conf
;
};
};
enum
{
STATE_NOSYNC
,
STATE_SYNC
,
STATE_HEADER
,
STATE_NEXT_SYNC
,
STATE_GET_DATA
,
STATE_SEND_DATA
};
#define DTS_HEADER_SIZE 14
#define DTS_HEADER_SIZE 14
/****************************************************************************
/****************************************************************************
...
...
modules/codec/mpeg_audio.c
View file @
d47186c7
...
@@ -40,6 +40,8 @@
...
@@ -40,6 +40,8 @@
#include <vlc_block_helper.h>
#include <vlc_block_helper.h>
#include "../packetizer/packetizer_helper.h"
/*****************************************************************************
/*****************************************************************************
* decoder_sys_t : decoder descriptor
* decoder_sys_t : decoder descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -71,16 +73,6 @@ struct decoder_sys_t
...
@@ -71,16 +73,6 @@ struct decoder_sys_t
bool
b_discontinuity
;
bool
b_discontinuity
;
};
};
enum
{
STATE_NOSYNC
,
STATE_SYNC
,
STATE_HEADER
,
STATE_NEXT_SYNC
,
STATE_GET_DATA
,
STATE_SEND_DATA
};
/* This isn't the place to put mad-specific stuff. However, it makes the
/* This isn't the place to put mad-specific stuff. However, it makes the
* mad plug-in's life much easier if we put 8 extra bytes at the end of the
* mad plug-in's life much easier if we put 8 extra bytes at the end of the
* buffer, because that way it doesn't have to copy the aout_buffer_t to a
* buffer, because that way it doesn't have to copy the aout_buffer_t to a
...
...
modules/packetizer/flac.c
View file @
d47186c7
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <vlc_block_helper.h>
#include <vlc_block_helper.h>
#include <vlc_bits.h>
#include <vlc_bits.h>
#include "packetizer_helper.h"
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
...
@@ -89,16 +90,6 @@ struct decoder_sys_t
...
@@ -89,16 +90,6 @@ struct decoder_sys_t
unsigned
int
i_rate
,
i_channels
,
i_bits_per_sample
;
unsigned
int
i_rate
,
i_channels
,
i_bits_per_sample
;
};
};
enum
{
STATE_NOSYNC
,
STATE_SYNC
,
STATE_HEADER
,
STATE_NEXT_SYNC
,
STATE_GET_DATA
,
STATE_SEND_DATA
};
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
*****************************************************************************/
*****************************************************************************/
...
...
modules/packetizer/mlp.c
View file @
d47186c7
...
@@ -36,6 +36,8 @@
...
@@ -36,6 +36,8 @@
#include <vlc_bits.h>
#include <vlc_bits.h>
#include <assert.h>
#include <assert.h>
#include "packetizer_helper.h"
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -89,16 +91,6 @@ struct decoder_sys_t
...
@@ -89,16 +91,6 @@ struct decoder_sys_t
mlp_header_t
mlp
;
mlp_header_t
mlp
;
};
};
enum
{
STATE_NOSYNC
,
STATE_SYNC
,
STATE_HEADER
,
STATE_NEXT_SYNC
,
STATE_GET_DATA
,
STATE_SEND_DATA
};
#define MLP_MAX_SUBSTREAMS (16)
#define MLP_MAX_SUBSTREAMS (16)
#define MLP_HEADER_SYNC (28)
#define MLP_HEADER_SYNC (28)
#define MLP_HEADER_SIZE (4 + MLP_HEADER_SYNC + 4 * MLP_MAX_SUBSTREAMS)
#define MLP_HEADER_SIZE (4 + MLP_HEADER_SYNC + 4 * MLP_MAX_SUBSTREAMS)
...
...
modules/packetizer/mpeg4audio.c
View file @
d47186c7
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <vlc_bits.h>
#include <vlc_bits.h>
#include <vlc_block_helper.h>
#include <vlc_block_helper.h>
#include "packetizer_helper.h"
#include <assert.h>
#include <assert.h>
...
@@ -140,15 +141,6 @@ struct decoder_sys_t
...
@@ -140,15 +141,6 @@ struct decoder_sys_t
latm_mux_t
latm
;
latm_mux_t
latm
;
};
};
enum
{
STATE_NOSYNC
,
STATE_SYNC
,
STATE_HEADER
,
STATE_NEXT_SYNC
,
STATE_GET_DATA
,
STATE_SEND_DATA
};
enum
{
enum
{
TYPE_NONE
,
TYPE_NONE
,
TYPE_RAW
,
TYPE_RAW
,
...
...
modules/packetizer/packetizer_helper.h
View file @
d47186c7
...
@@ -29,7 +29,11 @@
...
@@ -29,7 +29,11 @@
enum
enum
{
{
STATE_NOSYNC
,
STATE_NOSYNC
,
STATE_NEXT_SYNC
STATE_SYNC
,
STATE_HEADER
,
STATE_NEXT_SYNC
,
STATE_GET_DATA
,
STATE_SEND_DATA
};
};
typedef
void
(
*
packetizer_reset_t
)(
void
*
p_private
,
bool
b_broken
);
typedef
void
(
*
packetizer_reset_t
)(
void
*
p_private
,
bool
b_broken
);
...
...
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