Go to the documentation of this file.
29 #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);
95 if (!count || x + count > avctx->
width) {
101 pixel = bytestream2_get_be24(&gb);
102 for (
i = 0;
i < count;
i++) {
107 pixel = bytestream2_get_byte(&gb);
108 for (
i = 0;
i < count;
i++)
125 .
p.
name =
"alias_pix",
const FFCodec ff_alias_pix_decoder
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...
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.
AVCodec p
The public AVCodec.
#define ALIAS_HEADER_SIZE
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
@ AV_PICTURE_TYPE_I
Intra.
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
static av_always_inline int bytestream2_get_bytes_left(GetByteContext *g)
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 i(width, name, range_min, range_max)
static int decode_frame(AVCodecContext *avctx, AVFrame *f, int *got_frame, AVPacket *avpkt)
const char * name
Name of the codec implementation.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
main external API structure.
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.