TechSmith Screen Codec 2 decoder.
More...
#include <inttypes.h>
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "internal.h"
#include "mathops.h"
#include "tscc2data.h"
|
|
#define | BITSTREAM_READER_LE |
| |
|
#define | DEQUANT(val, q) (((q) * (val) + 0x80) >> 8) |
| |
| #define | DCT1D(d0, d1, d2, d3, s0, s1, s2, s3, OP) |
| |
|
#define | COL_OP(a, b) a = (b) |
| |
|
#define | ROW_OP(a, b) a = ((b) + 0x20) >> 6 |
| |
TechSmith Screen Codec 2 decoder.
§ DCT1D
| #define DCT1D |
( |
|
d0, |
|
|
|
d1, |
|
|
|
d2, |
|
|
|
d3, |
|
|
|
s0, |
|
|
|
s1, |
|
|
|
s2, |
|
|
|
s3, |
|
|
|
OP |
|
) |
| |
Value:OP(d0, 5 * ((s0) + (s1) + (s2)) + 2 * (s3)); \
OP(d1, 5 * ((s0) - (s2) - (s3)) + 2 * (s1)); \
OP(d2, 5 * ((s0) - (s2) + (s3)) - 2 * (s1)); \
OP(d3, 5 * ((s0) - (s1) + (s2)) - 2 * (s3)); \
§ ff_tscc2_decoder
Initial value:= {
.name = "tscc2",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_TSCC2,
.init = tscc2_decode_init,
.close = tscc2_decode_end,
.decode = tscc2_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