#include "avcodec.h"
#include "get_bits.h"
+#include "vlc.h"
-#define VLC_BITS 9
-#define NB_VLC_TABLE_9 (71+3)
-#define NB_VLC_TABLE_18 (263+1)
+#define VLC_BITS 9
+#define SUBBAND_COUNT 10
typedef struct CFHD_RL_VLC_ELEM {
int16_t level;
typedef struct SubBand {
int level;
int orientation;
- int stride;
+ ptrdiff_t stride;
int a_width;
int width;
int a_height;
int16_t *idwt_tmp;
/* TODO: merge this into SubBand structure */
- int16_t *subband[10];
+ int16_t *subband[SUBBAND_COUNT];
int16_t *l_h[8];
SubBand band[DWT_LEVELS][4];
GetBitContext gb;
- int chroma_x_shift;
- int chroma_y_shift;
-
int coded_width;
int coded_height;
- int coded_format;
+ int cropped_height;
+ enum AVPixelFormat coded_format;
int a_width;
int a_height;
int a_format;
- int bpc;
+ int bpc; // bits per channel/component
int channel_cnt;
int subband_cnt;
int channel_num;
uint8_t prescale_shift[3];
Plane plane[4];
-
} CFHDContext;
int ff_cfhd_init_vlcs(CFHDContext *s);