Revision ceaf1909 libavcodec/vc9.c

View differences:

libavcodec/vc9.c
929 929
 * @todo TODO: Take into account stride
930 930
 * @todo TODO: Allow use of external buffers ?
931 931
 */
932
int alloc_bitplane(BitPlane *bp, int width, int height)
932
static int alloc_bitplane(BitPlane *bp, int width, int height)
933 933
{
934 934
    if (!bp || bp->width<0 || bp->height<0) return -1;
935 935
    bp->data = (uint8_t*)av_malloc(width*height);
......
942 942
/** Free the bitplane's buffer
943 943
 * @param bp Bitplane which buffer is to free
944 944
 */
945
void free_bitplane(BitPlane *bp)
945
static void free_bitplane(BitPlane *bp)
946 946
{
947 947
    bp->width = bp->stride = bp->height = 0;
948 948
    if (bp->data) av_freep(&bp->data);
......
1832 1832
 * @todo TODO: Process the blocks
1833 1833
 * @todo TODO: Use M$ MPEG-4 cbp prediction
1834 1834
 */
1835
int vc9_decode_block(VC9Context *v, DCTELEM block[64], int n, int coded, int mquant)
1835
static int vc9_decode_block(VC9Context *v, DCTELEM block[64], int n, int coded, int mquant)
1836 1836
{
1837 1837
    GetBitContext *gb = &v->s.gb;
1838 1838
    MpegEncContext *s = &v->s;
......
1979 1979
/** Decode one I-frame MB (in Simple/Main profile)
1980 1980
 * @todo TODO: Extend to AP
1981 1981
 */
1982
int vc9_decode_i_mb(VC9Context *v, DCTELEM block[6][64])
1982
static int vc9_decode_i_mb(VC9Context *v, DCTELEM block[6][64])
1983 1983
{
1984 1984
    int i, cbp, val;
1985 1985
    uint8_t *coded_val;
......
2013 2013
 * @todo TODO: Extend to AP
2014 2014
 * @fixme FIXME: DC value for inter blocks not set
2015 2015
 */
2016
int vc9_decode_p_mb(VC9Context *v, DCTELEM block[6][64])
2016
static int vc9_decode_p_mb(VC9Context *v, DCTELEM block[6][64])
2017 2017
{
2018 2018
    MpegEncContext *s = &v->s;
2019 2019
    GetBitContext *gb = &s->gb;
......
2160 2160
 * @warning XXX: Used for decoding BI MBs
2161 2161
 * @fixme FIXME: DC value for inter blocks not set
2162 2162
 */
2163
int vc9_decode_b_mb(VC9Context *v, DCTELEM block[6][64])
2163
static int vc9_decode_b_mb(VC9Context *v, DCTELEM block[6][64])
2164 2164
{
2165 2165
    MpegEncContext *s = &v->s;
2166 2166
    GetBitContext *gb = &v->s.gb;

Also available in: Unified diff