43 dst += (height - 1) * f->
linesize[0];
44 for (i = height; i; i--) {
45 memcpy(dst, src, linelen);
55 dst += (height - 1) * f->
linesize[0];
56 for (i = height; i; i--) {
57 for (j = linelen; j; j--)
59 src += src_stride - linelen;
65 #define copy_frame_16(f, s, l, h) copy_frame_default(f, s, l, l, h) 66 #define copy_frame_32(f, s, l, h) copy_frame_default(f, s, l, l, h) 67 #define add_frame_16(f, s, l, h) add_frame_default(f, s, l, l, h) 68 #define add_frame_32(f, s, l, h) add_frame_default(f, s, l, l, h) 74 dst += (height - 1) * f->
linesize[0];
75 for (i = height; i; i--) {
76 for (j = linelen / 2; j; j--) {
90 dst += (height - 1) * f->
linesize[0];
91 for (i = height; i; i--) {
92 for (j = linelen / 4; j; j--) {
105 int linelen,
int height) {
108 dst += (height - 1) * f->
linesize[0];
109 for (i = height; i; i--) {
110 for (j = linelen / 2; j; j--) {
121 int linelen,
int height) {
124 dst += (height - 1) * f->
linesize[0];
125 for (i = height; i; i--) {
126 for (j = linelen / 4; j; j--) {
142 int buf_size = avpkt->
size;
158 switch ((buf[0] >> 1) & 7) {
168 if (uncompress(c->
decomp_buf, &dlen, &buf[2], buf_size - 2) != Z_OK)
225 "CamStudio codec error: invalid depth %i bpp\n",
#define copy_frame_32(f, s, l, h)
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
static void add_frame_default(AVFrame *f, const uint8_t *src, int src_stride, int linelen, int height)
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
static av_cold int decode_end(AVCodecContext *avctx)
#define AV_LZO_OUTPUT_PADDING
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define add_frame_16(f, s, l, h)
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
#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)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
unsigned char * decomp_buf
#define copy_frame_16(f, s, l, h)
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
#define add_frame_32(f, s, l, h)
enum AVPictureType pict_type
Picture type of the frame.
static void copy_frame_default(AVFrame *f, const uint8_t *src, int src_stride, int linelen, int height)
int width
picture width / height.
int av_lzo1x_decode(void *out, int *outlen, const void *in, int *inlen)
Decodes LZO 1x compressed data.
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.
static void close(AVCodecParserContext *s)
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.
common internal and external API header
#define AV_PIX_FMT_RGB555
static av_cold int init(AVCodecParserContext *s)
static av_cold int decode_init(AVCodecContext *avctx)
int key_frame
1 -> keyframe, 0-> not
This structure stores compressed data.