96 const int qscale = (215 - 2*
quant)*5;
104 void *
data,
int *got_frame,
108 int buf_size = avpkt->
size;
109 const uint8_t *buf_end = buf+buf_size;
132 (buf_end - buf) / 4);
void(* bswap_buf)(uint32_t *dst, const uint32_t *src, int w)
This structure describes decoded (raw) audio or video data.
ptrdiff_t const GLvoid * data
static av_cold int tqi_decode_init(AVCodecContext *avctx)
av_cold void ff_mpeg12_init_vlcs(void)
int ff_set_dimensions(AVCodecContext *s, int width, int height)
Check that the provided frame dimensions are valid and set them on the codec context.
static av_cold int init(AVCodecContext *avctx)
void(* clear_blocks)(int16_t *blocks)
#define DECLARE_ALIGNED(n, t, v)
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)
Same behaviour av_fast_malloc but the buffer has additional AV_INPUT_BUFFER_PADDING_SIZE at the end w...
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16
static av_cold int end(AVCodecContext *avctx)
static av_cold int tqi_decode_end(AVCodecContext *avctx)
bitstream reader API header.
static int tqi_decode_mb(MpegEncContext *s, int16_t(*block)[64])
#define AV_CODEC_FLAG_GRAY
Only decode/encode grayscale.
int last_dc[3]
last DC values for MPEG1
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int flags
AV_CODEC_FLAG_*.
const char * name
Name of the codec implementation.
Libavcodec external API header.
av_cold void ff_init_scantable_permutation(uint8_t *idct_permutation, enum idct_permutation_type perm_type)
int width
picture width / height.
uint8_t idct_permutation[64]
IDCT input permutation.
av_cold void ff_blockdsp_init(BlockDSPContext *c, AVCodecContext *avctx)
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
const uint16_t ff_inv_aanscales[64]
main external API structure.
ScanTable intra_scantable
int height
picture size. must be a multiple of 16
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
static void tqi_calculate_qtable(MpegEncContext *s, int quant)
rational number numerator/denominator
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
const uint16_t ff_mpeg1_default_intra_matrix[256]
const uint8_t ff_zigzag_direct[64]
static void tqi_idct_put(TqiContext *t, AVFrame *frame, int16_t(*block)[64])
int ff_mpeg1_decode_block_intra(MpegEncContext *s, int16_t *block, int n)
AAN (Arai, Agui and Nakajima) (I)DCT tables.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
struct AVCodecContext * avctx
void ff_ea_idct_put_c(uint8_t *dest, int linesize, int16_t *block)
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
common internal api header.
unsigned int bitstream_buf_size
av_cold void ff_bswapdsp_init(BswapDSPContext *c)
av_cold void ff_init_scantable(uint8_t *permutation, ScanTable *st, const uint8_t *src_scantable)
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx)
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.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.