44 dst += (height - 1) * f->
linesize[0];
45 for (i = height; i; i--) {
46 memcpy(dst, src, linelen);
56 dst += (height - 1) * f->
linesize[0];
57 for (i = height; i; i--) {
58 for (j = linelen; j; j--)
60 src += src_stride - linelen;
66 #define copy_frame_16(f, s, l, h) copy_frame_default(f, s, l, l, h)
67 #define copy_frame_32(f, s, l, h) copy_frame_default(f, s, l, l, h)
68 #define add_frame_16(f, s, l, h) add_frame_default(f, s, l, l, h)
69 #define add_frame_32(f, s, l, h) add_frame_default(f, s, l, l, h)
75 dst += (height - 1) * f->
linesize[0];
76 for (i = height; i; i--) {
77 for (j = linelen / 2; j; j--) {
91 dst += (height - 1) * f->
linesize[0];
92 for (i = height; i; i--) {
93 for (j = linelen / 4; j; j--) {
106 int linelen,
int height) {
109 dst += (height - 1) * f->
linesize[0];
110 for (i = height; i; i--) {
111 for (j = linelen / 2; j; j--) {
122 int linelen,
int height) {
125 dst += (height - 1) * f->
linesize[0];
126 for (i = height; i; i--) {
127 for (j = linelen / 4; j; j--) {
143 int buf_size = avpkt->
size;
163 switch ((buf[0] >> 1) & 7) {
173 if (uncompress(c->
decomp_buf, &dlen, &buf[2], buf_size - 2) != Z_OK)
231 "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 ...
This structure describes decoded (raw) audio or video data.
int buffer_hints
codec suggestion on buffer type if != 0
void(* release_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called to release buffers which were allocated with get_buffer.
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 AV_PIX_FMT_RGB555
#define add_frame_16(f, s, l, h)
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
static int init(AVCodecParserContext *s)
#define FF_BUFFER_HINTS_READABLE
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
int reference
is this picture used as reference The values for this are the same as the MpegEncContext.picture_structure variable, that is 1->top field, 2->bottom field, 3->frame/both fields.
#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, see ?_TYPE below.
static void copy_frame_default(AVFrame *f, const uint8_t *src, int src_stride, int linelen, int height)
int width
picture width / height.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame)
Get a buffer for a frame.
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...
int linesize[AV_NUM_DATA_POINTERS]
Size, in bytes, of the data for each picture/channel plane.
main external API structure.
static void close(AVCodecParserContext *s)
#define FF_BUFFER_HINTS_REUSABLE
#define FF_BUFFER_HINTS_PRESERVE
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
common internal api header.
common internal and external API header
#define AVERROR_INVALIDDATA
static av_cold int decode_init(AVCodecContext *avctx)
int key_frame
1 -> keyframe, 0-> not
#define FF_BUFFER_HINTS_VALID
This structure stores compressed data.