Go to the documentation of this file.
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)
82 if (x == avctx->
width) {
84 out_buf =
f->data[0] +
f->linesize[0] * y++;
87 "Ended frame decoding with %d bytes left.\n",
94 count = bytestream2_get_byteu(&gb);
101 pixel = bytestream2_get_be24(&gb);
107 pixel = bytestream2_get_byte(&gb);
static av_always_inline void bytestream2_skipu(GetByteContext *g, unsigned int size)
This structure describes decoded (raw) audio or video data.
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
static av_always_inline unsigned int bytestream2_get_bytes_left(GetByteContext *g)
#define ALIAS_HEADER_SIZE
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
@ AV_PICTURE_TYPE_I
Intra.
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
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() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define i(width, name, range_min, range_max)
const char * name
Name of the codec implementation.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
AVCodec ff_alias_pix_decoder
main external API structure.
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.
This structure stores compressed data.
int width
picture width / height.
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.