comparison vp56.c @ 12292:d8364962cc4a libavcodec

ff_prefix non static vp56 functions.
author alexc
date Wed, 28 Jul 2010 05:36:33 +0000
parents 85ee3d14b906
children 54583a14a995
comparison
equal deleted inserted replaced
12291:d6ee9556010d 12292:d8364962cc4a
26 26
27 #include "vp56.h" 27 #include "vp56.h"
28 #include "vp56data.h" 28 #include "vp56data.h"
29 29
30 30
31 void vp56_init_dequant(VP56Context *s, int quantizer) 31 void ff_vp56_init_dequant(VP56Context *s, int quantizer)
32 { 32 {
33 s->quantizer = quantizer; 33 s->quantizer = quantizer;
34 s->dequant_dc = vp56_dc_dequant[quantizer] << 2; 34 s->dequant_dc = vp56_dc_dequant[quantizer] << 2;
35 s->dequant_ac = vp56_ac_dequant[quantizer] << 2; 35 s->dequant_ac = vp56_ac_dequant[quantizer] << 2;
36 memset(s->qscale_table, quantizer, s->mb_width); 36 memset(s->qscale_table, quantizer, s->mb_width);
479 s->edge_emu_buffer += 15 * stride; 479 s->edge_emu_buffer += 15 * stride;
480 480
481 return 0; 481 return 0;
482 } 482 }
483 483
484 int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size, 484 int ff_vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
485 AVPacket *avpkt) 485 AVPacket *avpkt)
486 { 486 {
487 const uint8_t *buf = avpkt->data; 487 const uint8_t *buf = avpkt->data;
488 VP56Context *s = avctx->priv_data; 488 VP56Context *s = avctx->priv_data;
489 AVFrame *const p = s->framep[VP56_FRAME_CURRENT]; 489 AVFrame *const p = s->framep[VP56_FRAME_CURRENT];
637 *data_size = sizeof(AVFrame); 637 *data_size = sizeof(AVFrame);
638 638
639 return avpkt->size; 639 return avpkt->size;
640 } 640 }
641 641
642 av_cold void vp56_init(AVCodecContext *avctx, int flip, int has_alpha) 642 av_cold void ff_vp56_init(AVCodecContext *avctx, int flip, int has_alpha)
643 { 643 {
644 VP56Context *s = avctx->priv_data; 644 VP56Context *s = avctx->priv_data;
645 int i; 645 int i;
646 646
647 s->avctx = avctx; 647 s->avctx = avctx;
676 s->frbi = 0; 676 s->frbi = 0;
677 s->srbi = 2; 677 s->srbi = 2;
678 } 678 }
679 } 679 }
680 680
681 av_cold int vp56_free(AVCodecContext *avctx) 681 av_cold int ff_vp56_free(AVCodecContext *avctx)
682 { 682 {
683 VP56Context *s = avctx->priv_data; 683 VP56Context *s = avctx->priv_data;
684 684
685 av_freep(&s->qscale_table); 685 av_freep(&s->qscale_table);
686 av_freep(&s->above_blocks); 686 av_freep(&s->above_blocks);