#include "bytestream.h"
#include "get_bits.h"
#include "vlc.h"
+#include "cfhddsp.h"
enum CFHDParam {
SampleType = 1,
SampleIndexTable = 2,
BitstreamMarker = 4,
+ VersionMajor = 5,
+ VersionMinor = 6,
+ VersionRevision = 7,
+ VersionEdit = 8,
TransformType = 10,
NumFrames = 11,
ChannelCount = 12,
Precision = 70,
InputFormat = 71,
BandCodingFlags = 72,
+ PeakLevel = 74,
+ PeakOffsetLow = 75,
+ PeakOffsetHigh = 76,
+ Version = 79,
BandSecondPass = 82,
PrescaleTable = 83,
EncodedFormat = 84,
+ DisplayHeight = 85,
ChannelWidth = 104,
ChannelHeight = 105,
};
int width;
int a_height;
int height;
+ int8_t read_ok;
} SubBand;
typedef struct Plane {
int a_width;
int a_height;
int a_format;
+ int a_transform_type;
int bpc; // bits per channel/component
int channel_cnt;
uint8_t prescale_table[8];
Plane plane[4];
Peak peak;
+
+ CFHDDSPContext dsp;
} CFHDContext;
int ff_cfhd_init_vlcs(CFHDContext *s);