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