00001
00028 #include <stdlib.h>
00029
00030 #include "avcodec.h"
00031 #include "dsputil.h"
00032 #include "get_bits.h"
00033 #include "huffman.h"
00034
00035 #include "vp56.h"
00036 #include "vp56data.h"
00037 #include "vp6data.h"
00038
00039
00040 static void vp6_parse_coeff(VP56Context *s);
00041 static void vp6_parse_coeff_huffman(VP56Context *s);
00042
00043 static int vp6_parse_header(VP56Context *s, const uint8_t *buf, int buf_size,
00044 int *golden_frame)
00045 {
00046 VP56RangeCoder *c = &s->c;
00047 int parse_filter_info = 0;
00048 int coeff_offset = 0;
00049 int vrt_shift = 0;
00050 int sub_version;
00051 int rows, cols;
00052 int res = 1;
00053 int separated_coeff = buf[0] & 1;
00054
00055 s->framep[VP56_FRAME_CURRENT]->key_frame = !(buf[0] & 0x80);
00056 vp56_init_dequant(s, (buf[0] >> 1) & 0x3F);
00057
00058 if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
00059 sub_version = buf[1] >> 3;
00060 if (sub_version > 8)
00061 return 0;
00062 s->filter_header = buf[1] & 0x06;
00063 if (buf[1] & 1) {
00064 av_log(s->avctx, AV_LOG_ERROR, "interlacing not supported\n");
00065 return 0;
00066 }
00067 if (separated_coeff || !s->filter_header) {
00068 coeff_offset = AV_RB16(buf+2) - 2;
00069 buf += 2;
00070 buf_size -= 2;
00071 }
00072
00073 rows = buf[2];
00074 cols = buf[3];
00075
00076
00077
00078 if (!s->macroblocks ||
00079 16*cols != s->avctx->coded_width ||
00080 16*rows != s->avctx->coded_height) {
00081 avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
00082 if (s->avctx->extradata_size == 1) {
00083 s->avctx->width -= s->avctx->extradata[0] >> 4;
00084 s->avctx->height -= s->avctx->extradata[0] & 0x0F;
00085 }
00086 res = 2;
00087 }
00088
00089 vp56_init_range_decoder(c, buf+6, buf_size-6);
00090 vp56_rac_gets(c, 2);
00091
00092 parse_filter_info = s->filter_header;
00093 if (sub_version < 8)
00094 vrt_shift = 5;
00095 s->sub_version = sub_version;
00096 } else {
00097 if (!s->sub_version)
00098 return 0;
00099
00100 if (separated_coeff || !s->filter_header) {
00101 coeff_offset = AV_RB16(buf+1) - 2;
00102 buf += 2;
00103 buf_size -= 2;
00104 }
00105 vp56_init_range_decoder(c, buf+1, buf_size-1);
00106
00107 *golden_frame = vp56_rac_get(c);
00108 if (s->filter_header) {
00109 s->deblock_filtering = vp56_rac_get(c);
00110 if (s->deblock_filtering)
00111 vp56_rac_get(c);
00112 if (s->sub_version > 7)
00113 parse_filter_info = vp56_rac_get(c);
00114 }
00115 }
00116
00117 if (parse_filter_info) {
00118 if (vp56_rac_get(c)) {
00119 s->filter_mode = 2;
00120 s->sample_variance_threshold = vp56_rac_gets(c, 5) << vrt_shift;
00121 s->max_vector_length = 2 << vp56_rac_gets(c, 3);
00122 } else if (vp56_rac_get(c)) {
00123 s->filter_mode = 1;
00124 } else {
00125 s->filter_mode = 0;
00126 }
00127 if (s->sub_version > 7)
00128 s->filter_selection = vp56_rac_gets(c, 4);
00129 else
00130 s->filter_selection = 16;
00131 }
00132
00133 s->use_huffman = vp56_rac_get(c);
00134
00135 s->parse_coeff = vp6_parse_coeff;
00136 if (coeff_offset) {
00137 buf += coeff_offset;
00138 buf_size -= coeff_offset;
00139 if (buf_size < 0)
00140 return 0;
00141 if (s->use_huffman) {
00142 s->parse_coeff = vp6_parse_coeff_huffman;
00143 init_get_bits(&s->gb, buf, buf_size<<3);
00144 } else {
00145 vp56_init_range_decoder(&s->cc, buf, buf_size);
00146 s->ccp = &s->cc;
00147 }
00148 } else {
00149 s->ccp = &s->c;
00150 }
00151
00152 return res;
00153 }
00154
00155 static void vp6_coeff_order_table_init(VP56Context *s)
00156 {
00157 int i, pos, idx = 1;
00158
00159 s->modelp->coeff_index_to_pos[0] = 0;
00160 for (i=0; i<16; i++)
00161 for (pos=1; pos<64; pos++)
00162 if (s->modelp->coeff_reorder[pos] == i)
00163 s->modelp->coeff_index_to_pos[idx++] = pos;
00164 }
00165
00166 static void vp6_default_models_init(VP56Context *s)
00167 {
00168 VP56Model *model = s->modelp;
00169
00170 model->vector_dct[0] = 0xA2;
00171 model->vector_dct[1] = 0xA4;
00172 model->vector_sig[0] = 0x80;
00173 model->vector_sig[1] = 0x80;
00174
00175 memcpy(model->mb_types_stats, vp56_def_mb_types_stats, sizeof(model->mb_types_stats));
00176 memcpy(model->vector_fdv, vp6_def_fdv_vector_model, sizeof(model->vector_fdv));
00177 memcpy(model->vector_pdv, vp6_def_pdv_vector_model, sizeof(model->vector_pdv));
00178 memcpy(model->coeff_runv, vp6_def_runv_coeff_model, sizeof(model->coeff_runv));
00179 memcpy(model->coeff_reorder, vp6_def_coeff_reorder, sizeof(model->coeff_reorder));
00180
00181 vp6_coeff_order_table_init(s);
00182 }
00183
00184 static void vp6_parse_vector_models(VP56Context *s)
00185 {
00186 VP56RangeCoder *c = &s->c;
00187 VP56Model *model = s->modelp;
00188 int comp, node;
00189
00190 for (comp=0; comp<2; comp++) {
00191 if (vp56_rac_get_prob(c, vp6_sig_dct_pct[comp][0]))
00192 model->vector_dct[comp] = vp56_rac_gets_nn(c, 7);
00193 if (vp56_rac_get_prob(c, vp6_sig_dct_pct[comp][1]))
00194 model->vector_sig[comp] = vp56_rac_gets_nn(c, 7);
00195 }
00196
00197 for (comp=0; comp<2; comp++)
00198 for (node=0; node<7; node++)
00199 if (vp56_rac_get_prob(c, vp6_pdv_pct[comp][node]))
00200 model->vector_pdv[comp][node] = vp56_rac_gets_nn(c, 7);
00201
00202 for (comp=0; comp<2; comp++)
00203 for (node=0; node<8; node++)
00204 if (vp56_rac_get_prob(c, vp6_fdv_pct[comp][node]))
00205 model->vector_fdv[comp][node] = vp56_rac_gets_nn(c, 7);
00206 }
00207
00208
00209 static int vp6_huff_cmp(const void *va, const void *vb)
00210 {
00211 const Node *a = va, *b = vb;
00212 return (a->count - b->count)*16 + (b->sym - a->sym);
00213 }
00214
00215 static void vp6_build_huff_tree(VP56Context *s, uint8_t coeff_model[],
00216 const uint8_t *map, unsigned size, VLC *vlc)
00217 {
00218 Node nodes[2*size], *tmp = &nodes[size];
00219 int a, b, i;
00220
00221
00222 tmp[0].count = 256;
00223 for (i=0; i<size-1; i++) {
00224 a = tmp[i].count * coeff_model[i] >> 8;
00225 b = tmp[i].count * (255 - coeff_model[i]) >> 8;
00226 nodes[map[2*i ]].count = a + !a;
00227 nodes[map[2*i+1]].count = b + !b;
00228 }
00229
00230 free_vlc(vlc);
00231
00232 ff_huff_build_tree(s->avctx, vlc, size, nodes, vp6_huff_cmp,
00233 FF_HUFFMAN_FLAG_HNODE_FIRST);
00234 }
00235
00236 static void vp6_parse_coeff_models(VP56Context *s)
00237 {
00238 VP56RangeCoder *c = &s->c;
00239 VP56Model *model = s->modelp;
00240 int def_prob[11];
00241 int node, cg, ctx, pos;
00242 int ct;
00243 int pt;
00244
00245 memset(def_prob, 0x80, sizeof(def_prob));
00246
00247 for (pt=0; pt<2; pt++)
00248 for (node=0; node<11; node++)
00249 if (vp56_rac_get_prob(c, vp6_dccv_pct[pt][node])) {
00250 def_prob[node] = vp56_rac_gets_nn(c, 7);
00251 model->coeff_dccv[pt][node] = def_prob[node];
00252 } else if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
00253 model->coeff_dccv[pt][node] = def_prob[node];
00254 }
00255
00256 if (vp56_rac_get(c)) {
00257 for (pos=1; pos<64; pos++)
00258 if (vp56_rac_get_prob(c, vp6_coeff_reorder_pct[pos]))
00259 model->coeff_reorder[pos] = vp56_rac_gets(c, 4);
00260 vp6_coeff_order_table_init(s);
00261 }
00262
00263 for (cg=0; cg<2; cg++)
00264 for (node=0; node<14; node++)
00265 if (vp56_rac_get_prob(c, vp6_runv_pct[cg][node]))
00266 model->coeff_runv[cg][node] = vp56_rac_gets_nn(c, 7);
00267
00268 for (ct=0; ct<3; ct++)
00269 for (pt=0; pt<2; pt++)
00270 for (cg=0; cg<6; cg++)
00271 for (node=0; node<11; node++)
00272 if (vp56_rac_get_prob(c, vp6_ract_pct[ct][pt][cg][node])) {
00273 def_prob[node] = vp56_rac_gets_nn(c, 7);
00274 model->coeff_ract[pt][ct][cg][node] = def_prob[node];
00275 } else if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
00276 model->coeff_ract[pt][ct][cg][node] = def_prob[node];
00277 }
00278
00279 if (s->use_huffman) {
00280 for (pt=0; pt<2; pt++) {
00281 vp6_build_huff_tree(s, model->coeff_dccv[pt],
00282 vp6_huff_coeff_map, 12, &s->dccv_vlc[pt]);
00283 vp6_build_huff_tree(s, model->coeff_runv[pt],
00284 vp6_huff_run_map, 9, &s->runv_vlc[pt]);
00285 for (ct=0; ct<3; ct++)
00286 for (cg = 0; cg < 6; cg++)
00287 vp6_build_huff_tree(s, model->coeff_ract[pt][ct][cg],
00288 vp6_huff_coeff_map, 12,
00289 &s->ract_vlc[pt][ct][cg]);
00290 }
00291 memset(s->nb_null, 0, sizeof(s->nb_null));
00292 } else {
00293
00294 for (pt=0; pt<2; pt++)
00295 for (ctx=0; ctx<3; ctx++)
00296 for (node=0; node<5; node++)
00297 model->coeff_dcct[pt][ctx][node] = av_clip(((model->coeff_dccv[pt][node] * vp6_dccv_lc[ctx][node][0] + 128) >> 8) + vp6_dccv_lc[ctx][node][1], 1, 255);
00298 }
00299 }
00300
00301 static void vp6_parse_vector_adjustment(VP56Context *s, VP56mv *vect)
00302 {
00303 VP56RangeCoder *c = &s->c;
00304 VP56Model *model = s->modelp;
00305 int comp;
00306
00307 *vect = (VP56mv) {0,0};
00308 if (s->vector_candidate_pos < 2)
00309 *vect = s->vector_candidate[0];
00310
00311 for (comp=0; comp<2; comp++) {
00312 int i, delta = 0;
00313
00314 if (vp56_rac_get_prob(c, model->vector_dct[comp])) {
00315 static const uint8_t prob_order[] = {0, 1, 2, 7, 6, 5, 4};
00316 for (i=0; i<sizeof(prob_order); i++) {
00317 int j = prob_order[i];
00318 delta |= vp56_rac_get_prob(c, model->vector_fdv[comp][j])<<j;
00319 }
00320 if (delta & 0xF0)
00321 delta |= vp56_rac_get_prob(c, model->vector_fdv[comp][3])<<3;
00322 else
00323 delta |= 8;
00324 } else {
00325 delta = vp56_rac_get_tree(c, vp56_pva_tree,
00326 model->vector_pdv[comp]);
00327 }
00328
00329 if (delta && vp56_rac_get_prob(c, model->vector_sig[comp]))
00330 delta = -delta;
00331
00332 if (!comp)
00333 vect->x += delta;
00334 else
00335 vect->y += delta;
00336 }
00337 }
00338
00343 static unsigned vp6_get_nb_null(VP56Context *s)
00344 {
00345 unsigned val = get_bits(&s->gb, 2);
00346 if (val == 2)
00347 val += get_bits(&s->gb, 2);
00348 else if (val == 3) {
00349 val = get_bits1(&s->gb) << 2;
00350 val = 6+val + get_bits(&s->gb, 2+val);
00351 }
00352 return val;
00353 }
00354
00355 static void vp6_parse_coeff_huffman(VP56Context *s)
00356 {
00357 VP56Model *model = s->modelp;
00358 uint8_t *permute = s->scantable.permutated;
00359 VLC *vlc_coeff;
00360 int coeff, sign, coeff_idx;
00361 int b, cg, idx;
00362 int pt = 0;
00363
00364 for (b=0; b<6; b++) {
00365 int ct = 0;
00366 if (b > 3) pt = 1;
00367 vlc_coeff = &s->dccv_vlc[pt];
00368
00369 for (coeff_idx=0; coeff_idx<64; ) {
00370 int run = 1;
00371 if (coeff_idx<2 && s->nb_null[coeff_idx][pt]) {
00372 s->nb_null[coeff_idx][pt]--;
00373 if (coeff_idx)
00374 break;
00375 } else {
00376 if (get_bits_count(&s->gb) >= s->gb.size_in_bits)
00377 return;
00378 coeff = get_vlc2(&s->gb, vlc_coeff->table, 9, 3);
00379 if (coeff == 0) {
00380 if (coeff_idx) {
00381 int pt = (coeff_idx >= 6);
00382 run += get_vlc2(&s->gb, s->runv_vlc[pt].table, 9, 3);
00383 if (run >= 9)
00384 run += get_bits(&s->gb, 6);
00385 } else
00386 s->nb_null[0][pt] = vp6_get_nb_null(s);
00387 ct = 0;
00388 } else if (coeff == 11) {
00389 if (coeff_idx == 1)
00390 s->nb_null[1][pt] = vp6_get_nb_null(s);
00391 break;
00392 } else {
00393 int coeff2 = vp56_coeff_bias[coeff];
00394 if (coeff > 4)
00395 coeff2 += get_bits(&s->gb, coeff <= 9 ? coeff - 4 : 11);
00396 ct = 1 + (coeff2 > 1);
00397 sign = get_bits1(&s->gb);
00398 coeff2 = (coeff2 ^ -sign) + sign;
00399 if (coeff_idx)
00400 coeff2 *= s->dequant_ac;
00401 idx = model->coeff_index_to_pos[coeff_idx];
00402 s->block_coeff[b][permute[idx]] = coeff2;
00403 }
00404 }
00405 coeff_idx+=run;
00406 cg = FFMIN(vp6_coeff_groups[coeff_idx], 3);
00407 vlc_coeff = &s->ract_vlc[pt][ct][cg];
00408 }
00409 }
00410 }
00411
00412 static void vp6_parse_coeff(VP56Context *s)
00413 {
00414 VP56RangeCoder *c = s->ccp;
00415 VP56Model *model = s->modelp;
00416 uint8_t *permute = s->scantable.permutated;
00417 uint8_t *model1, *model2, *model3;
00418 int coeff, sign, coeff_idx;
00419 int b, i, cg, idx, ctx;
00420 int pt = 0;
00421
00422 for (b=0; b<6; b++) {
00423 int ct = 1;
00424 int run = 1;
00425
00426 if (b > 3) pt = 1;
00427
00428 ctx = s->left_block[vp56_b6to4[b]].not_null_dc
00429 + s->above_blocks[s->above_block_idx[b]].not_null_dc;
00430 model1 = model->coeff_dccv[pt];
00431 model2 = model->coeff_dcct[pt][ctx];
00432
00433 for (coeff_idx=0; coeff_idx<64; ) {
00434 if ((coeff_idx>1 && ct==0) || vp56_rac_get_prob(c, model2[0])) {
00435
00436 if (vp56_rac_get_prob(c, model2[2])) {
00437 if (vp56_rac_get_prob(c, model2[3])) {
00438 idx = vp56_rac_get_tree(c, vp56_pc_tree, model1);
00439 coeff = vp56_coeff_bias[idx+5];
00440 for (i=vp56_coeff_bit_length[idx]; i>=0; i--)
00441 coeff += vp56_rac_get_prob(c, vp56_coeff_parse_table[idx][i]) << i;
00442 } else {
00443 if (vp56_rac_get_prob(c, model2[4]))
00444 coeff = 3 + vp56_rac_get_prob(c, model1[5]);
00445 else
00446 coeff = 2;
00447 }
00448 ct = 2;
00449 } else {
00450 ct = 1;
00451 coeff = 1;
00452 }
00453 sign = vp56_rac_get(c);
00454 coeff = (coeff ^ -sign) + sign;
00455 if (coeff_idx)
00456 coeff *= s->dequant_ac;
00457 idx = model->coeff_index_to_pos[coeff_idx];
00458 s->block_coeff[b][permute[idx]] = coeff;
00459 run = 1;
00460 } else {
00461
00462 ct = 0;
00463 if (coeff_idx > 0) {
00464 if (!vp56_rac_get_prob(c, model2[1]))
00465 break;
00466
00467 model3 = model->coeff_runv[coeff_idx >= 6];
00468 run = vp56_rac_get_tree(c, vp6_pcr_tree, model3);
00469 if (!run)
00470 for (run=9, i=0; i<6; i++)
00471 run += vp56_rac_get_prob(c, model3[i+8]) << i;
00472 }
00473 }
00474
00475 cg = vp6_coeff_groups[coeff_idx+=run];
00476 model1 = model2 = model->coeff_ract[pt][ct][cg];
00477 }
00478
00479 s->left_block[vp56_b6to4[b]].not_null_dc =
00480 s->above_blocks[s->above_block_idx[b]].not_null_dc = !!s->block_coeff[b][0];
00481 }
00482 }
00483
00484 static int vp6_block_variance(uint8_t *src, int stride)
00485 {
00486 int sum = 0, square_sum = 0;
00487 int y, x;
00488
00489 for (y=0; y<8; y+=2) {
00490 for (x=0; x<8; x+=2) {
00491 sum += src[x];
00492 square_sum += src[x]*src[x];
00493 }
00494 src += 2*stride;
00495 }
00496 return (16*square_sum - sum*sum) >> 8;
00497 }
00498
00499 static void vp6_filter_hv4(uint8_t *dst, uint8_t *src, int stride,
00500 int delta, const int16_t *weights)
00501 {
00502 int x, y;
00503
00504 for (y=0; y<8; y++) {
00505 for (x=0; x<8; x++) {
00506 dst[x] = av_clip_uint8(( src[x-delta ] * weights[0]
00507 + src[x ] * weights[1]
00508 + src[x+delta ] * weights[2]
00509 + src[x+2*delta] * weights[3] + 64) >> 7);
00510 }
00511 src += stride;
00512 dst += stride;
00513 }
00514 }
00515
00516 static void vp6_filter_diag2(VP56Context *s, uint8_t *dst, uint8_t *src,
00517 int stride, int h_weight, int v_weight)
00518 {
00519 uint8_t *tmp = s->edge_emu_buffer+16;
00520 s->dsp.put_h264_chroma_pixels_tab[0](tmp, src, stride, 9, h_weight, 0);
00521 s->dsp.put_h264_chroma_pixels_tab[0](dst, tmp, stride, 8, 0, v_weight);
00522 }
00523
00524 static void vp6_filter(VP56Context *s, uint8_t *dst, uint8_t *src,
00525 int offset1, int offset2, int stride,
00526 VP56mv mv, int mask, int select, int luma)
00527 {
00528 int filter4 = 0;
00529 int x8 = mv.x & mask;
00530 int y8 = mv.y & mask;
00531
00532 if (luma) {
00533 x8 *= 2;
00534 y8 *= 2;
00535 filter4 = s->filter_mode;
00536 if (filter4 == 2) {
00537 if (s->max_vector_length &&
00538 (FFABS(mv.x) > s->max_vector_length ||
00539 FFABS(mv.y) > s->max_vector_length)) {
00540 filter4 = 0;
00541 } else if (s->sample_variance_threshold
00542 && (vp6_block_variance(src+offset1, stride)
00543 < s->sample_variance_threshold)) {
00544 filter4 = 0;
00545 }
00546 }
00547 }
00548
00549 if ((y8 && (offset2-offset1)*s->flip<0) || (!y8 && offset1 > offset2)) {
00550 offset1 = offset2;
00551 }
00552
00553 if (filter4) {
00554 if (!y8) {
00555 vp6_filter_hv4(dst, src+offset1, stride, 1,
00556 vp6_block_copy_filter[select][x8]);
00557 } else if (!x8) {
00558 vp6_filter_hv4(dst, src+offset1, stride, stride,
00559 vp6_block_copy_filter[select][y8]);
00560 } else {
00561 s->dsp.vp6_filter_diag4(dst, src+offset1+((mv.x^mv.y)>>31), stride,
00562 vp6_block_copy_filter[select][x8],
00563 vp6_block_copy_filter[select][y8]);
00564 }
00565 } else {
00566 if (!x8 || !y8) {
00567 s->dsp.put_h264_chroma_pixels_tab[0](dst, src+offset1, stride, 8, x8, y8);
00568 } else {
00569 vp6_filter_diag2(s, dst, src+offset1 + ((mv.x^mv.y)>>31), stride, x8, y8);
00570 }
00571 }
00572 }
00573
00574 static av_cold int vp6_decode_init(AVCodecContext *avctx)
00575 {
00576 VP56Context *s = avctx->priv_data;
00577
00578 vp56_init(avctx, avctx->codec->id == CODEC_ID_VP6,
00579 avctx->codec->id == CODEC_ID_VP6A);
00580 s->vp56_coord_div = vp6_coord_div;
00581 s->parse_vector_adjustment = vp6_parse_vector_adjustment;
00582 s->filter = vp6_filter;
00583 s->default_models_init = vp6_default_models_init;
00584 s->parse_vector_models = vp6_parse_vector_models;
00585 s->parse_coeff_models = vp6_parse_coeff_models;
00586 s->parse_header = vp6_parse_header;
00587
00588 return 0;
00589 }
00590
00591 static av_cold int vp6_decode_free(AVCodecContext *avctx)
00592 {
00593 VP56Context *s = avctx->priv_data;
00594 int pt, ct, cg;
00595
00596 vp56_free(avctx);
00597
00598 for (pt=0; pt<2; pt++) {
00599 free_vlc(&s->dccv_vlc[pt]);
00600 free_vlc(&s->runv_vlc[pt]);
00601 for (ct=0; ct<3; ct++)
00602 for (cg=0; cg<6; cg++)
00603 free_vlc(&s->ract_vlc[pt][ct][cg]);
00604 }
00605 return 0;
00606 }
00607
00608 AVCodec vp6_decoder = {
00609 "vp6",
00610 AVMEDIA_TYPE_VIDEO,
00611 CODEC_ID_VP6,
00612 sizeof(VP56Context),
00613 vp6_decode_init,
00614 NULL,
00615 vp6_decode_free,
00616 vp56_decode_frame,
00617 CODEC_CAP_DR1,
00618 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6"),
00619 };
00620
00621
00622 AVCodec vp6f_decoder = {
00623 "vp6f",
00624 AVMEDIA_TYPE_VIDEO,
00625 CODEC_ID_VP6F,
00626 sizeof(VP56Context),
00627 vp6_decode_init,
00628 NULL,
00629 vp6_decode_free,
00630 vp56_decode_frame,
00631 CODEC_CAP_DR1,
00632 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version)"),
00633 };
00634
00635
00636 AVCodec vp6a_decoder = {
00637 "vp6a",
00638 AVMEDIA_TYPE_VIDEO,
00639 CODEC_ID_VP6A,
00640 sizeof(VP56Context),
00641 vp6_decode_init,
00642 NULL,
00643 vp6_decode_free,
00644 vp56_decode_frame,
00645 CODEC_CAP_DR1,
00646 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version, with alpha channel)"),
00647 };