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];
static double val(void *priv, double ch)
static int aura_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
static av_cold int aura_decode_init(AVCodecContext *avctx)
Libavcodec external API header.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
main external API structure.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int width
picture width / height.
const char * name
Name of the codec implementation.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
This structure stores compressed data.