39 if (avctx->
width & 0x3)
47 void *
data,
int *data_size,
55 const uint8_t *buf = pkt->
data;
58 const int8_t *delta_table = (
const int8_t*)buf + 16;
84 for (y = 0; y < avctx->
height; y++) {
91 Y[1] = Y[0] + delta_table[val & 0xF];
95 for (x = 1; x < (avctx->
width >> 1); x++) {
97 U[0] = U[-1] + delta_table[val >> 4];
98 Y[0] = Y[-1] + delta_table[val & 0xF];
100 V[0] = V[-1] + delta_table[val >> 4];
101 Y[1] = Y[ 0] + delta_table[val & 0xF];
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
int(* get_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called at the beginning of each frame to get a buffer for it.
enum PixelFormat pix_fmt
Pixel format, see PIX_FMT_xxx.
#define FF_BUFFER_HINTS_VALID
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.
static int aura_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *pkt)
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)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
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.
int width
picture width / height.
struct AVFrame AVFrame
Audio Video Frame.
int linesize[AV_NUM_DATA_POINTERS]
Size, in bytes, of the data for each picture/channel plane.
main external API structure.
static void close(AVCodecParserContext *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
struct AuraDecodeContext AuraDecodeContext
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.