28 #define ALIAS_HEADER_SIZE 10 
   47     width  = bytestream2_get_be16u(&gb);
 
   48     height = bytestream2_get_be16u(&gb);
 
   50     bits_pixel = bytestream2_get_be16u(&gb);
 
   54     else if (bits_pixel == 8)
 
   79         if (x == avctx->
width) {
 
   84                        "Ended frame decoding with %d bytes left.\n",
 
   91         count = bytestream2_get_byteu(&gb);
 
   92         if (!count || x + count > avctx->
width) {
 
   98             pixel = bytestream2_get_be24(&gb);
 
   99             for (i = 0; i < 
count; i++) {
 
  104             pixel = bytestream2_get_byte(&gb);
 
  105             for (i = 0; i < 
count; i++)
 
  112     if (x != width || y != height) {
 
#define AVERROR_INVALIDDATA
Invalid data found when processing input. 
 
This structure describes decoded (raw) audio or video data. 
 
ptrdiff_t const GLvoid * data
 
int ff_set_dimensions(AVCodecContext *s, int width, int height)
Check that the provided frame dimensions are valid and set them on the codec context. 
 
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx. 
 
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
 
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_always_inline void bytestream2_skipu(GetByteContext *g, unsigned int size)
 
AVCodec ff_alias_pix_decoder
 
#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. ...
 
#define ALIAS_HEADER_SIZE
 
static av_always_inline unsigned int bytestream2_get_bytes_left(GetByteContext *g)
 
const char * name
Name of the codec implementation. 
 
enum AVPictureType pict_type
Picture type of the frame. 
 
int width
picture width / height. 
 
packed RGB 8:8:8, 24bpp, BGRBGR... 
 
Libavcodec external API header. 
 
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line. 
 
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. 
 
int key_frame
1 -> keyframe, 0-> not 
 
This structure stores compressed data. 
 
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.