libavcodec/smc.c File Reference
QT SMC Video Decoder by Mike Melanson (
melanson@pcisys.net) 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"
Go to the source code of this file.
Detailed Description
QT SMC Video Decoder by Mike Melanson (
melanson@pcisys.net) For more information about the SMC format, visit:
http://www.pcisys.net/~melanson/codecs/.
The SMC decoder outputs PAL8 colorspace data.
Definition in file smc.c.
Define Documentation
#define ADVANCE_BLOCK |
( |
|
) |
|
Value:
{ \
pixel_ptr += 4; \
if (pixel_ptr >= width) \
{ \
pixel_ptr = 0; \
row_ptr += stride * 4; \
} \
total_blocks--; \
if (total_blocks < 0) \
{ \
av_log(s->avctx, AV_LOG_INFO, "warning: block counter just went negative (this should not happen)\n"); \
return; \
} \
}
Definition at line 62 of file smc.c.
#define COLORS_PER_TABLE 256 |
#define GET_BLOCK_COUNT |
( |
|
) |
(opcode & 0x10) ? (1 + s->buf[stream_ptr++]) : 1 + (opcode & 0x0F); |
Function Documentation
static int smc_decode_frame |
( |
AVCodecContext * |
avctx, |
|
|
void * |
data, |
|
|
int * |
data_size, |
|
|
AVPacket * |
avpkt | |
|
) |
| | [static] |
static av_cold int smc_decode_init |
( |
AVCodecContext * |
avctx |
) |
[static] |
static void smc_decode_stream |
( |
SmcContext * |
s |
) |
[static] |
Variable Documentation
Initial value:
{
"smc",
AVMEDIA_TYPE_VIDEO,
CODEC_ID_SMC,
sizeof(SmcContext),
smc_decode_init,
NULL,
smc_decode_end,
smc_decode_frame,
CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("QuickTime Graphics (SMC)"),
}
Definition at line 474 of file smc.c.