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)
int(* init)(AVBSFContext *ctx)
av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
#define CODEC_LONG_NAME(str)
#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.
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
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]