FFmpeg
Data Structures | Macros | Functions | Variables
a64multienc.c File Reference
#include "config_components.h"
#include "a64colors.h"
#include "a64tables.h"
#include "codec_internal.h"
#include "elbg.h"
#include "encode.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 38 of file a64multienc.c.

◆ CHARSET_CHARS

#define CHARSET_CHARS   256

Definition at line 39 of file a64multienc.c.

◆ INTERLACED

#define INTERLACED   1

Definition at line 40 of file a64multienc.c.

◆ CROP_SCREENS

#define CROP_SCREENS   1

Definition at line 41 of file a64multienc.c.

◆ C64XRES

#define C64XRES   320

Definition at line 43 of file a64multienc.c.

◆ C64YRES

#define C64YRES   200

Definition at line 44 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 72 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 103 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 198 of file a64multienc.c.

◆ a64multi_encode_init()

static av_cold int a64multi_encode_init ( AVCodecContext avctx)
static

Definition at line 211 of file a64multienc.c.

◆ a64_compress_colram()

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

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

Variable Documentation

◆ mc_colors

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

Definition at line 66 of file a64multienc.c.

Referenced by a64multi_encode_init().