Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
75d0a0be
Commit
75d0a0be
authored
Jan 24, 2001
by
Josh Coalson
Browse files
add string lookup tables for enums
parent
6dcea51c
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/FLAC/format.h
View file @
75d0a0be
...
...
@@ -65,6 +65,7 @@ extern const unsigned FLAC__STREAM_SYNC_LEN; /* = 32 bits */;
typedef
enum
{
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE
=
0
}
FLAC__EntropyCodingMethodType
;
extern
const
char
*
FLAC__EntropyCodingMethodTypeString
[];
/*****************************************************************************
*
...
...
@@ -102,6 +103,7 @@ typedef enum {
FLAC__SUBFRAME_TYPE_FIXED
=
2
,
FLAC__SUBFRAME_TYPE_LPC
=
3
}
FLAC__SubframeType
;
extern
const
char
*
FLAC__SubframeTypeString
[];
/*****************************************************************************
*
...
...
@@ -201,6 +203,7 @@ typedef enum {
FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE
=
2
,
FLAC__CHANNEL_ASSIGNMENT_MID_SIDE
=
3
}
FLAC__ChannelAssignment
;
extern
const
char
*
FLAC__ChannelAssignmentString
[];
/*****************************************************************************
*
...
...
@@ -290,6 +293,7 @@ typedef struct {
typedef
enum
{
FLAC__METADATA_TYPE_ENCODING
=
0
}
FLAC__MetaDataType
;
extern
const
char
*
FLAC__MetaDataTypeString
[];
/*****************************************************************************
*
...
...
src/libFLAC/format.c
View file @
75d0a0be
...
...
@@ -56,6 +56,10 @@ const unsigned FLAC__ENTROPY_CODING_METHOD_TYPE_LEN = 2; /* bits */
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN
=
4
;
/* bits */
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN
=
4
;
/* bits */
const
char
*
FLAC__EntropyCodingMethodTypeString
[]
=
{
"PARTITIONED_RICE"
};
const
unsigned
FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN
=
4
;
/* bits */
const
unsigned
FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN
=
5
;
/* bits */
const
unsigned
FLAC__SUBFRAME_LPC_RICE_PARAMETER_LEN
=
4
;
/* bits */
...
...
@@ -65,3 +69,21 @@ const unsigned FLAC__SUBFRAME_TYPE_VERBATIM_BITS = 0x02;
const
unsigned
FLAC__SUBFRAME_TYPE_FIXED_BITS
=
0x10
;
const
unsigned
FLAC__SUBFRAME_TYPE_LPC_BITS
=
0x40
;
const
unsigned
FLAC__SUBFRAME_TYPE_LEN
=
8
;
/* bits */
const
char
*
FLAC__SubframeTypeString
[]
=
{
"CONSTANT"
,
"VERBATIM"
,
"FIXED"
,
"LPC"
};
const
char
*
FLAC__ChannelAssignmentString
[]
=
{
"INDEPENDENT"
,
"LEFT_SIDE"
,
"RIGHT_SIDE"
,
"MID_SIDE"
};
const
char
*
FLAC__MetaDataTypeString
[]
=
{
"ENCODING"
};
Write
Preview
Supports
Markdown
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