First upload of the code.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
153
op_asm.h
Normal file
153
op_asm.h
Normal file
@@ -0,0 +1,153 @@
|
||||
#ifndef _OP_ASM_H_
|
||||
#define _OP_ASM_H_
|
||||
|
||||
|
||||
|
||||
#include "op_c.h"
|
||||
|
||||
|
||||
|
||||
void OPASM_DitherFS_6123(
|
||||
Bitmap256 Destination, // Pointeur sur le 1er pixel de la ligne
|
||||
Bitmap24B Source, // Idem mais sur la source
|
||||
int Largeur, // Largeur … traiter, =(largeur_image-2), (>0)
|
||||
struct Composantes * Palette, // Palette de l'image destination
|
||||
byte * TableC, // Table de conversion 24b->8b
|
||||
byte ReducR, // 8-Nb_bits_rouges
|
||||
byte ReducV, // 8-Nb_bits_verts
|
||||
byte ReducB, // 8-Nb_bits_bleus
|
||||
byte NbbV, // Nb_bits_verts
|
||||
byte NbbB); // Nb_bits_bleus
|
||||
|
||||
void OPASM_DitherFS_623(
|
||||
Bitmap256 Destination, // Pointeur sur le 1er pixel de la ligne
|
||||
Bitmap24B Source, // Idem mais sur la source
|
||||
int Largeur, // Largeur … traiter, =(largeur_image-2), (>0)
|
||||
struct Composantes * Palette, // Palette de l'image destination
|
||||
byte * TableC, // Table de conversion 24b->8b
|
||||
byte ReducR, // 8-Nb_bits_rouges
|
||||
byte ReducV, // 8-Nb_bits_verts
|
||||
byte ReducB, // 8-Nb_bits_bleus
|
||||
byte NbbV, // Nb_bits_verts
|
||||
byte NbbB); // Nb_bits_bleus
|
||||
|
||||
void OPASM_DitherFS_12(
|
||||
Bitmap256 Destination, // Pointeur sur le 1er pixel de la ligne
|
||||
Bitmap24B Source, // Idem mais sur la source
|
||||
int Largeur, // Largeur … traiter, =(largeur_image-2), (>0)
|
||||
struct Composantes * Palette, // Palette de l'image destination
|
||||
byte * TableC, // Table de conversion 24b->8b
|
||||
byte ReducR, // 8-Nb_bits_rouges
|
||||
byte ReducV, // 8-Nb_bits_verts
|
||||
byte ReducB, // 8-Nb_bits_bleus
|
||||
byte NbbV, // Nb_bits_verts
|
||||
byte NbbB); // Nb_bits_bleus
|
||||
|
||||
void OPASM_DitherFS_6(
|
||||
Bitmap256 Destination, // Pointeur sur le 1er pixel de la ligne
|
||||
Bitmap24B Source, // Idem mais sur la source
|
||||
int Largeur, // Largeur … traiter, =(largeur_image-1), (>0)
|
||||
struct Composantes * Palette, // Palette de l'image destination
|
||||
byte * TableC, // Table de conversion 24b->8b
|
||||
byte ReducR, // 8-Nb_bits_rouges
|
||||
byte ReducV, // 8-Nb_bits_verts
|
||||
byte ReducB, // 8-Nb_bits_bleus
|
||||
byte NbbV, // Nb_bits_verts
|
||||
byte NbbB); // Nb_bits_bleus
|
||||
|
||||
void OPASM_DitherFS(
|
||||
Bitmap256 Destination, // Pointeur sur le pixel
|
||||
Bitmap24B Source, // Idem mais sur la source
|
||||
byte * TableC, // Table de conversion 24b->8b
|
||||
byte ReducR, // 8-Nb_bits_rouges
|
||||
byte ReducV, // 8-Nb_bits_verts
|
||||
byte ReducB, // 8-Nb_bits_bleus
|
||||
byte NbbV, // Nb_bits_verts
|
||||
byte NbbB); // Nb_bits_bleus
|
||||
|
||||
void OPASM_DitherFS_2(
|
||||
Bitmap256 Destination, // Pointeur sur le 1er pixel de la colonne
|
||||
Bitmap24B Source, // Idem mais sur la source
|
||||
int Hauteur, // Hauteur … traiter, =(hauteur_image-1), (>0)
|
||||
struct Composantes * Palette, // Palette de l'image destination
|
||||
byte * TableC, // Table de conversion 24b->8b
|
||||
byte ReducR, // 8-Nb_bits_rouges
|
||||
byte ReducV, // 8-Nb_bits_verts
|
||||
byte ReducB, // 8-Nb_bits_bleus
|
||||
byte NbbV, // Nb_bits_verts
|
||||
byte NbbB); // Nb_bits_bleus
|
||||
|
||||
void OPASM_Compter_occurences(
|
||||
int * Destination, // Pointeur sur la table d'occurences
|
||||
Bitmap24B Source, // Pointeur sur l'image
|
||||
int Taille, // Nombre de pixels dans l'image
|
||||
byte ReducR, // 8-Nb_bits_rouges
|
||||
byte ReducV, // 8-Nb_bits_verts
|
||||
byte ReducB, // 8-Nb_bits_bleus
|
||||
byte NbbV, // Nb_bits_verts
|
||||
byte NbbB); // Nb_bits_bleus
|
||||
|
||||
void OPASM_Analyser_cluster(
|
||||
int * TableO, // Table d'occurences
|
||||
int * rmin, // rmin << rdec
|
||||
int * vmin, // vmin << vdec
|
||||
int * bmin, // bmin << bdec
|
||||
int * rmax, // rmax << rdec
|
||||
int * vmax, // vmax << vdec
|
||||
int * bmax, // bmax << bdec
|
||||
int rdec, // rdec
|
||||
int vdec, // vdec
|
||||
int bdec, // bdec
|
||||
int rinc, // Incr‚mentation sur les rouges 1 << rdec
|
||||
int vinc, // Incr‚mentation sur les verts 1 << vdec
|
||||
int binc, // Incr‚mentation sur les bleus 1 << bdec
|
||||
int * Nbocc); // Nombre d'occurences
|
||||
|
||||
void OPASM_Split_cluster_Rouge(
|
||||
int * tableO, // Table d'occurences
|
||||
int rmin, // rmin << rdec
|
||||
int vmin, // vmin << vdec
|
||||
int bmin, // bmin << bdec
|
||||
int rmax, // rmax << rdec
|
||||
int vmax, // vmin << vdec
|
||||
int bmax, // bmin << bdec
|
||||
int rinc, // Incr‚mentation sur les rouges 1 << rdec
|
||||
int vinc, // Incr‚mentation sur les verts 1 << vdec
|
||||
int binc, // Incr‚mentation sur les bleus 1 << bdec
|
||||
int limite, // Nombre d'occurences minimales
|
||||
int rdec, // rdec
|
||||
int * rouge); // Valeur du rouge atteignant la limite
|
||||
|
||||
void OPASM_Split_cluster_Vert(
|
||||
int * tableO, // Table d'occurences
|
||||
int rmin, // rmin << rdec
|
||||
int vmin, // vmin << vdec
|
||||
int bmin, // bmin << bdec
|
||||
int rmax, // rmax << rdec
|
||||
int vmax, // vmin << vdec
|
||||
int bmax, // bmin << bdec
|
||||
int rinc, // Incr‚mentation sur les rouges 1 << rdec
|
||||
int vinc, // Incr‚mentation sur les verts 1 << vdec
|
||||
int binc, // Incr‚mentation sur les bleus 1 << bdec
|
||||
int limite, // Nombre d'occurences minimales
|
||||
int vdec, // vdec
|
||||
int * vert); // Valeur du vert atteignant la limite
|
||||
|
||||
void OPASM_Split_cluster_Bleu(
|
||||
int * tableO, // Table d'occurences
|
||||
int rmin, // rmin << rdec
|
||||
int vmin, // vmin << vdec
|
||||
int bmin, // bmin << bdec
|
||||
int rmax, // rmax << rdec
|
||||
int vmax, // vmin << vdec
|
||||
int bmax, // bmin << bdec
|
||||
int rinc, // Incr‚mentation sur les rouges 1 << rdec
|
||||
int vinc, // Incr‚mentation sur les verts 1 << vdec
|
||||
int binc, // Incr‚mentation sur les bleus 1 << bdec
|
||||
int limite, // Nombre d'occurences minimales
|
||||
int bdec, // bdec
|
||||
int * bleu); // Valeur du bleu atteignant la limite
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user