FFmpeg
Classes | Macros | Typedefs | Variables
tscc2.c File Reference

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"

Classes

struct  TSCC2Context
 

Macros

#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
 

Typedefs

typedef struct TSCC2Context TSCC2Context
 

Variables

AVCodec ff_tscc2_decoder
 

Detailed Description

TechSmith Screen Codec 2 decoder.

Macro Definition Documentation

§ 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)); \

Variable Documentation

§ ff_tscc2_decoder

AVCodec ff_tscc2_decoder
Initial value:
= {
.name = "tscc2",
.long_name = NULL_IF_CONFIG_SMALL("TechSmith Screen Codec 2"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_TSCC2,
.priv_data_size = sizeof(TSCC2Context),
.init = tscc2_decode_init,
.close = tscc2_decode_end,
.decode = tscc2_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
}
Definition: tscc2.c:37
#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