27#include "config_components.h"
40 const uint8_t *buf = avpkt->
data;
41 int buf_size = avpkt->
size;
74 for (
i = 2;
i < buf_size-2 && j < buf_size+1024-2;
i++)
75 recoded[j++] = buf[
i];
77 for (
i = 14;
i < buf_size && j < buf_size+1024-3;
i++)
79 recoded[j++] = buf[
i];
93 return ret < 0 ? ret : avpkt->
size;
96#if CONFIG_SP5X_DECODER
111#if CONFIG_AMV_DECODER
const FFCodec ff_sp5x_decoder
const FFCodec ff_amv_decoder
static av_cold void close(AVCodecParserContext *s)
Libavcodec external API header.
#define i(width, name, range_min, range_max)
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Memory handling functions.
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
int ff_mjpeg_decode_frame_from_buf(AVCodecContext *avctx, AVFrame *frame, int *got_frame, const AVPacket *avpkt, const uint8_t *buf, const int buf_size)
static const uint8_t sp5x_data_dqt[]
static const uint8_t sp5x_data_dht[]
static const uint8_t sp5x_data_sos[]
static const uint8_t sp5x_qscale_five_quant_table[][64]
static const uint8_t sp5x_data_sof[]
static int sp5x_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
main external API structure.
int width
picture width / height.
int coded_width
Bitstream width / height, may be different from width/height e.g.
This structure describes decoded (raw) audio or video data.
This structure stores compressed data.