a64multienc.c File Reference

a64 video encoder - multicolor modes More...

#include "a64colors.h"
#include "a64tables.h"
#include "elbg.h"
#include "internal.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
Include dependency graph for a64multienc.c:

Go to the source code of this file.

Data Structures

struct  A64Context
 

Macros

#define DITHERSTEPS   8
 
#define CHARSET_CHARS   256
 
#define INTERLACED   1
 
#define CROP_SCREENS   1
 
#define C64XRES   320
 
#define C64YRES   200
 

Typedefs

typedef struct A64Context A64Context
 

Functions

static void to_meta_with_crop (AVCodecContext *avctx, AVFrame *p, int *dest)
 
static void render_charset (AVCodecContext *avctx, uint8_t *charset, uint8_t *colrammap)
 
static av_cold int a64multi_close_encoder (AVCodecContext *avctx)
 
static av_cold int a64multi_init_encoder (AVCodecContext *avctx)
 
static void a64_compress_colram (unsigned char *buf, int *charmap, uint8_t *colram)
 
static int a64multi_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 

Variables

static const int mc_colors [5] ={0x0,0xb,0xc,0xf,0x1}
 

Detailed Description

a64 video encoder - multicolor modes

Definition in file a64multienc.c.

Macro Definition Documentation

#define C64XRES   320

Definition at line 39 of file a64multienc.c.

Referenced by a64multi_encode_frame(), and to_meta_with_crop().

#define C64YRES   200

Definition at line 40 of file a64multienc.c.

Referenced by a64multi_encode_frame(), and to_meta_with_crop().

#define CHARSET_CHARS   256

Definition at line 35 of file a64multienc.c.

Referenced by a64multi_encode_frame(), a64multi_init_encoder(), and render_charset().

#define CROP_SCREENS   1

Definition at line 37 of file a64multienc.c.

Referenced by a64multi_encode_frame().

#define DITHERSTEPS   8

Definition at line 34 of file a64multienc.c.

Referenced by render_charset().

#define INTERLACED   1

Definition at line 36 of file a64multienc.c.

Referenced by a64multi_encode_frame(), a64multi_init_encoder(), and render_charset().

Typedef Documentation

typedef struct A64Context A64Context

Function Documentation

static void a64_compress_colram ( unsigned char *  buf,
int *  charmap,
uint8_t colram 
)
static

Definition at line 255 of file a64multienc.c.

Referenced by a64multi_encode_frame().

static av_cold int a64multi_close_encoder ( AVCodecContext avctx)
static

Definition at line 189 of file a64multienc.c.

Referenced by a64multi_encode_frame().

static int a64multi_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int *  got_packet 
)
static

Definition at line 270 of file a64multienc.c.

static av_cold int a64multi_init_encoder ( AVCodecContext avctx)
static

Definition at line 200 of file a64multienc.c.

Referenced by a64multi_encode_frame().

static void render_charset ( AVCodecContext avctx,
uint8_t charset,
uint8_t colrammap 
)
static

Definition at line 97 of file a64multienc.c.

Referenced by a64multi_encode_frame().

static void to_meta_with_crop ( AVCodecContext avctx,
AVFrame p,
int *  dest 
)
static

Definition at line 71 of file a64multienc.c.

Referenced by a64multi_encode_frame().

Variable Documentation

const int mc_colors[5] ={0x0,0xb,0xc,0xf,0x1}
static

Definition at line 65 of file a64multienc.c.

Referenced by a64multi_init_encoder().