78 for (n = 0; n < 6; n++) {
97 ptrdiff_t linesize = frame->
linesize[0];
115 const int64_t qscale = (215 - 2*
quant)*5;
124 void *
data,
int *got_frame,
128 int buf_size = avpkt->
size;
129 const uint8_t *buf_end = buf+buf_size;
153 (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)
av_cold void ff_blockdsp_init(BlockDSPContext *c, AVCodecContext *avctx)
void(* clear_blocks)(int16_t *blocks)
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
static void tqi_idct_put(AVCodecContext *avctx, AVFrame *frame, int16_t(*block)[64])
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...
static int tqi_decode_mb(TqiContext *t, int16_t(*block)[64])
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16
static void tqi_calculate_qtable(TqiContext *t, int quant)
static av_cold int end(AVCodecContext *avctx)
static av_cold int tqi_decode_end(AVCodecContext *avctx)
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
bitstream reader API header.
void ff_ea_idct_put_c(uint8_t *dest, ptrdiff_t linesize, int16_t *block)
#define AV_CODEC_FLAG_GRAY
Only decode/encode grayscale.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#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.
av_cold void ff_init_scantable_permutation(uint8_t *idct_permutation, enum idct_permutation_type perm_type)
ScanTable intra_scantable
uint8_t idct_permutation[64]
IDCT input permutation.
Libavcodec external API header.
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.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
Rational number (pair of numerator and 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]
AAN (Arai, Agui and Nakajima) (I)DCT tables.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int ff_mpeg1_decode_block_intra(GetBitContext *gb, const uint16_t *quant_matrix, uint8_t *const scantable, int last_dc[3], int16_t *block, int index, int qscale)
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
common internal api header.
uint16_t intra_matrix[64]
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)
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
This structure stores compressed data.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.