28 #define ALIAS_HEADER_SIZE 10
36 #if FF_API_CODED_FRAME
72 bytestream_put_be16(&buf,
width);
73 bytestream_put_be16(&buf,
height);
74 bytestream_put_be32(&buf, 0);
75 bytestream_put_be16(&buf, bits_pixel);
77 for (j = 0; j <
height; j++) {
85 while (count < 255 && count +
i <
width &&
pixel == *in_buf) {
89 bytestream_put_byte(&buf, count);
90 bytestream_put_byte(&buf,
pixel);
93 while (count < 255 && count +
i <
width &&
98 bytestream_put_byte(&buf, count);
99 bytestream_put_be24(&buf,
pixel);
#define ALIAS_HEADER_SIZE
AVCodec ff_alias_pix_encoder
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Libavcodec external API header.
int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size)
Check AVPacket size and/or allocate data.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
@ AV_PICTURE_TYPE_I
Intra.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FF_DISABLE_DEPRECATION_WARNINGS
#define FF_ENABLE_DEPRECATION_WARNINGS
AVPixelFormat
Pixel format.
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
main external API structure.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int width
picture width / height.
attribute_deprecated AVFrame * coded_frame
the picture in the bitstream
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 key_frame
1 -> keyframe, 0-> not
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
enum AVPictureType pict_type
Picture type of the frame.
This structure stores compressed data.
int flags
A combination of AV_PKT_FLAG values.