Commit 6007f7d4 authored by James Almer's avatar James Almer

Merge commit '5f794aa1'

* commit '5f794aa1':
  Add Cineform HD Decoder

See 3485332b.

Some cosmetics are merged. The refactoring is not merged at the
request of Kieran Kunhya.
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 8f2cc2f1 5f794aa1
This diff is collapsed.
......@@ -27,10 +27,10 @@
#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;
......@@ -43,7 +43,7 @@ typedef struct CFHD_RL_VLC_ELEM {
typedef struct SubBand {
int level;
int orientation;
int stride;
ptrdiff_t stride;
int a_width;
int width;
int a_height;
......@@ -62,7 +62,7 @@ typedef struct Plane {
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];
......@@ -79,18 +79,15 @@ typedef struct CFHDContext {
GetBitContext gb;
int chroma_x_shift;
int chroma_y_shift;
int coded_width;
int coded_height;
int coded_format;
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;
......@@ -106,7 +103,6 @@ typedef struct CFHDContext {
uint8_t prescale_shift[3];
Plane plane[4];
} CFHDContext;
int ff_cfhd_init_vlcs(CFHDContext *s);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment