Mercurial > libavcodec.hg
comparison cavsdata.h @ 5242:deb5b8213d4e libavcodec
cosmetic: rename VLC tables to make clear they
are for decoding
| author | stefang |
|---|---|
| date | Sat, 07 Jul 2007 06:49:20 +0000 |
| parents | 5760ab0250aa |
| children | dc2579bede07 |
comparison
equal
deleted
inserted
replaced
| 5241:74b6423a5a0d | 5242:deb5b8213d4e |
|---|---|
| 115 /** marks block as using intra prediction */ | 115 /** marks block as using intra prediction */ |
| 116 const vector_t ff_cavs_intra_mv = {0,0,1,REF_INTRA}; | 116 const vector_t ff_cavs_intra_mv = {0,0,1,REF_INTRA}; |
| 117 | 117 |
| 118 #define EOB 0,0,0 | 118 #define EOB 0,0,0 |
| 119 | 119 |
| 120 static const residual_vlc_t intra_2dvlc[7] = { | 120 static const dec_2dvlc_t intra_dec[7] = { |
| 121 { | 121 { |
| 122 { //level / run / table_inc | 122 { //level / run / table_inc |
| 123 { 1, 1, 1},{ -1, 1, 1},{ 1, 2, 1},{ -1, 2, 1},{ 1, 3, 1},{ -1, 3, 1}, | 123 { 1, 1, 1},{ -1, 1, 1},{ 1, 2, 1},{ -1, 2, 1},{ 1, 3, 1},{ -1, 3, 1}, |
| 124 { 1, 4, 1},{ -1, 4, 1},{ 1, 5, 1},{ -1, 5, 1},{ 1, 6, 1},{ -1, 6, 1}, | 124 { 1, 4, 1},{ -1, 4, 1},{ 1, 5, 1},{ -1, 5, 1},{ 1, 6, 1},{ -1, 6, 1}, |
| 125 { 1, 7, 1},{ -1, 7, 1},{ 1, 8, 1},{ -1, 8, 1},{ 1, 9, 1},{ -1, 9, 1}, | 125 { 1, 7, 1},{ -1, 7, 1},{ 1, 8, 1},{ -1, 8, 1},{ 1, 9, 1},{ -1, 9, 1}, |
| 252 INT_MAX, //inc_limit | 252 INT_MAX, //inc_limit |
| 253 2, //max_run | 253 2, //max_run |
| 254 } | 254 } |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 static const residual_vlc_t inter_2dvlc[7] = { | 257 static const dec_2dvlc_t inter_dec[7] = { |
| 258 { | 258 { |
| 259 { //level / run | 259 { //level / run |
| 260 { 1, 1, 1},{ -1, 1, 1},{ 1, 2, 1},{ -1, 2, 1},{ 1, 3, 1},{ -1, 3, 1}, | 260 { 1, 1, 1},{ -1, 1, 1},{ 1, 2, 1},{ -1, 2, 1},{ 1, 3, 1},{ -1, 3, 1}, |
| 261 { 1, 4, 1},{ -1, 4, 1},{ 1, 5, 1},{ -1, 5, 1},{ 1, 6, 1},{ -1, 6, 1}, | 261 { 1, 4, 1},{ -1, 4, 1},{ 1, 5, 1},{ -1, 5, 1},{ 1, 6, 1},{ -1, 6, 1}, |
| 262 { 1, 7, 1},{ -1, 7, 1},{ 1, 8, 1},{ -1, 8, 1},{ 1, 9, 1},{ -1, 9, 1}, | 262 { 1, 7, 1},{ -1, 7, 1},{ 1, 8, 1},{ -1, 8, 1},{ 1, 9, 1},{ -1, 9, 1}, |
| 389 INT_MAX, //inc_limit | 389 INT_MAX, //inc_limit |
| 390 4 //max_run | 390 4 //max_run |
| 391 } | 391 } |
| 392 }; | 392 }; |
| 393 | 393 |
| 394 static const residual_vlc_t chroma_2dvlc[5] = { | 394 static const dec_2dvlc_t chroma_dec[5] = { |
| 395 { | 395 { |
| 396 { //level / run | 396 { //level / run |
| 397 { 1, 1, 1},{ -1, 1, 1},{ 1, 2, 1},{ -1, 2, 1},{ 1, 3, 1},{ -1, 3, 1}, | 397 { 1, 1, 1},{ -1, 1, 1},{ 1, 2, 1},{ -1, 2, 1},{ 1, 3, 1},{ -1, 3, 1}, |
| 398 { 1, 4, 1},{ -1, 4, 1},{ 1, 5, 1},{ -1, 5, 1},{ 1, 6, 1},{ -1, 6, 1}, | 398 { 1, 4, 1},{ -1, 4, 1},{ 1, 5, 1},{ -1, 5, 1},{ 1, 6, 1},{ -1, 6, 1}, |
| 399 { 1, 7, 1},{ -1, 7, 1},{ 2, 1, 2},{ -2, 1, 2},{ 1, 8, 1},{ -1, 8, 1}, | 399 { 1, 7, 1},{ -1, 7, 1},{ 2, 1, 2},{ -2, 1, 2},{ 1, 8, 1},{ -1, 8, 1}, |
