Mercurial > libavcodec.hg
comparison vp6.c @ 12292:d8364962cc4a libavcodec
ff_prefix non static vp56 functions.
author | alexc |
---|---|
date | Wed, 28 Jul 2010 05:36:33 +0000 |
parents | 3f5b35e5f4de |
children | 83400282990a |
comparison
equal
deleted
inserted
replaced
12291:d6ee9556010d | 12292:d8364962cc4a |
---|---|
52 int rows, cols; | 52 int rows, cols; |
53 int res = 1; | 53 int res = 1; |
54 int separated_coeff = buf[0] & 1; | 54 int separated_coeff = buf[0] & 1; |
55 | 55 |
56 s->framep[VP56_FRAME_CURRENT]->key_frame = !(buf[0] & 0x80); | 56 s->framep[VP56_FRAME_CURRENT]->key_frame = !(buf[0] & 0x80); |
57 vp56_init_dequant(s, (buf[0] >> 1) & 0x3F); | 57 ff_vp56_init_dequant(s, (buf[0] >> 1) & 0x3F); |
58 | 58 |
59 if (s->framep[VP56_FRAME_CURRENT]->key_frame) { | 59 if (s->framep[VP56_FRAME_CURRENT]->key_frame) { |
60 sub_version = buf[1] >> 3; | 60 sub_version = buf[1] >> 3; |
61 if (sub_version > 8) | 61 if (sub_version > 8) |
62 return 0; | 62 return 0; |
574 | 574 |
575 static av_cold int vp6_decode_init(AVCodecContext *avctx) | 575 static av_cold int vp6_decode_init(AVCodecContext *avctx) |
576 { | 576 { |
577 VP56Context *s = avctx->priv_data; | 577 VP56Context *s = avctx->priv_data; |
578 | 578 |
579 vp56_init(avctx, avctx->codec->id == CODEC_ID_VP6, | 579 ff_vp56_init(avctx, avctx->codec->id == CODEC_ID_VP6, |
580 avctx->codec->id == CODEC_ID_VP6A); | 580 avctx->codec->id == CODEC_ID_VP6A); |
581 s->vp56_coord_div = vp6_coord_div; | 581 s->vp56_coord_div = vp6_coord_div; |
582 s->parse_vector_adjustment = vp6_parse_vector_adjustment; | 582 s->parse_vector_adjustment = vp6_parse_vector_adjustment; |
583 s->filter = vp6_filter; | 583 s->filter = vp6_filter; |
584 s->default_models_init = vp6_default_models_init; | 584 s->default_models_init = vp6_default_models_init; |
592 static av_cold int vp6_decode_free(AVCodecContext *avctx) | 592 static av_cold int vp6_decode_free(AVCodecContext *avctx) |
593 { | 593 { |
594 VP56Context *s = avctx->priv_data; | 594 VP56Context *s = avctx->priv_data; |
595 int pt, ct, cg; | 595 int pt, ct, cg; |
596 | 596 |
597 vp56_free(avctx); | 597 ff_vp56_free(avctx); |
598 | 598 |
599 for (pt=0; pt<2; pt++) { | 599 for (pt=0; pt<2; pt++) { |
600 free_vlc(&s->dccv_vlc[pt]); | 600 free_vlc(&s->dccv_vlc[pt]); |
601 free_vlc(&s->runv_vlc[pt]); | 601 free_vlc(&s->runv_vlc[pt]); |
602 for (ct=0; ct<3; ct++) | 602 for (ct=0; ct<3; ct++) |
612 CODEC_ID_VP6, | 612 CODEC_ID_VP6, |
613 sizeof(VP56Context), | 613 sizeof(VP56Context), |
614 vp6_decode_init, | 614 vp6_decode_init, |
615 NULL, | 615 NULL, |
616 vp6_decode_free, | 616 vp6_decode_free, |
617 vp56_decode_frame, | 617 ff_vp56_decode_frame, |
618 CODEC_CAP_DR1, | 618 CODEC_CAP_DR1, |
619 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6"), | 619 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6"), |
620 }; | 620 }; |
621 | 621 |
622 /* flash version, not flipped upside-down */ | 622 /* flash version, not flipped upside-down */ |
626 CODEC_ID_VP6F, | 626 CODEC_ID_VP6F, |
627 sizeof(VP56Context), | 627 sizeof(VP56Context), |
628 vp6_decode_init, | 628 vp6_decode_init, |
629 NULL, | 629 NULL, |
630 vp6_decode_free, | 630 vp6_decode_free, |
631 vp56_decode_frame, | 631 ff_vp56_decode_frame, |
632 CODEC_CAP_DR1, | 632 CODEC_CAP_DR1, |
633 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version)"), | 633 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version)"), |
634 }; | 634 }; |
635 | 635 |
636 /* flash version, not flipped upside-down, with alpha channel */ | 636 /* flash version, not flipped upside-down, with alpha channel */ |
640 CODEC_ID_VP6A, | 640 CODEC_ID_VP6A, |
641 sizeof(VP56Context), | 641 sizeof(VP56Context), |
642 vp6_decode_init, | 642 vp6_decode_init, |
643 NULL, | 643 NULL, |
644 vp6_decode_free, | 644 vp6_decode_free, |
645 vp56_decode_frame, | 645 ff_vp56_decode_frame, |
646 CODEC_CAP_DR1, | 646 CODEC_CAP_DR1, |
647 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version, with alpha channel)"), | 647 .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version, with alpha channel)"), |
648 }; | 648 }; |