92 const int qscale = (215 - 2*
quant)*5;
100 void *
data,
int *got_frame,
104 int buf_size = avpkt->
size;
105 const uint8_t *buf_end = buf+buf_size;
av_cold void ff_dsputil_init(DSPContext *c, AVCodecContext *avctx)
struct TqiContext TqiContext
const uint8_t ff_zigzag_direct[64]
This structure describes decoded (raw) audio or video data.
static av_cold int tqi_decode_init(AVCodecContext *avctx)
void(* release_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called to release buffers which were allocated with get_buffer.
av_cold void ff_mpeg12_init_vlcs(void)
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size)
Allocate a buffer with padding, reusing the given one if large enough.
static int tqi_decode_mb(MpegEncContext *s, DCTELEM(*block)[64])
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
static av_cold int tqi_decode_end(AVCodecContext *avctx)
bitstream reader API header.
uint8_t idct_permutation[64]
idct input permutation.
static int init(AVCodecParserContext *s)
const uint16_t ff_mpeg1_default_intra_matrix[64]
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
int last_dc[3]
last DC values for MPEG1
void(* bswap_buf)(uint32_t *dst, const uint32_t *src, int w)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int ff_mpeg1_decode_block_intra(MpegEncContext *s, DCTELEM *block, int n)
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
struct AVRational AVRational
rational number numerator/denominator
int width
picture width / height.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame)
Get a buffer for a frame.
int linesize[AV_NUM_DATA_POINTERS]
Size, in bytes, of the data for each picture/channel plane.
const uint16_t ff_inv_aanscales[64]
main external API structure.
static void close(AVCodecParserContext *s)
ScanTable intra_scantable
static void tqi_idct_put(TqiContext *t, DCTELEM(*block)[64])
int height
picture size. must be a multiple of 16
static void tqi_calculate_qtable(MpegEncContext *s, int quant)
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
DSPContext dsp
pointers for accelerated dsp functions
void ff_init_scantable_permutation(uint8_t *idct_permutation, int idct_permutation_type)
#define DECLARE_ALIGNED(n, t, v)
AAN (Arai Agui Nakajima) (I)DCT tables.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
void(* clear_blocks)(DCTELEM *blocks)
struct AVCodecContext * avctx
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
common internal api header.
void ff_ea_idct_put_c(uint8_t *dest, int linesize, DCTELEM *block)
unsigned int bitstream_buf_size
void ff_init_scantable(uint8_t *permutation, ScanTable *st, const uint8_t *src_scantable)
static int tqi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
uint16_t intra_matrix[64]
matrix transmitted in the bitstream
This structure stores compressed data.