28 #define ALIAS_HEADER_SIZE 10 36 #if FF_API_CODED_FRAME 46 if (width > 65535 || height > 65535 ||
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++) {
79 for (i = 0; i <
width; ) {
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 AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
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.
#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
const char * name
Name of the codec implementation.
int flags
A combination of AV_PKT_FLAG values.
enum AVPictureType pict_type
Picture type of the frame.
int width
picture width / height.
packed RGB 8:8:8, 24bpp, BGRBGR...
AVCodec ff_alias_pix_encoder
Libavcodec external API header.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
main external API structure.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
#define FF_DISABLE_DEPRECATION_WARNINGS
common internal api header.
attribute_deprecated AVFrame * coded_frame
the picture in the bitstream
#define FF_ENABLE_DEPRECATION_WARNINGS
int key_frame
1 -> keyframe, 0-> not
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
AVPixelFormat
Pixel format.
This structure stores compressed data.