FFmpeg
|
#include "libavutil/mem.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "get_bits.h"
#include "put_bits.h"
#include "faxcompr.h"
Go to the source code of this file.
Macros | |
#define | CCITT_SYMS 104 |
Functions | |
static av_cold void | ccitt_unpack_init (void) |
av_cold void | ff_ccitt_unpack_init (void) |
initialize unpacker code More... | |
static int | decode_uncompressed (AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) |
static int | decode_group3_1d_line (AVCodecContext *avctx, GetBitContext *gb, unsigned int pix_left, int *runs, const int *runend) |
static int | decode_group3_2d_line (AVCodecContext *avctx, GetBitContext *gb, unsigned int width, int *runs, const int *runend, const int *ref) |
static void | put_line (uint8_t *dst, int size, int width, const int *runs) |
static int | find_group3_syncmarker (GetBitContext *gb, int srcsize) |
int | ff_ccitt_unpack (AVCodecContext *avctx, const uint8_t *src, int srcsize, uint8_t *dst, int height, int stride, enum TiffCompr compr, int opts) |
unpack data compressed with CCITT Group 3 1/2-D or Group 4 method More... | |
Variables | |
static const uint16_t | ccitt_syms [CCITT_SYMS] |
static const uint8_t | ccitt_codes_bits [2][CCITT_SYMS] |
static const uint8_t | ccitt_codes_lens [2][CCITT_SYMS] |
static const uint8_t | ccitt_group3_2d_bits [11] |
static const uint8_t | ccitt_group3_2d_lens [11] |
static VLCElem | ccitt_group3_2d_vlc [512+528+648] |
static const VLCElem * | ccitt_vlc [2] |
CCITT Fax Group 3 and 4 decompression
Definition in file faxcompr.c.
#define CCITT_SYMS 104 |
Definition at line 34 of file faxcompr.c.
|
static |
Definition at line 103 of file faxcompr.c.
Referenced by ff_ccitt_unpack_init().
av_cold void ff_ccitt_unpack_init | ( | void | ) |
|
static |
Definition at line 125 of file faxcompr.c.
Referenced by decode_group3_1d_line(), and decode_group3_2d_line().
|
static |
Definition at line 203 of file faxcompr.c.
Referenced by ff_ccitt_unpack().
|
static |
Definition at line 249 of file faxcompr.c.
Referenced by ff_ccitt_unpack().
|
static |
Definition at line 363 of file faxcompr.c.
Referenced by ff_ccitt_unpack().
|
static |
Definition at line 381 of file faxcompr.c.
Referenced by ff_ccitt_unpack().
int ff_ccitt_unpack | ( | AVCodecContext * | avctx, |
const uint8_t * | src, | ||
int | srcsize, | ||
uint8_t * | dst, | ||
int | height, | ||
int | stride, | ||
enum TiffCompr | compr, | ||
int | opts | ||
) |
unpack data compressed with CCITT Group 3 1/2-D or Group 4 method
Definition at line 393 of file faxcompr.c.
Referenced by tiff_unpack_fax().
|
static |
Definition at line 36 of file faxcompr.c.
Referenced by ccitt_unpack_init().
|
static |
Definition at line 47 of file faxcompr.c.
Referenced by ccitt_unpack_init().
|
static |
Definition at line 71 of file faxcompr.c.
Referenced by ccitt_unpack_init().
|
static |
Definition at line 91 of file faxcompr.c.
Referenced by ccitt_unpack_init().
|
static |
Definition at line 95 of file faxcompr.c.
Referenced by ccitt_unpack_init().
|
static |
Definition at line 100 of file faxcompr.c.
Referenced by ccitt_unpack_init(), and decode_group3_2d_line().
|
static |
Definition at line 101 of file faxcompr.c.
Referenced by ccitt_unpack_init(), decode_group3_1d_line(), and decode_group3_2d_line().