parent
d623907215
commit
076e7c574c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,21 @@ |
|||||||
|
/* GIMP header image file format (RGB): /home/ondra/downloads/linearl_face_based.h */ |
||||||
|
|
||||||
|
static unsigned int width = 1; |
||||||
|
static unsigned int height = 100; |
||||||
|
|
||||||
|
/* Call this macro repeatedly. After each use, the pixel data can be extracted */ |
||||||
|
|
||||||
|
#define HEADER_PIXEL(data,pixel) {\ |
||||||
|
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
|
||||||
|
pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
|
||||||
|
pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
|
||||||
|
data += 4; \
|
||||||
|
} |
||||||
|
static char *header_data = |
||||||
|
"\"A-&&AE4'!I7(!M9)!U=)AY?*!]A*R!D+2%E+B%F+B%Q+2%X*R%_*2&))R&-)2&1" |
||||||
|
"(2&8'B&<%R&B$B*E$2FH$C6N$CFQ$SRS$T*X%$2Z%$>]%4O!%4[#%5#&%5G$%5[\"" |
||||||
|
"%6+!%6J^%6V\\%72Y%7>X%7JV%7^S%8*Q%8:N%8RJ%8^G%9*D%9>?%9J<%9R9%:&2" |
||||||
|
"%:..%:6+%:R&%:^$%+5^$[=[$[IX$K]O$L%K$<1E&<E4+,M2.,U21]%23=-24M52" |
||||||
|
"6]E27]M28]U2:N!2;N)2>^)2DN-2G.-2K.12M.12N^52R>52S^92U>92WN>!X>B9" |
||||||
|
"Y>BJ[.K#[NK-\\NO7]^SF^^WM_NWU`^\\!`_('`_<2`_H7`_T=``$E``0J``<O``LW" |
||||||
|
"``X[```_````````"; |
After Width: | Height: | Size: 853 B |
@ -0,0 +1,16 @@ |
|||||||
|
/* GIMP header image file format (RGB): /home/ondra/downloads/linearl_face_based_16.h */ |
||||||
|
|
||||||
|
static unsigned int width = 1; |
||||||
|
static unsigned int height = 16; |
||||||
|
|
||||||
|
/* Call this macro repeatedly. After each use, the pixel data can be extracted */ |
||||||
|
|
||||||
|
#define HEADER_PIXEL(data,pixel) {\ |
||||||
|
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
|
||||||
|
pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
|
||||||
|
pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
|
||||||
|
data += 4; \
|
||||||
|
} |
||||||
|
static char *header_data = |
||||||
|
"!!!!+2%J)B&/%2ZJ%4F_%63!%7^T%9:A%:N(2-)2<^%2N.52X^F7_.[Q`_X?````" |
||||||
|
""; |
@ -0,0 +1,16 @@ |
|||||||
|
/* GIMP header image file format (RGB): /home/ondra/downloads/linearl_face_based_20.h */ |
||||||
|
|
||||||
|
static unsigned int width = 1; |
||||||
|
static unsigned int height = 20; |
||||||
|
|
||||||
|
/* Call this macro repeatedly. After each use, the pixel data can be extracted */ |
||||||
|
|
||||||
|
#define HEADER_PIXEL(data,pixel) {\ |
||||||
|
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
|
||||||
|
pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
|
||||||
|
pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
|
||||||
|
data += 4; \
|
||||||
|
} |
||||||
|
static char *header_data = |
||||||
|
"%AA1*R!D*B&'(B&7$S>O%4W#%5S$%7FW%9&F%:6-%;&#%,9A5=929=Y2J>12W.AQ" |
||||||
|
"ZNJ]`>_^``,H``TY"; |
@ -0,0 +1,15 @@ |
|||||||
|
/* GIMP header image file format (RGB): /home/ondra/downloads/linearl_face_based_8.h */ |
||||||
|
|
||||||
|
static unsigned int width = 1; |
||||||
|
static unsigned int height = 8; |
||||||
|
|
||||||
|
/* Call this macro repeatedly. After each use, the pixel data can be extracted */ |
||||||
|
|
||||||
|
#define HEADER_PIXEL(data,pixel) {\ |
||||||
|
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
|
||||||
|
pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
|
||||||
|
pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
|
||||||
|
data += 4; \
|
||||||
|
} |
||||||
|
static char *header_data = |
||||||
|
")1YA'BB=%5>`%8NK%;9Z7MI2SN=U`/<("; |
@ -0,0 +1,13 @@ |
|||||||
|
#include "linearl_face_based_16.h" |
||||||
|
#include <stdio.h> |
||||||
|
#include <stdlib.h> |
||||||
|
#include <math.h> |
||||||
|
|
||||||
|
void main() { |
||||||
|
int pixel[3]; |
||||||
|
char *data = header_data; |
||||||
|
for (int i = 0; i < height; i++) { |
||||||
|
HEADER_PIXEL(data, pixel); |
||||||
|
printf("[%.2f, %d, %d, %d],\n",log10(1+(i/(float)height)*100.0f),pixel[0],pixel[1],pixel[2]); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue