64 for (
int i = 0;
i <
s->dict_entries;
i++) {
67 if (
s->dict[
i].l >= 0 &&
68 (
s->dict[
i].l >=
s->dict_entries ||
69 s->dict[
i].r >=
s->dict_entries ||
102 s->dict_entry =
s->dict[
s->dict_entry].r;
104 s->dict_entry =
s->dict[
s->dict_entry].l;
106 if (
s->dict[
s->dict_entry].l < 0) {
109 datum =
s->dict[
s->dict_entry].r;
111 if (!
s->delta_compression)
113 s->sample = (
s->sample + datum) & 0xFF;
Libavcodec external API header.
static av_cold int init(AVCodecContext *avctx)
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
bitstream reader API header.
static int get_bits_left(GetBitContext *gb)
static unsigned int get_bits1(GetBitContext *s)
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * av_calloc(size_t nmemb, size_t size)
Non-inlined equivalent of av_mallocz_array().
static av_cold int hcom_init(AVCodecContext *avctx)
static av_cold int hcom_close(AVCodecContext *avctx)
static int hcom_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
main external API structure.
enum AVSampleFormat sample_fmt
audio sample format
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
int channels
number of audio channels
const char * name
Name of the codec implementation.
This structure describes decoded (raw) audio or video data.
int nb_samples
number of audio samples (per channel) described by this frame
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
This structure stores compressed data.