00001 /* 00002 * Block Gilbert-Moore decoder 00003 * Copyright (c) 2010 Thilo Borgmann <thilo.borgmann _at_ googlemail.com> 00004 * 00005 * This file is part of FFmpeg. 00006 * 00007 * FFmpeg is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * FFmpeg is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with FFmpeg; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00029 #ifndef AVCODEC_BGMC_H 00030 #define AVCODEC_BGMC_H 00031 00032 00033 #include "avcodec.h" 00034 #include "get_bits.h" 00035 00036 00037 int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status); 00038 00039 00040 void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status); 00041 00042 00043 void ff_bgmc_decode_init(GetBitContext *gb, 00044 unsigned int *h, unsigned int *l, unsigned int *v); 00045 00046 00047 void ff_bgmc_decode_end(GetBitContext *gb); 00048 00049 00050 void ff_bgmc_decode(GetBitContext *gb, unsigned int num, int32_t *dst, 00051 int delta, unsigned int sx, 00052 unsigned int *h, unsigned int *l, unsigned int *v, 00053 uint8_t *cf_lut, int *cf_lut_status); 00054 00055 00056 #endif /* AVCODEC_BGMC_H */