Go to the documentation of this file.
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];
96 #if CONFIG_SP5X_DECODER
111 #if CONFIG_AMV_DECODER
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
static const uint8_t sp5x_data_sos[]
This structure describes decoded (raw) audio or video data.
const FFCodec ff_sp5x_decoder
AVCodec p
The public AVCodec.
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
const FFCodec ff_amv_decoder
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)
#define FF_CODEC_DECODE_CB(func)
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
static const uint8_t sp5x_data_sof[]
static const uint8_t sp5x_data_dqt[]
#define i(width, name, range_min, range_max)
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
const char * name
Name of the codec implementation.
static int sp5x_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
main external API structure.
int coded_width
Bitstream width / height, may be different from width/height e.g.
static const uint8_t sp5x_data_dht[]
This structure stores compressed data.
int width
picture width / height.
static const uint8_t sp5x_qscale_five_quant_table[][64]