41 if (avctx->
width & 0x3)
49 void *
data,
int *got_frame,
59 const int8_t *delta_table = (
const int8_t*)buf + 16;
85 for (y = 0; y < avctx->
height; y++) {
92 Y[1] = Y[0] + delta_table[val & 0xF];
96 for (x = 1; x < (avctx->
width >> 1); x++) {
98 U[0] = U[-1] + delta_table[val >> 4];
99 Y[0] = Y[-1] + delta_table[val & 0xF];
101 V[0] = V[-1] + delta_table[val >> 4];
102 Y[1] = Y[ 0] + delta_table[val & 0xF];
This structure describes decoded (raw) audio or video data.
static av_cold int aura_decode_init(AVCodecContext *avctx)
int buffer_hints
codec suggestion on buffer type if != 0
void(* release_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called to release buffers which were allocated with get_buffer.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
static av_cold int aura_decode_end(AVCodecContext *avctx)
static int init(AVCodecParserContext *s)
int reference
is this picture used as reference The values for this are the same as the MpegEncContext.picture_structure variable, that is 1->top field, 2->bottom field, 3->frame/both fields.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
common internal API header
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.
static int aura_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
main external API structure.
static void close(AVCodecParserContext *s)
struct AuraDecodeContext AuraDecodeContext
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
common internal api header.
#define FF_BUFFER_HINTS_VALID
This structure stores compressed data.