26 #include "libavutil/common.h"
31 #include "libavutil/lzo.h"
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)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
void av_freep(void *ptr)
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
const char * name
Name of the codec implementation.
#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)
Libavcodec external API header.
#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.
void * av_malloc(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
int av_lzo1x_decode(void *out, int *outlen, const void *in, int *inlen)
Decodes LZO 1x compressed data.
#define AV_PIX_FMT_RGB555
main external API structure.
static void close(AVCodecParserContext *s)
packed RGB 8:8:8, 24bpp, BGRBGR...
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
common internal api header.
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.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.