2010-02-13 20:24:13 +02:00
|
|
|
/*
|
|
|
|
* Block Gilbert-Moore decoder
|
|
|
|
* Copyright (c) 2010 Thilo Borgmann <thilo.borgmann _at_ googlemail.com>
|
|
|
|
*
|
2011-03-18 19:35:10 +02:00
|
|
|
* This file is part of Libav.
|
2010-02-13 20:24:13 +02:00
|
|
|
*
|
2011-03-18 19:35:10 +02:00
|
|
|
* Libav is free software; you can redistribute it and/or
|
2010-02-13 20:24:13 +02:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
2011-03-18 19:35:10 +02:00
|
|
|
* Libav is distributed in the hope that it will be useful,
|
2010-02-13 20:24:13 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2011-03-18 19:35:10 +02:00
|
|
|
* License along with Libav; if not, write to the Free Software
|
2010-02-13 20:24:13 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-04-20 17:45:34 +03:00
|
|
|
* @file
|
2010-02-13 20:24:13 +02:00
|
|
|
* Block Gilbert-Moore decoder header
|
|
|
|
* @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef AVCODEC_BGMC_H
|
|
|
|
#define AVCODEC_BGMC_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "avcodec.h"
|
2016-04-08 19:22:46 +02:00
|
|
|
#include "bitstream.h"
|
2010-02-13 20:24:13 +02:00
|
|
|
|
|
|
|
|
2010-11-08 17:22:15 +02:00
|
|
|
int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status);
|
2010-02-13 20:24:13 +02:00
|
|
|
|
|
|
|
|
2010-11-08 17:22:15 +02:00
|
|
|
void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status);
|
2010-02-13 20:24:13 +02:00
|
|
|
|
|
|
|
|
2016-04-08 19:22:46 +02:00
|
|
|
void ff_bgmc_decode_init(BitstreamContext *bc,
|
|
|
|
unsigned int *h, unsigned int *l, unsigned int *v);
|
2010-02-13 20:24:13 +02:00
|
|
|
|
|
|
|
|
2016-04-08 19:22:46 +02:00
|
|
|
void ff_bgmc_decode_end(BitstreamContext *bc);
|
2010-02-13 20:24:13 +02:00
|
|
|
|
|
|
|
|
2016-04-08 19:22:46 +02:00
|
|
|
void ff_bgmc_decode(BitstreamContext *bc, unsigned int num, int32_t *dst,
|
|
|
|
int delta, unsigned int sx,
|
|
|
|
unsigned int *h, unsigned int *l, unsigned int *v,
|
|
|
|
uint8_t *cf_lut, int *cf_lut_status);
|
2010-02-13 20:24:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* AVCODEC_BGMC_H */
|