34 if (avctx->
width & 0x3)
47 const uint8_t *buf =
pkt->data;
50 const int8_t *delta_table = (
const int8_t*)buf + 16;
69 for (y = 0; y < avctx->
height; y++) {
76 Y[1] =
Y[0] + delta_table[
val & 0xF];
80 for (x = 1; x < (avctx->
width >> 1); x++) {
82 U[0] =
U[-1] + delta_table[
val >> 4];
83 Y[0] =
Y[-1] + delta_table[
val & 0xF];
85 V[0] =
V[-1] + delta_table[
val >> 4];
86 Y[1] =
Y[ 0] + delta_table[
val & 0xF];
static double val(void *priv, double ch)
const FFCodec ff_aura2_decoder
static int aura_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
static av_cold int aura_decode_init(AVCodecContext *avctx)
Libavcodec external API header.
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
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.
common internal API header
@ 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.
This structure describes decoded (raw) audio or video data.
This structure stores compressed data.