29 #ifndef AVCODEC_MJPEGDEC_H 30 #define AVCODEC_MJPEGDEC_H 44 #define MAX_COMPONENTS 4 159 void *
data,
int *got_frame,
165 const uint8_t *mb_bitmask,
int mb_bitmask_size,
169 const uint8_t **unescaped_buf_ptr,
int *unescaped_buf_size);
int block_stride[MAX_COMPONENTS]
int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask, int mb_bitmask_size, const AVFrame *reference)
const AVPixFmtDescriptor * pix_desc
!< stereoscopic information (cached, since it is read before frame allocation)
int v_count[MAX_COMPONENTS]
This structure describes decoded (raw) audio or video data.
enum AVPixelFormat hwaccel_sw_pix_fmt
size_t raw_image_buffer_size
int h_scount[MAX_COMPONENTS]
int qscale[4]
quantizer scale calculated from quant_matrixes
int dc_index[MAX_COMPONENTS]
int linesize[MAX_COMPONENTS]
linesize << interlaced
int ff_mjpeg_decode_init(AVCodecContext *avctx)
int comp_index[MAX_COMPONENTS]
const uint8_t * raw_image_buffer
Stereo 3D type: this structure describes how two videos are packed within a single video surface...
uint16_t(* ljpeg_buffer)[4]
unsigned int ljpeg_buffer_size
uint8_t * last_nnz[MAX_COMPONENTS]
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
int quant_sindex[MAX_COMPONENTS]
int h_count[MAX_COMPONENTS]
bitstream reader API header.
int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
int ff_mjpeg_decode_dqt(MJpegDecodeContext *s)
int ff_mjpeg_find_marker(MJpegDecodeContext *s, const uint8_t **buf_ptr, const uint8_t *buf_end, const uint8_t **unescaped_buf_ptr, int *unescaped_buf_size)
AVDictionary * exif_metadata
int nb_blocks[MAX_COMPONENTS]
int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
int near
near lossless bound (si 0 for lossless)
int component_id[MAX_COMPONENTS]
uint8_t raw_huffman_lengths[2][4][16]
int v_scount[MAX_COMPONENTS]
int ff_mjpeg_decode_dht(MJpegDecodeContext *s)
Libavcodec external API header.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
main external API structure.
Describe the class of an AVClass context structure.
int ac_index[MAX_COMPONENTS]
int reset
context halfing interval ?rename
uint64_t coefs_finished[MAX_COMPONENTS]
bitmask of which coefs have been completely decoded (progressive mode)
enum AVPixelFormat hwaccel_pix_fmt
uint8_t raw_huffman_values[2][4][256]
size_t raw_scan_buffer_size
const uint8_t * raw_scan_buffer
int got_picture
we found a SOF and picture is valid, too.
int16_t(*[MAX_COMPONENTS] blocks)[64]
intermediate sums (progressive mode)
void * hwaccel_picture_private
int last_dc[MAX_COMPONENTS]
int ff_mjpeg_decode_end(AVCodecContext *avctx)
AVPixelFormat
Pixel format.
This structure stores compressed data.
uint16_t quant_matrixes[4][64]