Author Topic: 550D & 500D porting 14bit RAW DNG silent pics  (Read 75919 times)

wolf

  • Senior
  • ****
  • Posts: 263
550D & 500D porting 14bit RAW DNG silent pics
« on: May 16, 2013, 12:22:47 PM »
I'd like to ask if someone could help porting DNG pics to 550D.

Quote
I've posted a porting guide for DNG silent pics here:
http://www.magiclantern.fm/forum/index.php?topic=5240.msg32128#msg32128

Like a1ex said I took a screenshot of "Show EDMAC" before and after I pressed "Don't click me!"
before: after:

1. fill in the "blanks" in raw.c
#if defined(CONFIG_550D)
#define RAW_LV_EDMAC ? ? ? ? ?
#endif

What is the right address?

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: 550D porting 14bit RAW DNG silent pics
« Reply #1 on: May 16, 2013, 01:22:47 PM »
EDMAC #16 (1888x1181) seems to be the one. That is c0f26008.

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: 550D porting 14bit RAW DNG silent pics
« Reply #2 on: May 16, 2013, 02:20:59 PM »
That is c0f26008.
Works on 500D  ;D

wolf

  • Senior
  • ****
  • Posts: 263
Re: 550D porting 14bit RAW DNG silent pics
« Reply #3 on: May 16, 2013, 02:45:26 PM »
Thanks a1ex.

2.
Code: [Select]
/**
 * Photo-mode raw buffer address
 * On old cameras, it can be intercepted from SDSf3 state object, right after sdsMem1toRAWcompress.
 * On new cameras, use the SSS state, sssCompleteMem1ToRaw.
 *
 * See state-object.c for intercepting code,
 * and http://a1ex.bitbucket.io/ML/states/ for state diagrams.
 */

#if defined(CONFIG_5D2) || defined(CONFIG_EOSM) || defined(CONFIG_650D) //FIXME: 650D is untested
#define RAW_PHOTO_EDMAC 0xc0f04A08
#endif

I mirrored http://a1ex.bitbucket.io/ML/states/ and tried to grep c0f and C0F without result to find the site with the value.

@Greg
What did you use for
Code: [Select]
#define RAW_PHOTO_EDMACDo we need it anyway?




Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: 550D porting 14bit RAW DNG silent pics
« Reply #4 on: May 16, 2013, 03:18:22 PM »
I use the values 5D II

Code: [Select]
#ifdef CONFIG_5D2
#define RAW_PHOTO_EDMAC 0xc0f04A08
#endif

#ifdef CONFIG_500D
#define RAW_PHOTO_EDMAC 0xc0f04A08
#endif

CAM_COLORMATRIX1  :
www.cybercom.net/~dcoffin/dcraw/dcraw.c

Code: [Select]
#ifdef CONFIG_500D
int dynamic_ranges[] = {1104, 1094, 1066, 1007, 933, 848, 737, 625};
#endif


#ifdef CONFIG_500D
    //~ { "Canon EOS 500D", 0, 0x3479,
    //~ { 4763,712,-646,-6821,14399,2640,-1921,3276,6561 } },

    #define CAM_COLORMATRIX1                       \
     4763, 10000,      712, 10000,    -646, 10000, \
    -6821, 10000,    14399, 10000,    2640, 10000, \
    -1921, 10000,     3276, 10000,    6561, 10000
#endif


#ifdef CONFIG_500D
skip_top    = 24;
skip_left   = 74;
#endif



wolf

  • Senior
  • ****
  • Posts: 263
Re: 550D porting 14bit RAW DNG silent pics
« Reply #5 on: May 16, 2013, 06:44:34 PM »
Yeah.. :-) Thanks for helping.



Code: [Select]
$ diff magic-lantern/src/raw.c raw.c
36,40d35
< #if defined(CONFIG_550D)
< #define RAW_LV_EDMAC 0xC0F26008
< #endif
<
<
57,59c52
< #ifdef CONFIG_550D
< #define RAW_PHOTO_EDMAC 0xc0f04A08
< #endif
---
>
143,154d135
< #ifdef CONFIG_550D
< //~ { "Canon EOS 550D", 0, 0x3dd7,
< //~ {  6941,-1164,-857,-3825,11597,2534,-416,1540,6039 } },
<     #define CAM_COLORMATRIX1                        \
<       6461, 10000,     -1164, 10000,    -857, 10000,\
<      -3825, 10000,     11597, 10000,    2534, 10000,\
<       -416, 10000,      1540, 10000,    6039, 10000
< #endif
<
<
<
<
253,258d233
<         #ifdef CONFIG_550D
<         skip_top        = 26;
<         skip_left       = 152;
<         skip_right      =  0;
<         #endif
<
377,380d351
<     #endif
<
<     #ifdef CONFIG_550D
<     int dynamic_ranges[] = {1157, 1154, 1121, 1070, 979, 906, 805, 707};


mk11174

  • Contributor
  • Hero Member
  • *****
  • Posts: 809
Re: 550D porting 14bit RAW DNG silent pics
« Reply #6 on: May 16, 2013, 06:58:29 PM »
Yeah.. :-) Thanks for helping.

Hey Wolf! Care to share your bin so I can test this feature?

500D/T1i  550D/T2i  600D/T3i  700D/T5i


mk11174

  • Contributor
  • Hero Member
  • *****
  • Posts: 809
500D/T1i  550D/T2i  600D/T3i  700D/T5i

ashtrai

  • New to the forum
  • *
  • Posts: 22
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #9 on: May 16, 2013, 07:41:28 PM »
Whats the easiest way to try this out on a 550D? Replace the autoexec_bin file on my card is a given, but what other files (modules etc) do I need?

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: 550D porting 14bit RAW DNG silent pics
« Reply #10 on: May 16, 2013, 08:43:41 PM »
Code: [Select]
[quote author=wolf link=topic=5446.msg35908#msg35908 date=1368722674]
<     #ifdef CONFIG_550D
<     int dynamic_ranges[] = {1157, 1154, 1121, 1070, 979, 906, 805, 707};
These values ​​are probably wrong

Try these values ​​for the 550D:
1095, 1092, 1059, 1008, 917, 844, 744, 645

wolf

  • Senior
  • ****
  • Posts: 263
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #11 on: May 16, 2013, 09:05:44 PM »
I took them from
http://www.dxomark.com/index.php/Cameras/Camera-Sensor-Database/Canon/EOS-550D-pre-production
but it's the (pre-production model)

the commercial model is not available.

I'll try your values.
Thanks

dlrpgmsvc

  • Senior
  • ****
  • Posts: 398
  • The 7D and 50D Robin Hood
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #12 on: May 16, 2013, 09:49:27 PM »
Great Wolf ! Many thanks ! You are great !  8)

Do your mods are (or will be) integrated into the official unified builds ? Let me know ! Many thanks !
If you think it's impossible, you have lost beforehand

tihon

  • Freshman
  • **
  • Posts: 74
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #13 on: May 16, 2013, 10:11:59 PM »
Can you upload any tetst?:) Please
Cinema, cinema, cinema

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #14 on: May 16, 2013, 10:29:49 PM »
500D raw silent pic + intervalometer :

dlrpgmsvc

  • Senior
  • ****
  • Posts: 398
  • The 7D and 50D Robin Hood
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #15 on: May 16, 2013, 10:40:14 PM »
Full resolution frame example on 550D (1736 x 1156 pixels) (1 second fixed exposure, independent of the exposure time you set) -> https://dl.dropboxusercontent.com/u/46130896/sample.jpg

Max speed is about a frame every 2 seconds on 550D with a 30 MB/s 8Gb Sandisk SD card

To take silent dng, go to camera settings on ML menu and enable silent pics (ON), then put the rotating knob of the camera into M (manual), then push the liveview button (the red one) then keep half pressed the shoot button to start silent-shooting. Release it to stop the sequence.
If you think it's impossible, you have lost beforehand

dlrpgmsvc

  • Senior
  • ****
  • Posts: 398
  • The 7D and 50D Robin Hood
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #16 on: May 16, 2013, 10:49:09 PM »
Some questions :

[1] Do the capture resolution can be selected ?
[2] Do the exposure time can be selected ?
[3] Do there is hope to run a little realtime movie (at least at 24fps) by tweaking something (resolution or exposure for example, or other things) ?

Many thanks !
If you think it's impossible, you have lost beforehand


tihon

  • Freshman
  • **
  • Posts: 74
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #18 on: May 16, 2013, 11:20:49 PM »
It would be nice to have 1280x400 as 600d RAW DNG with 24 fps. It should be posible

Quote
Max speed is about a frame every 2 seconds on 550D with a 30 MB/s 8Gb Sandisk SD card
Not bad for timelapsers)))
Cinema, cinema, cinema

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #19 on: May 16, 2013, 11:27:23 PM »
How do I find these values?

Code: [Select]
+/** experimental EDMAC research **/
ConnectWriteEDmac
ConnectReadEDmac
SetEDmac
EDMAC_RegisterCompleteCBR
StartEDmac
PopEDmac

dlrpgmsvc

  • Senior
  • ****
  • Posts: 398
  • The 7D and 50D Robin Hood
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #20 on: May 16, 2013, 11:33:50 PM »
It would be nice to have 1280x400 as 600d RAW DNG with 24 fps. It should be posible

Yes ! It would be great ! Let's pass the ball to Wolf...   :P
If you think it's impossible, you have lost beforehand

Greg

  • Contributor
  • Hero Member
  • *****
  • Posts: 607
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #21 on: May 17, 2013, 01:17:00 AM »
500D :


500D max image buffer is 2000 x 999?
This is RAW_PHOTO_EDMAC

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #22 on: May 17, 2013, 01:21:06 AM »
On 5D2, that edmac is reused for something else (and that's the reason for capturing it from the state objects).

ecek2

  • New to the forum
  • *
  • Posts: 20
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #23 on: May 17, 2013, 06:18:21 AM »
with zoom, picture size is 2368x1080 4.68MB. but almost everything green

https://dl.dropboxusercontent.com/u/81225910/ML/10140010.DNG
EOS 550D 18-55mm IS - 50mm F/1.8

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: [solved] 550D & 500D porting 14bit RAW DNG silent pics
« Reply #24 on: May 17, 2013, 08:09:25 AM »
Skip offsets need to be adjusted then (they are too big).