Commit c8525425 authored by michael's avatar michael

100000l (typos in the #define for selecting the NORM6 method -> wasnt...

100000l (typos in the #define for selecting the NORM6 method -> wasnt compiled, after fixing typos new method doesnt even compile -> swicth back to old until its fixed)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3907 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3fce957b
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
#include "mpegvideo.h" #include "mpegvideo.h"
#include "vc9data.h" #include "vc9data.h"
#undef NDEBUG
#include <assert.h>
extern const uint32_t ff_table0_dc_lum[120][2], ff_table1_dc_lum[120][2]; extern const uint32_t ff_table0_dc_lum[120][2], ff_table1_dc_lum[120][2];
extern const uint32_t ff_table0_dc_chroma[120][2], ff_table1_dc_chroma[120][2]; extern const uint32_t ff_table0_dc_chroma[120][2], ff_table1_dc_chroma[120][2];
extern VLC ff_msmp4_dc_luma_vlc[2], ff_msmp4_dc_chroma_vlc[2]; extern VLC ff_msmp4_dc_luma_vlc[2], ff_msmp4_dc_chroma_vlc[2];
...@@ -139,7 +142,7 @@ static VLC vc9_norm6_vlc; ...@@ -139,7 +142,7 @@ static VLC vc9_norm6_vlc;
#endif #endif
#if TILE_VLC_METHOD == 2 #if TILE_VLC_METHOD == 2
#define VC9_NORM6_FIRST_BITS 8 #define VC9_NORM6_FIRST_BITS 8
#define VC9_NORM6_SECOND 8 #define VC9_NORM6_SECOND_BITS 8
static VLC vc9_norm6_first, vc9_norm6_second; static VLC vc9_norm6_first, vc9_norm6_second;
#endif #endif
/* Could be optimized, one table only needs 8 bits */ /* Could be optimized, one table only needs 8 bits */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#define VC9DATA_H #define VC9DATA_H
/* Set a method for reading VLC in NORM6 bitplane decoding */ /* Set a method for reading VLC in NORM6 bitplane decoding */
#define VLC_NORM6_METH0D 2 #define TILE_VLC_METHOD 1
/* bfraction is fractional, we scale to the GCD 3*5*7*8 = 840 */ /* bfraction is fractional, we scale to the GCD 3*5*7*8 = 840 */
const int16_t vc9_bfraction_lut[23] = { const int16_t vc9_bfraction_lut[23] = {
...@@ -74,7 +74,7 @@ static const uint8_t vc9_norm2_bits[4] = { ...@@ -74,7 +74,7 @@ static const uint8_t vc9_norm2_bits[4] = {
1, 3, 3, 2 1, 3, 3, 2
}; };
#if VLC_NORM6_METH0D == 1 #if TILE_VLC_METHOD == 1
static const uint16_t vc9_norm6_codes[64] = { static const uint16_t vc9_norm6_codes[64] = {
0x001, 0x002, 0x003, 0x000, 0x004, 0x001, 0x002, 0x047, 0x005, 0x003, 0x004, 0x04B, 0x005, 0x04D, 0x04E, 0x30E, 0x001, 0x002, 0x003, 0x000, 0x004, 0x001, 0x002, 0x047, 0x005, 0x003, 0x004, 0x04B, 0x005, 0x04D, 0x04E, 0x30E,
0x006, 0x006, 0x007, 0x053, 0x008, 0x055, 0x056, 0x30D, 0x009, 0x059, 0x05A, 0x30C, 0x05C, 0x30B, 0x30A, 0x037, 0x006, 0x006, 0x007, 0x053, 0x008, 0x055, 0x056, 0x30D, 0x009, 0x059, 0x05A, 0x30C, 0x05C, 0x30B, 0x30A, 0x037,
......
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