FFmpeg
Data Structures | Macros | Functions | Variables
a64multienc.c File Reference
#include "a64colors.h"
#include "a64tables.h"
#include "elbg.h"
#include "encode.h"
#include "internal.h"
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"

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
 

Functions

static void to_meta_with_crop (AVCodecContext *avctx, const 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_encode_init (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 *p, int *got_packet)
 

Variables

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

Detailed Description

a64 video encoder - multicolor modes

Definition in file a64multienc.c.

Macro Definition Documentation

◆ DITHERSTEPS

#define DITHERSTEPS   8

Definition at line 36 of file a64multienc.c.

◆ CHARSET_CHARS

#define CHARSET_CHARS   256

Definition at line 37 of file a64multienc.c.

◆ INTERLACED

#define INTERLACED   1

Definition at line 38 of file a64multienc.c.

◆ CROP_SCREENS

#define CROP_SCREENS   1

Definition at line 39 of file a64multienc.c.

◆ C64XRES

#define C64XRES   320

Definition at line 41 of file a64multienc.c.

◆ C64YRES

#define C64YRES   200

Definition at line 42 of file a64multienc.c.

Function Documentation

◆ to_meta_with_crop()

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

Definition at line 69 of file a64multienc.c.

Referenced by a64multi_encode_frame().

◆ render_charset()

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

Definition at line 100 of file a64multienc.c.

Referenced by a64multi_encode_frame().

◆ a64multi_close_encoder()

static av_cold int a64multi_close_encoder ( AVCodecContext avctx)
static

Definition at line 195 of file a64multienc.c.

◆ a64multi_encode_init()

static av_cold int a64multi_encode_init ( AVCodecContext avctx)
static

Definition at line 205 of file a64multienc.c.

◆ a64_compress_colram()

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().

◆ a64multi_encode_frame()

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

Definition at line 270 of file a64multienc.c.

Variable Documentation

◆ mc_colors

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

Definition at line 63 of file a64multienc.c.

Referenced by a64multi_encode_init().