FFmpeg  4.0
Data Structures | Macros | Functions | Variables
a64multienc.c File Reference

a64 video encoder - multicolor modes More...

#include "a64colors.h"
#include "a64tables.h"
#include "elbg.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 int 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 35 of file a64multienc.c.

Referenced by render_charset().

◆ CHARSET_CHARS

#define CHARSET_CHARS   256

Definition at line 36 of file a64multienc.c.

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

◆ INTERLACED

#define INTERLACED   1

Definition at line 37 of file a64multienc.c.

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

◆ CROP_SCREENS

#define CROP_SCREENS   1

Definition at line 38 of file a64multienc.c.

Referenced by a64multi_encode_frame().

◆ C64XRES

#define C64XRES   320

Definition at line 40 of file a64multienc.c.

Referenced by a64multi_encode_frame(), and to_meta_with_crop().

◆ C64YRES

#define C64YRES   200

Definition at line 41 of file a64multienc.c.

Referenced by a64multi_encode_frame(), and to_meta_with_crop().

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 192 of file a64multienc.c.

Referenced by a64multi_encode_frame().

◆ a64multi_encode_init()

static av_cold int a64multi_encode_init ( AVCodecContext avctx)
static

Definition at line 203 of file a64multienc.c.

Referenced by a64multi_encode_frame().

◆ a64_compress_colram()

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

Definition at line 254 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 269 of file a64multienc.c.

Variable Documentation

◆ mc_colors

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

Definition at line 63 of file a64multienc.c.

Referenced by a64multi_encode_init().