QT SMC Video Decoder by Mike Melanson (melan.nosp@m.son@.nosp@m.pcisy.nosp@m.s.ne.nosp@m.t) For more information about the SMC format, visit: http://www.pcisys.net/~melanson/codecs/.
More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
|
|
#define | CPAIR 2 |
| |
|
#define | CQUAD 4 |
| |
|
#define | COCTET 8 |
| |
|
#define | COLORS_PER_TABLE 256 |
| |
|
#define | GET_BLOCK_COUNT() (opcode & 0x10) ? (1 + bytestream2_get_byte(&s->gb)) : 1 + (opcode & 0x0F); |
| |
| #define | ADVANCE_BLOCK() |
| |
QT SMC Video Decoder by Mike Melanson (melan.nosp@m.son@.nosp@m.pcisy.nosp@m.s.ne.nosp@m.t) For more information about the SMC format, visit: http://www.pcisys.net/~melanson/codecs/.
The SMC decoder outputs PAL8 colorspace data.
§ ADVANCE_BLOCK
| #define ADVANCE_BLOCK |
( |
| ) |
|
Value:{ \
pixel_ptr += 4; \
if (pixel_ptr >= width) \
{ \
pixel_ptr = 0; \
row_ptr += stride * 4; \
} \
total_blocks--; \
if (total_blocks < !!n_blocks) \
{ \
av_log(s->avctx,
AV_LOG_INFO,
"warning: block counter just went negative (this should not happen)\n"); \
return; \
} \
}
#define AV_LOG_INFO
Standard information.
Definition: log.h:187
§ ff_smc_decoder
Initial value:= {
.name = "smc",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_SMC,
.init = smc_decode_init,
.close = smc_decode_end,
.decode = smc_decode_frame,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959