#include "camera_info.h"
#include "conf.h"
#include "raw.h"
#include "math.h"
#include "lualib.h"
#include "lauxlib.h"
gehe zum Quellcode dieser Datei
#define RAWOP_HISTO_META "rawop.histo_meta" |
static void init_raw_params |
( |
void |
) | |
|
|
static |
static int rawop_create_histogram |
( |
lua_State * |
L) | |
|
|
static |
Definiert in Zeile 355 der Datei rawhookops.c.
357 return luaL_error(L,
"raw data not available");
366 unsigned int xmax = xstart +
width;
367 unsigned int ymax = ystart +
height;
378 for(y=ystart; y<ymax; y+=ystep) {
379 for(x=xstart; x<xmax; x+=xstep) {
static int rawop_get_active_height |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_active_left |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_active_top |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_active_width |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_bits_per_pixel |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_black_level |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_cfa_offsets |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_jpeg_height |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_jpeg_left |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_jpeg_top |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_jpeg_width |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_pixels_rgbg |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_raw_height |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_raw_neutral |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_raw_width |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_get_white_level |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_histo_range |
( |
lua_State * |
L) | |
|
|
static |
Definiert in Zeile 600 der Datei rawhookops.c.
610 if(!s ||
strcmp(s,
"count") != 0) {
620 if(maxval >= h->
entries || minval > maxval) {
632 for(i=minval;i<=maxval;i++) {
static int rawop_histo_total_pixels |
( |
lua_State * |
L) | |
|
|
static |
static int rawop_histo_update |
( |
lua_State * |
L) | |
|
|
static |
Definiert in Zeile 528 der Datei rawhookops.c.
530 return luaL_error(L,
"raw data not available");
545 unsigned entries = 1 <<
bits;
550 || xstep == 0 || ystep == 0
551 || width == 0 || height == 0) {
555 unsigned xmax=xstart+
width;
556 unsigned ymax=ystart+
height;
564 h->
total_pixels=((1+(xmax - xstart - 1)/xstep))*((1+(ymax - ystart - 1)/ystep));
581 for(y=ystart;y<ymax;y+=ystep) {
582 for(x=xstart;x<xmax;x+=xstep) {
587 for(y=ystart;y<ymax;y+=ystep) {
588 for(x=xstart;x<xmax;x+=xstep) {
Definiert in Zeile 404 der Datei rawhookops.c.
406 return luaL_error(L,
"raw data not available");
416 if(!x_count || !y_count) {
420 unsigned x_max = x1 + x_step * x_count;
421 unsigned y_max = y1 + y_step * y_count;
436 for(y = y1; y < y_max; y +=
y_step) {
437 for(x = x1; x < x_max; x +=
x_step) {
static int rawop_set_pixels_rgbg |
( |
lua_State * |
L) | |
|
|
static |
void rawop_update_hook_status |
( |
int |
active) | |
|
static int round_d2i |
( |
double |
v) | |
|
|
static |
Definiert in Zeile 34 der Datei rawhookops.c.
36 return (
int)(v - 0.5);
38 return (
int)(v + 0.5);
const char* cfa_names[] ={"r","g1","g2","b"} |
|
static |
unsigned cfa_offsets[4][2] |
|
static |
double log2_raw_neutral_count |
|
static |