![]() |
CHDK_DE Vorschauversion
Trunk Rev. 6014
|
#include "camera_info.h"#include "modes.h"#include "debug_led.h"#include "clock.h"#include "properties.h"#include "shooting.h"#include "conf.h"#include "console.h"#include "raw.h"#include "action_stack.h"#include "gui.h"#include "gui_mbox.h"#include "gui_lang.h"#include "gps.h"#include "math.h"#include "cache.h"#include "task.h"#include "cachebit.h"#include "remotecap.h"#include "time.h"#include "dng.h"#include "module_def.h"
Include-Abhängigkeitsdiagramm für dng.c:gehe zum Quellcode dieser Datei
Datenstrukturen | |
| struct | dir_entry |
| struct | t_data_for_exif |
| struct | ifd_entry |
Makrodefinitionen | |
| #define | DNG_TH_WIDTH 128 |
| #define | DNG_TH_HEIGHT 96 |
| #define | DNG_TH_BYTES (DNG_TH_WIDTH*DNG_TH_HEIGHT*3) |
| #define | T_EOL 0 |
| #define | T_BYTE 1 |
| #define | T_ASCII 2 |
| #define | T_SHORT 3 |
| #define | T_LONG 4 |
| #define | T_RATIONAL 5 |
| #define | T_SBYTE 6 |
| #define | T_UNDEFINED 7 |
| #define | T_SSHORT 8 |
| #define | T_SLONG 9 |
| #define | T_SRATIONAL 10 |
| #define | T_FLOAT 11 |
| #define | T_DOUBLE 12 |
| #define | T_PTR 0x100 |
| #define | T_SKIP 0x200 |
| #define | BE(v) ((v&0x000000FF)<<24)|((v&0x0000FF00)<<8)|((v&0x00FF0000)>>8)|((v&0xFF000000)>>24) |
| #define | BADPIX_CFA_INDEX 6 |
| #define | CAMERA_NAME_TAG 0x110 |
| #define | THUMB_DATA_TAG 0x111 |
| #define | ORIENTATION_TAG 0x112 |
| #define | CHDK_VER_TAG 0x131 |
| #define | ARTIST_NAME_TAG 0x13B |
| #define | SUBIFDS_TAG 0x14A |
| #define | COPYRIGHT_TAG 0x8298 |
| #define | EXIF_IFD_TAG 0x8769 |
| #define | GPS_IFD_TAG 0x8825 |
| #define | DNG_VERSION_TAG 0xC612 |
| #define | UNIQUE_CAMERA_MODEL_TAG 0xC614 |
| #define | COLOR_MATRIX2_TAG 0xc622 |
| #define | CALIBRATION1_TAG 0xc623 |
| #define | CALIBRATION2_TAG 0xc624 |
| #define | ILLUMINANT2_TAG 0xc65b |
| #define | FORWARD_MATRIX1_TAG 0xc714 |
| #define | FORWARD_MATRIX2_TAG 0xc715 |
| #define | CAM_MAKE "Canon" |
| #define | RAW_DATA_TAG 0x111 |
| #define | BADPIXEL_OPCODE_TAG 0xC740 |
| #define | EXPOSURE_PROGRAM_TAG 0x8822 |
| #define | METERING_MODE_TAG 0x9207 |
| #define | FLASH_MODE_TAG 0x9209 |
| #define | SSTIME_TAG 0x9290 |
| #define | SSTIME_ORIG_TAG 0x9291 |
| #define | IFD_0 1 |
| #define | IFD_1 2 |
| #define | IFD_EXIF 3 |
| #define | IFD_GPS 4 |
| #define | IFD_SKIP 0x200 |
| #define | IFD_TYPE_MASK 0xF |
| #define | TIFF_HDR_SIZE (8) |
| #define | BUF_SIZE (32768) |
| #define | INIT_BADPIXEL_COUNT -1 |
| #define | INIT_BADPIXEL_FILE -2 |
| #define | PATH_BADPIXEL_BIN "A/CHDK/badpixel.bin" |
| #define | PATH_BAD_TMP_BIN "A/CHDK/bad_tmp.bin" |
| #define | RB_STAGE_DONE 0 |
| #define | RB_STAGE_INIT 1 |
| #define | RB_STAGE_REVERSING 2 |
| #define | RB_STAGE_DEREVERSING 3 |
| #define | DNG_REV_CHUNK_SIZE (512*1024) |
| #define | DNG_END_CHUNK_SIZE (512*1024) |
| #define | DNG_END_NUM_CHUNKS (3) |
Variablen | |
| static int | running = 0 |
| const int | cam_BaselineNoise [] = {1,1} |
| const int | cam_BaselineSharpness [] = {4,3} |
| const int | cam_LinearResponseLimit [] = {1,1} |
| const int | cam_AnalogBalance [] = {1,1,1,1,1,1} |
| static char | cam_name [32] = "" |
| static char | artist_name [64] = "" |
| static char | copyright [64] = "" |
| const short | cam_PreviewBitsPerSample [] = {8,8,8} |
| const int | cam_Resolution [] = {180,1} |
| static int | cam_AsShotNeutral [] = {1000,1000,1000,1000,1000,1000} |
| static char | cam_datetime [20] = "" |
| static char | cam_subsectime [4] = "" |
| static int | cam_shutter [2] = { 0, 1000000 } |
| static int | cam_aperture [2] = { 0, 10 } |
| static int | cam_apex_shutter [2] = { 0, 96 } |
| static int | cam_apex_aperture [2] = { 0, 96 } |
| static int | cam_exp_bias [2] = { 0, 96 } |
| static int | cam_max_av [2] = { 0, 96 } |
| static int | cam_focal_length [2] = { 0, 1000 } |
| static int | cam_subject_distance [2] = { 0, 1000 } |
| static struct t_data_for_exif | exif_data |
| static unsigned int | badpixel_opcode [] |
| dir_entry | ifd0 [] |
| static int | crop_origin [2] |
| static int | crop_size [2] |
| static int | active_area [4] |
| dir_entry | ifd1 [] |
| dir_entry | exif_ifd [] |
| tGPS | gps_data |
| dir_entry | gpd_ifd [] |
| ifd_entry | ifd_list [] |
| char * | dng_header_buf = 0 |
| int | dng_header_buf_size |
| int | dng_header_buf_offset |
| char * | thumbnail_buf = 0 |
| static int | raw_offset |
| static int | extra_offset |
| static const unsigned char | gamma [256] |
| int | init_badpixel_bin_flag |
| short * | binary_list =NULL |
| int | binary_count =-1 |
| static int | badpix_cnt1 |
| struct { | |
| char * src | |
| char * dst | |
| char * end | |
| char * reversed | |
| char * written | |
| int stage | |
| } | rb_state |
| libdng_sym | _libdng |
| ModuleInfo | _module_info |
| #define BE | ( | v) | ((v&0x000000FF)<<24)|((v&0x0000FF00)<<8)|((v&0x00FF0000)>>8)|((v&0xFF000000)>>24) |
| #define BUF_SIZE (32768) |
| #define DNG_TH_BYTES (DNG_TH_WIDTH*DNG_TH_HEIGHT*3) |
| #define PATH_BAD_TMP_BIN "A/CHDK/bad_tmp.bin" |
| #define PATH_BADPIXEL_BIN "A/CHDK/badpixel.bin" |
| int _module_can_unload | ( | ) |
| int _module_unloader | ( | ) |
|
static |
|
static |
|
static |
|
static |
| void add_val_to_buf | ( | int | val, |
| int | size | ||
| ) |
| int badpixel_list_loaded_b | ( | void | ) |
|
static |
|
static |
| void capture_data_for_exif | ( | void | ) |
Definiert in Zeile 721 der Datei dng.c.
| void create_badpixel_bin | ( | ) |
| void create_dng_header | ( | int | ver1_1, |
| int | minimal | ||
| ) |
Definiert in Zeile 482 der Datei dng.c.
| void create_dng_header_for_ptp | ( | ptp_data_chunk * | pdc) |
Definiert in Zeile 1348 der Datei dng.c.
| void free_dng_header_for_ptp | ( | ) |
| unsigned short get_exp_program_for_exif | ( | int | exp_program) |
| unsigned short get_flash_mode_for_exif | ( | short | mode, |
| short | fired | ||
| ) |
|
static |
| unsigned short get_metering_mode_for_exif | ( | short | metering_mode) |
| unsigned short get_orientation_for_exif | ( | short | orientation) |
|
static |
|
static |
|
static |
|
static |
| int pow_calc | ( | int | mult, |
| int | x, | ||
| int | x_div, | ||
| int | y, | ||
| int | y_div | ||
| ) |
| int pow_calc_2 | ( | int | mult, |
| int | x, | ||
| int | x_div, | ||
| double | y, | ||
| int | y_div | ||
| ) |
|
static |
| void reverse_bytes_order2 | ( | char * | from, |
| char * | to, | ||
| int | count | ||
| ) |
| void reverse_bytes_task | ( | ) |
| void unload_bad_pixels_list_b | ( | void | ) |
| int write_dng | ( | char * | rawadr, |
| char * | altrawadr | ||
| ) |
Definiert in Zeile 1268 der Datei dng.c.
| libdng_sym _libdng |
| ModuleInfo _module_info |
|
static |
|
static |
|
static |
| dir_entry exif_ifd[] |
|
static |
| dir_entry ifd1[] |
| ifd_entry ifd_list[] |
| struct { ... } rb_state |