summaryrefslogtreecommitdiff
path: root/include/FLAC/format.h
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2002-08-17 15:23:43 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2002-08-17 15:23:43 +0000
commitb7023aa1b41773ff3b361fa71b92aa6f4973bb8f (patch)
treed0ff27b3f98bd5cfea9408d784c44b7fec3da37a /include/FLAC/format.h
parentcda4c3c7b39985a848dc03a5162d3ea73eb52459 (diff)
downloadflac-b7023aa1b41773ff3b361fa71b92aa6f4973bb8f.tar.gz
rework so that rice parameters and raw_bits from the entropy coding method struct are sized dynamically
Diffstat (limited to 'include/FLAC/format.h')
-rw-r--r--include/FLAC/format.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/FLAC/format.h b/include/FLAC/format.h
index 5f971dc4..ae3df6c2 100644
--- a/include/FLAC/format.h
+++ b/include/FLAC/format.h
@@ -182,14 +182,19 @@ extern const char * const FLAC__EntropyCodingMethodTypeString[];
typedef struct {
unsigned order;
- /**< The partition order, i.e. # of contexts = 2 ^ order. */
+ /**< The partition order, i.e. # of contexts = 2 ^ \a order. */
- unsigned parameters[1 << FLAC__MAX_RICE_PARTITION_ORDER];
+ unsigned *parameters;
/**< The Rice parameters for each context. */
- unsigned raw_bits[1 << FLAC__MAX_RICE_PARTITION_ORDER];
+ unsigned *raw_bits;
/**< Widths for escape-coded partitions. */
+ unsigned capacity_by_order;
+ /**< The capacity of the \a parameters and \a raw_bits arrays
+ * specified as an order, i.e. the number of array elements
+ * allocated is 2 ^ \a capacity_by_order.
+ */
} FLAC__EntropyCodingMethod_PartitionedRice;
extern const unsigned FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN; /**< == 4 (bits) */