Todo se ilucionaran demasiado al ver este tutorial, aunque da una parte basica y capaz muchos se han dado cuenta. Los camdrivers como los parches, tienen 2 partes basicamente una comentada y otra de valores, al menos eso creo. La parte comentada va con // adelante, estos se utilizan para comentar los cambios que posee, y las nuevas modificaciones que se han añadido. El camdriver es posible editarse desde el bloc de notas, el bloc de notas permite el apreciamiento de todo el camdriver. Pego la parte comentada de un camdriver de ejemplo W810:
Código:
// Clara camera driver setup file
//************************************************************************
//
// Revision history:
//
//***********************2005-06-14, MR2 *********************************
//
// 4.5 Get_property for reading the set-up file revision added
//
// **********************2005-06-01, MR1 ****************************************
//
// 4.4 cam_sync_ss=f added again and power save mode modified
// cam_ss_sync_9=7 added
//
// **********************2005-05-31****************************************
//
// 4.3 cam_sync_ss=f deleted due to conflict with power save mode
// cam_ss_sync_9=7 deleted snd cam_ss_sync=7 inserted
//
//
//
// **********************2005-05-20****************************************
//
// 4.2 Q-value and EXIF Flash readout exchange orders
// Minimum sizes of JPEG sizes set to "0"
// I2C read of Q-value done twice
//
// **********************2005-05-16****************************************
//
// 4.1 cam_ss_sync_9=7 added
//
// **********************2005-05-12****************************************
//
// 4.0 Minimized JPEG file sizes to minimize the risk of unsucceed images
// Lower the minimum limit of 100x60 and 160x120 sizes
//
//
// **********************2005-05-11****************************************
//
// 3.9 Exif data for flash (Brian)
// cam_ss_sync=f
//
//***********************2005-04-27 R T L 2 *******************************
// =======
//
// 3.8 Moved code from seq_ss_start to seq_ss_take
// This changes the time when the platform resets the image buffer
// (which is a patch in the platform for problem with FF D9 sometimes
// missing in the jpeg stream
//
// Also: change compression degree and MIN size limit, when accessory
// flash is used. This is to prevent risk of retake snapshot in
// accessory flash situations. (We don't want any retakes because
// flash will only be fired during the first image.)
//
//
//***********************2005-04-14**** R T L Release********
// =======
//
// 3.7 Night mode exposure changed from 10fps to 5fps for still/vf image
// Digital sharpening and contrast levels changed
// White balance values for flash LED changed, done when entering seq_ss
// FIFI clearing added
//
// *************************2005-04-12****************
//
// 3.6 Retrials of JPEG changed to 9
// Wait for capture and a delay of 1ms before reading the status register E3
//
// *************************2005-03-29 ***************************
//
// 3.5 Effects problem when using Power save solved
//
// *********************2005-03-21 ******************************
//
// 3.4 Read out Q-factor (even on failure mode of "gray image")
//
// ******************** 2005-03-15 **********************
// 3.3 Added polling in power save handling
// Increased maximum wait time in WAIT_FOR_MODE_TRANSITION
// LED property implemented
// VR frame rate set to 10 fps normal, 7.5 fps night mode
// Buffer size for 100x60 changed from 12 to 15
// 100X60, 160X120,320X240 and VGA have got same max value in standard and fine
// ******************* 2005-02-23 *************
// 3.2 Night mode fix: uses every frame at night mode and every secon at normal mode
// JPEG file sizes corrected
//
// 3.1 ************ 2005-02-14 ********************
// Changed nightmode frame rate to use each 2 frame again.
// Using each frame caused very dark snapshot images
//
// 3.0 *************** Corrected seq_ping; to seq_ping=; ********
//
// 2.9 ************ 2005-02-10 ********************
// Removed ping sequence
// Changed frame rates. Added macros to test VR frame rate.
// (VR_NORMAL_MODE_FR and VR_NIGHT_MODE_FR)
// Reinserted VF_TRANSITION_DELAY to fix VF->VR transition problems
// Lowered min value for VGA compression to 1 again
// Added small delay in power save property
//
// 2.8 ************* 2005-02-04 ******************************
// Changed buffer size for VGA
//
// 2.7 ********************** 2005-02-02 ***************
// Max size of a VGA JPEG image limited to 150kb
//
// Added a delay of 160ms between power save mode transition
//
// No delay before viewfinding for FP1.3 cameras and later
// Added property for power save mode (0x15)
//
//
// 2.6 ***************2005-01-31 *************************
// Added Xenon flash always ON for ITP (prop 0xe,2)
//
// ************************* Delivery of 2005-01-13 ************
// ****************************************************************
// Power save mode. The sensor stops scaning while the Host processes the JPEG
//
//
//
2,4 ************************ Delivery of 2004-12-21 ************
// *************************************************************
// This release is only for ITP***
//
// Changed connection test for size 30
// Added delay to each command by using CMD_END macro
//
// ************************* Delivery of 2004-12-09 **************
//******************************************************************
// 2.3 New delay time i transition mode
// Fixed bug in size 30
// delay of 100 ms from Vincenne to Vdd_SA
//
// ************************* Delivery of 2004-12-07 **************
//******************************************************************
// 2.2 Invert clk-signal in power down
// Test pattern for R&D (ITP), new size
//
// ************************* Delivery of 2004-12-07 **************
//******************************************************************
// 2.1 Exif data read out propery changed
// Delay of 100ms at starting all view finder sizes
//
// ************************* Delivery of 2004-11-27 **************
//******************************************************************
//
// 2.0 Fixed error in get auto focus status
// New properties for AF position status (for ITP)
// snapshot format and off-set fixed for R8
// Vincenne2 power supply for camera (ONLY FP1.1 OR LATER BUILDS)
// 1.9 Updated handling of YUV-snapshot
//
// 1.8 JPEG output sizes are changed. The change is only for verification and is
// not finilized.
// ************************* Delivery of 2004-11-15 **************
//******************************************************************
// 1.7 Updated sup_properties and properties according to requirement doc PA2
// Uses ping to reject old cameras
// New handling of discrete zoom
// 1.6 Third Release to Application SW, 2004-11-09
// Flipped values for property 5. Added property 12 (Qtable read).
// Fixed bug in ss->vf->ss transition. Added buffer sizes (for ITP use)
// 1.5 Second Release to Application SW, 2004-11-02
// 1.4 EXIF read, frame rates, status handling in transitions, burst mode
// frame rate 8-15fps, Changed power up sequence
// 1.3 Exposure changed, EXif=>get_prop, Jpeg size, DR marker removed
// 1.2 Frame rates included
// 1.1 Modiefied and updated properties (frame rate, Effects
// Zoom, Exif, AE, Prop 18,19,20,21)
// 1.0 First Release to Application SW
Properties, JPEG sizes name of module etc..
// 0.9 Added offset (first entry) to JPEG qtable factor
// 0.8 Updated JPEG values and corrected registers
// Updated properties
//
// 0.7 Updated JPEG calculation (added factors). Simplified some properties.
// 0.6 Added JPEG header
// 0.5 Updated properties. Default no mirror in init.
// 0.4 New power up sequence again
// 0.3 Updated power up sequence
// 0.2 Updated property handling
// 0.1 First test version by QWIKHAN
//
//*****************************************************************************
//Information section
//=========================================================
info_name=KNC 201 15;
info_vendor=Sony;
info_major_ver=4;
info_minor_ver=5;
Este es el cuerpo del area comentado, como decia anteriormente, presenta cambios y modificaciones que se le han hecho al mismo, en la ultima parte. Information section, lo relaciono como un parche, en info name debe ir el nombre del camdriver o version, en info vendor debe ir el creador. Para terminar con la parte comentada, la parte esencial es la de arriba, pero puede haber mas partes comentadas mezcladas con partes de valores ej:
XXX parte valor //Esto hace tal cosa.
Empiezo con la parte de valor, la parte de valor tal como un parche esta formada por numeros, en este caso modificando los mismos se obtienen diferentes resultados. Explico un poco, el valor de los camdrivers como en de los parches esta expresado en valor hexadecimal.
Código:
//Camera characteristics section
//=========================================================
cam_power_on_0 = 5, 0, 0, 1, 5; // Pull RST pin and wait 05 ms
cam_power_on_1 = 5, 1, 35, 1, 0; // Set GPIO 35 as output (VDD_L 1.2V)
cam_power_on_2 = 5, 2, 35, 1, 5; // Set GPIO 35 high and wait 5 ms
cam_power_on_3 = 5, 5, 6, 1, 10; // Turn on Vincenne regulator LDO_G (VDD_SD 1.8V)
cam_power_on_4 = 5, 1, 46, 1, 0; // Set GPIO 46 as output (VDD_SA, VDD_IO 2.7V; VDD_AF 2.7V)
cam_power_on_5 = 5, 2, 46, 1, 5; // Set GPIO 46 high and wait 5 ms
cam_power_on_6 = 5, 3, 1, 32C8, 5; // Turn on 13 MHz clock and wait 5 ms
cam_power_on_7 = 5, 0, 0, 0, 1F4; // Release RST pin and wait 500 ms
cam_power_off_0= 5, 0, 0, 1, 0; // Pull RST pin
cam_power_off_1= 5, 3, 1, 1, 0; // Turn off 13 MHz clock
cam_power_off_2= 5, 1, 46, 1, 0; // Set GPIO 46 as output
cam_power_off_3= 5, 2, 46, 0, 0; // Set GPIO 46 low
cam_power_off_4= 5, 5, 6, 0, 0; // Turn off Vincenne regulator LDO_G
cam_power_off_5= 5, 1, 35, 1, 0; // Set GPIO 35 as output
cam_power_off_6= 5, 2, 35, 0, 0; // Set GPIO 35 low
cam_i2c_address=1F;
cam_vf_clock_freq=1,32C8;
cam_ss_clock_freq=1,32C8;
cam_vf_format=B100;
cam_ss_format=0001;
cam_ss_format_9=B100;
cam_ss_format_30=B100;
cam_data_offset_9=0;
cam_data_offset_30=0;
cam_ss_sync_30=3;
cam_data_offset=2;
cam_vf_sync=7;
cam_ss_sync=f;
cam_ss_sync_9=7;
cam_ss_retries=9;
//-- JPEG buffer sizes (only used for ITP)
cam_ss_jpeg_buf_size_1=3A98; // 15 KB buffer for 100x60 snap
cam_ss_jpeg_buf_size_2=88B8; // 35 KB buffer for 160x120 snap
cam_ss_jpeg_buf_size_3=186A0; // 100 KB buffer for 320x240 snap
cam_ss_jpeg_buf_size_4=249f0; // 150 KB buffer for 640x480 snap
cam_ss_jpeg_buf_size_5=61A80; // 400 KB buffer for 1280x960 snap
cam_ss_jpeg_buf_size_6=927C0; // 600 KB buffer for 1600x1200 snap
cam_ss_jpeg_buf_size_7=927C0; // 600 KB buffer for 1632x1088 snap
cam_ss_jpeg_buf_size_8=927C0; // 600 KB buffer for 1632x1244 snap
Empezamos esta es un zona numerica, en este caso, esta zona no se muy bien el sentido que cumple, pueden preguntarle a los que realizan camdrivers de que sirve. Sigo con el tutorial, la siguiente seccion numerica puede dar una explicacion:
Código:
/SUPPORTED SIZES
//===============
// CAPTURE MODE
// 1 = 100 x 60 2 = 160 x 120 3 = 320 x 240
// 4 = 640 x 480 5 = 1280x 960 6 = 1600x1200
// 7 = 1632x1088 8 = 1632x1224
// 9 = 640 x 480 YUV format
// DRAFT MODE
// 11 = 100 x 60 12 = 160 x 120 13 = 220 x 146
// 14 = 220 x 165 15 = 236 x 177
// VR MODE
// 21 = 128 x 96 Normal mode
// 22 = 128 x 96 Night mode
// 23 = 176 x 144 Normal mode
// 24 = 176 x 144 Night mode
sup_sizes=1[64,3C,0],2[A0,78,0],3[140,F0,0],
4[280,1E0,0],5[500,3C0,0],6[640,4B0,0],
7[660,440,0],8[660,4C8,0],9[280,1E0,0],
11[64,3C,5DC],12[A0,78,5DC],13[DC,92,5DC],
14[DC,A5,5DC],15[EC,B1,5DC],
21[80,60,3E8],22[80,60,2EE],23[B0,90,3E8],
24[B0,90,2EE],30[4E,90,0];
La siguiente seccion muestra en parte comentada los tamaños de filmacion y foto que soporta, y al final en parte de valor, modificable, muestra el tamaño modificable soportado al que puede filmar y sacar fotos la camara, para dar un ejemplo:
el numero 8 en sup sizes muestra la resolucion maxima de sacar fotos, ya que 660 hexagesimales son 1632 decimales y 4C8 hexagesimales son 1224 decimales, y por dar otro ejemplo: el numero 24 muestra el numero maximo de resolucion al cual se puede filmar por que B0 son 176 decimales y 90 son 144 decimales, en conclusion modificando estos parametros se pueden conseguir distintos tipos de resoluciones.
Vamos con otra seccion:
Código:
//Properties: 0 = Exposure
// 1 = White balance
// 2 = Flicker
// 3 = Vertical mirror
// 4 = Horisontal mirror
// 5 = JPEG Compression level
// 6 = Zoom
// 7 = Night mode
// 8 = Effect
// 9 = Focus mode
// a = Focus operation
// b = Exif (Read only)
// c = Qtable info (Read only)
// d = LED support
// e = Flash support
// f = Power save mode
// 10 = Scene
// 11 = ISO
// 12 = Auto exposure
// 13 = Brightness
// 14 = Contrast
// 15 = Sharpening
// 16 = ITP focus test
// 17 = ITP focus test
// 18 = Spot
sup_properties=0[0,15,9],1[0,6,0],2[0,3,1],3[0,1,0],
4[0,1,0],5[0,1,0],6[a,28,a],7[0,1,0],
8[0,4,0],9[0,4,0],a[0,2,0],b[0,4,0],
c[0,ff,0],d[0,1,0],e[0,2,0],f[0,1,0],
10[0,7,0],11[0,d,0],12[0,ff,0],13[0,15,7],
14[0,16,8],15[0,16,8],18[0,7,0];
En esta seccion, ya vista la otra esta claro que cada valor comentado indica un valor numerico, un ejemplo es el exposure 0 comentado, en valor indica la cantidad de exposicion que presenta el camdriver y otros 2 ejemplos: en zoom numerico valor 6 esta expresado en hexagesimal 28, decimal 40, ahi estan los 4X y en valor D numerico, osea soporte de led, con 0,1,0 se da la opcion activado el soporte de flash led.
Otra seccion:
Código:
//I2C sequence section
//=========================================================
//---------------------------------------------------------
// Description of internal register usage:
//
// a: used to select EXIF parameter to read
// e: used to remember last size id for snapshot burst mode
//
//---------------------------------------------------------
CMD_END=$f $d0005;
//---------------------------------------------------------
//These two lines controls the locked frame rate in VR.
//Use them to test different settings!
//The value entered is the desired frame rate * 4.
//Example: 3C means 0x3C = 60 => frame rate 60 / 4 = 15 fps
VR_NORMAL_MODE_FR=28;
VR_NIGHT_MODE_FR=1E;
En esta seccion se define los fps en modo normal y nocturno, otra vez numeros en el ejemplo, example: se dan 15fps por un calculo matematico si sabemos que 3C son 60 decimales y ese numero se divide por el frame rate 4 nos da 15, osea 15Fps.
En el camdriver para modo normal se determino, 10fps y en modo nocturno 7,5.
Me he salteado algunos renglones de los cuales desconosco su uso, sigo con el tutorial:
Código:
//************************************************
// Exposure property 0 *******
//************************************************
// 0 => -3 EV, 1=> -(2 2/3) EV .... 15=> 2 EV
//---------------------------------------------------
seq_set_prop_0=$s0 %0 $-0 09 06 02 00 01 $w0 06 #CMD_END;
En la parte de arriba, vemos que estamos modificando la exposicion, la misma esta predifinida actualmente en -3EV se puede setear en -(2 2/3) EV o 15=> 2 EV.
Código:
//************************************************
// Set-up file revision reading *********
//************************************************
seq_get_prop_0 = $s1 04 $s0 05; // Store major version number in reg 1, store minor revision number in reg 0
En lo que muestro anteriormente se puede observar que no tiene importancia sobre el camdriver en si, puesto que se modifica el numero de version maximo hasta el momento y el minimo
Código:
//************************************************
// White balance, property 1 *******
//************************************************
// 0 => auto 1 => tungsten 2 => fluorescent
// 3 => clear sky 4 => cloudy
// 5 => one push 6 => hold
//---------------------------------------------------
seq_set_prop_1_0=06 02 00 01 00 11 #CMD_END;
seq_set_prop_1_1=06 02 00 01 03 11 #CMD_END;
seq_set_prop_1_2=06 02 00 01 04 11 #CMD_END;
seq_set_prop_1_3=06 02 00 01 05 11 #CMD_END;
seq_set_prop_1_4=06 02 00 01 06 11 #CMD_END;
seq_set_prop_1_5=06 02 00 01 07 11 #CMD_END;
seq_set_prop_1_6=06 02 00 01 01 11 #CMD_END;
Anteriormente se muestra los balances de blancos y las opciones. Por ejemplo la opcion 2 es fluorescente y la 3 cielo abierto, la 4 nublado, etc, pueden eliminar las que no les son de utilidad o agregar otra con conocimiento en hexadecimal o simplemente modifican una existente.
Código:
//****************************************************
// Flicker correction, property 2 *******
//****************************************************
// 0 => auto, 1 => 50 Hz, 2 => 60 Hz, 3 => disable
//
//---------------------------------------------------
seq_set_prop_2_0=06 02 00 01 01 21 #CMD_END; //Auto detect
seq_set_prop_2_1=06 02 00 01 02 21 #CMD_END; //50Hz detect
seq_set_prop_2_2=06 02 00 01 03 21 #CMD_END; //60Hz detect
seq_set_prop_2_3=06 02 00 01 00 21 #CMD_END; //Disable
Aqui se muestra la correccion del parpadeo como un monitor para dar el ejemplo, la misma se puede setear en 50 Hercios, 60Hercios, Desactiva, Auto deteccion. Yo no recomendaria editar estos valores para obtener un mayor tiempo de parpadeo con esto se puede arruinar el hardware.
Código:
//****************************************************
// Vertical mirroring, property 3 *******
//****************************************************
//
// 0 => off, 1 => on
//
//---------------------------------------------------
seq_set_prop_3=$s0 00 $b0 %0 1 1 $b0 %0 3 1 $p1 04
$c1 00 $b0 00 0 1 $b0 00 2 1 $cl
$b0 01 0 1 $b0 01 2 1 $cx
06 02 00 01 $w0 52 #CMD_END;
Ahora muestro el llamado reflejo vertical, la verdad es que no se que utilidad tiene, actualmente esta activado.
Código:
//****************************************************
// Horizontal mirroring, property 4 *****
//****************************************************
// 0 => off, 1 => on
//
//---------------------------------------------------
seq_set_prop_4=$s0 00 $b0 %0 0 1 $b0 %0 2 1 $p1 03
$c1 00 $b0 00 1 1 $b0 00 3 1 $cl
$b0 01 1 1 $b0 01 3 1 $cx
06 02 00 01 $w0 52 #CMD_END;
Al igual que anteriormente, ahora es el reflejo horizontal y no se que utilidad posee.
Código:
// ----------- JPEG compression property 5 ----------
//
// 0 => normal, 1 => fine (low compression)
//
//---------------------------------------------------
SET_JPEG_MAX=06 02 00 0D !1 !0 #CMD_END;
SET_JPEG_MIN=06 02 00 0F !1 !0 #CMD_END;
SET_JPEG_AVG=06 02 00 11 !1 !0 #CMD_END;
//SET_JPEG_QUALITY=07 02 00 13 !0 !1 !2 #CMD_END; // INIT, AVE, LAST
SET_JPEG_QUALITY= $p1 0e // Check if accessory flash is connected
$c1 01 // If accessory flash is connected...
$s2 32 // ...then use a hardcoded compression value
#SET_JPEG_MIN(00,01) // ...and change the min size limit to 1KB
$cx // End if
07 02 00 13 $w2 $w2 $w2 #CMD_END; // INIT, AVE, LAST
//=========================================================
// Normal quality settings:
// MIN MAX AVG COMPRESSION for initial, average and last quality
// 100 x 60: 0 15 5 75
// 160 x 120: 0 25 8 75
// 320 x 240: 0 40 15 75
// 640 x 480: 0 150 55 75
// 1280 x 960: 0 320 150 75
// 1600 x1200: 0 520 370 75
// 1632 x1088: 0 480 350 75
// 1632 x1224: 0 540 400 75
//=========================================================
seq_set_prop_5_0=$z0
$s2 4b // Keep in mind which compression value to use...
$c0 01 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(00,0F) #SET_JPEG_AVG(00,05) #SET_JPEG_QUALITY $cl
$c0 02 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(00,19) #SET_JPEG_AVG(00,08) #SET_JPEG_QUALITY $cl
$c0 03 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(00,28) #SET_JPEG_AVG(00,0F) #SET_JPEG_QUALITY $cl
$c0 04 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(00,96) #SET_JPEG_AVG(00,37) #SET_JPEG_QUALITY $cl
$c0 05 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(01,40) #SET_JPEG_AVG(00,96) #SET_JPEG_QUALITY $cl
$c0 06 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(02,08) #SET_JPEG_AVG(01,72) #SET_JPEG_QUALITY $cl
$c0 07 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(01,e0) #SET_JPEG_AVG(01,5e) #SET_JPEG_QUALITY $cl
$c0 08 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(02,1c) #SET_JPEG_AVG(01,90) #SET_JPEG_QUALITY
$cx $cx $cx $cx $cx $cx $cx $cx;
//=========================================================
// Fine quality settings:
// MIN MAX AVG COMPRESSION for initial, average and last quality
// 100 x 60: 0 15 8 85
// 160 x 120: 0 25 15 85
// 320 x 240: 0 40 20 85
// 640 x 480: 0 150 80 85
// 1280 x 960: 0 340 300 85
// 1600 x1200: 0 540 460 85
// 1632 x1088: 0 500 420 85
// 1632 x1224: 0 560 480 85
//=========================================================
seq_set_prop_5_1=$z0
$s2 55 // Keep in mind which compression value to use...
$c0 01 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(00,0F) #SET_JPEG_AVG(00,08) #SET_JPEG_QUALITY $cl
$c0 02 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(00,19) #SET_JPEG_AVG(00,0F) #SET_JPEG_QUALITY $cl
$c0 03 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(00,28) #SET_JPEG_AVG(00,14) #SET_JPEG_QUALITY $cl
$c0 04 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(00,96) #SET_JPEG_AVG(00,50) #SET_JPEG_QUALITY $cl
$c0 05 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(01,54) #SET_JPEG_AVG(01,2C) #SET_JPEG_QUALITY $cl
$c0 06 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(02,1c) #SET_JPEG_AVG(01,cc) #SET_JPEG_QUALITY $cl
$c0 07 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(01,f4) #SET_JPEG_AVG(01,a4) #SET_JPEG_QUALITY $cl
$c0 08 #SET_JPEG_MIN(00,00) #SET_JPEG_MAX(02,30) #SET_JPEG_AVG(01,e0) #SET_JPEG_QUALITY
$cx $cx $cx $cx $cx $cx $cx $cx;
La siguiente parte tiene importancia y es la compresion de las imagenes, se define como formato JPG, el mismo no se si es posible cambiarlo a BMP por ejemplo para obtener mas calidad. En los primeros renglones se puede elegir el tipo de compresion que se quiere en que viene por default ò una compresion baja, con lo que se mejora calidad. En los siguientes renglones se puede ver el peso minimo y maximo del archivo, y la compresion todos estan seteados en compresion en un default de 75 en compresion normal y 85 en compresion fina.
Código:
//************************************
// Zoom, property 6 *****
//************************************
// 10 => 1.0 x zoom, 11 => 1.1 x zoom, ... 40 => 4.0 x zoom
//
seq_set_prop_6_a=06 02 00 01 00 61; // Value 10 => 1.0 x zoom => no zoom, set value 0
// The formula below will calculate the closest possible zoom settings.
// This will result in the following register values for 1.1 ... 4.0:
// 3A,35,31,2E,2B,28,26,24,22,20,1E,1D,1C,1B,1A,19,18,17,16,15,15,14,13,13,12,12,11,11,10,10
//
seq_set_prop_6=$s0 0a $<0 6 $s1 %0 $>1 1 $+0 r1 $/0 %0 06 02 00 01 $w0 61 #CMD_END;
Esta parte tiene que ver con el zoom, se puede escoger el maximo zoom 4X y si se quiere sobrepasar el maximo de zoom, editando los valores, se muestra por defecto que el zoom va desde el 1.1 hasta 4.0, cada ves que se apreta el boton + o - para subir o bajar de zoom se salta entre los valores detallados con rojo.
Código:
//******************************************
// Night mode, property 7 *****
//******************************************
seq_set_prop_7_0=06 02 00 01 28 03 #CMD_END // Slowshutter locked at min 20 fps => 10 fps draft mode
05 02 00 08 3C #CMD_END // 30fps => 15 fps, Normal mode
06 02 00 01 81 34 #CMD_END // Transition to draft mode, use each 2 frame
#WAIT_FOR_MODE_TRANSITION;
seq_set_prop_7_1=06 02 00 01 0a 03 #CMD_END // Slowshutter locked at 5 fps draft mode
05 02 00 08 1e #CMD_END // 15fps, Dark mode
06 02 00 01 01 34 #CMD_END // Transition to draft mode, use every frame
#WAIT_FOR_MODE_TRANSITION;
En esta parte se puede modificar las propiedades del modo nocturno, en el mismo se definen los fps para modo nocturno.
//***************************************
// Effects, property 8 *****
//***************************************
// 0 => normal, 1 => negative, 2 => solarize
// 3 => sepia, 4 => black&white, //inverted sepia and negative B&W
//---------------------------------------------------
seq_set_prop_8=06 02 00 01 %0 53 #CMD_END;
Aqui se puede observar los efectos que se puede realizar en filmacion o fotos, como negativo y demas, modificando los numeros despues del igual se puede cambiar estos efectos o agregar algunos.
Código:
//*********************************************
// Focus setting, property 9 *****
//*********************************************
// 0 => Normal mode (no macro range scanning) //by start up
// 1 => Full range
// 2 => Fast mode (no macro, reduced normal scanning)
// 3 => Fast mode and full range
// 4 => Macro range (only macro range scanning)
seq_set_prop_9=06 02 00 01 %0 41 #CMD_END;
En la siguiente parte se definen los modos de enfoque, veran que el modo rapido, es sin macro y el modo macro se realiza mas lento. Se modifica cambiando los numerosde seq_set_prop_9 despues del igual.
Bueno el tutorial creo que se ha hecho medianamente largo y queda mas por explicar, ahi tienen + o - conocimientos sobre el funcionamiento de un camdriver, la parte restante del camdriver se modifica como esta no es ninguna ciencia. Mas adelante de esto apareceran opciones para cambiar las opciones del flash, el ISO, brillo, contraste y mas. Esto esta basado en el camdriver por default del W810 R4EA031.
Marcadores