2010-02-13 18:24:13 +00:00
|
|
|
/*
|
|
|
|
* Block Gilbert-Moore decoder
|
2013-08-13 08:04:05 +00:00
|
|
|
* Copyright (c) 2010 Thilo Borgmann <thilo.borgmann _at_ mail.de>
|
2010-02-13 18:24:13 +00:00
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* 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
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-04-20 14:45:34 +00:00
|
|
|
* @file
|
2010-02-13 18:24:13 +00:00
|
|
|
* Block Gilbert-Moore decoder header
|
2013-08-13 08:04:05 +00:00
|
|
|
* @author Thilo Borgmann <thilo.borgmann _at_ mail.de>
|
2010-02-13 18:24:13 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef AVCODEC_BGMC_H
|
|
|
|
#define AVCODEC_BGMC_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "avcodec.h"
|
|
|
|
#include "get_bits.h"
|
|
|
|
|
|
|
|
|
2010-11-08 15:22:15 +00:00
|
|
|
int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status);
|
2010-02-13 18:24:13 +00:00
|
|
|
|
|
|
|
|
2010-11-08 15:22:15 +00:00
|
|
|
void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status);
|
2010-02-13 18:24:13 +00:00
|
|
|
|
|
|
|
|
2019-09-01 20:31:45 +00:00
|
|
|
int ff_bgmc_decode_init(GetBitContext *gb,
|
2010-02-13 18:24:13 +00:00
|
|
|
unsigned int *h, unsigned int *l, unsigned int *v);
|
|
|
|
|
|
|
|
|
|
|
|
void ff_bgmc_decode_end(GetBitContext *gb);
|
|
|
|
|
|
|
|
|
|
|
|
void ff_bgmc_decode(GetBitContext *gb, unsigned int num, int32_t *dst,
|
2010-11-08 15:22:15 +00:00
|
|
|
int delta, unsigned int sx,
|
2010-02-13 18:24:13 +00:00
|
|
|
unsigned int *h, unsigned int *l, unsigned int *v,
|
2010-11-08 15:22:15 +00:00
|
|
|
uint8_t *cf_lut, int *cf_lut_status);
|
2010-02-13 18:24:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* AVCODEC_BGMC_H */
|