33 if (avctx->
width & 0x3)
41 void *
data,
int *got_frame,
51 const int8_t *delta_table = (
const int8_t*)buf + 16;
70 for (y = 0; y < avctx->
height; y++) {
77 Y[1] = Y[0] + delta_table[val & 0xF];
81 for (x = 1; x < (avctx->
width >> 1); x++) {
83 U[0] = U[-1] + delta_table[val >> 4];
84 Y[0] = Y[-1] + delta_table[val & 0xF];
86 V[0] = V[-1] + delta_table[val >> 4];
87 Y[1] = Y[ 0] + delta_table[val & 0xF];
const char const char void * val
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
ptrdiff_t const GLvoid * data
static av_cold int aura_decode_init(AVCodecContext *avctx)
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
#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. ...
const char * name
Name of the codec implementation.
Libavcodec external API header.
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
common internal API header
int width
picture width / height.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
static int aura_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
main external API structure.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
common internal api header.
This structure stores compressed data.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.