buffer addresses for the play viewport - General Discussion and Assistance - CHDK Forum supplierdeeply

buffer addresses for the play viewport

  • 0 Replies
  • 2038 Views
buffer addresses for the play viewport
« on: 07 / April / 2009, 13:19:07 »
Advertisements
Hi,

in this post:
http://chdk.setepontos.com/index.php/topic,2885.msg31628.html#msg31628
I discuss the two addresses used for the play viewport.
Quote
vid_get_viewport_fb_d() reads its buffer address from another address.  That address can hold two different buffer addresses.  For the A720 the two addresses are 0x104B8F50 and 0x105C26D0.  For the A590 the two addresses are 0x104B8F50 and 0x105C2080.  Strange that the first address is exactly the same for both cameras.

The second of the two addresses is also in a list of addresses kept at vid_get_fb_base().  There are 4 buffer addresses kept starting at that location.  One of these addresses is picked by vid_get_viewport_live_fb()  depending on the contents of yet another memory location.  Very complicated! 


Does anyone know of a generic way to find the one address that is exclusively used in play mode?  I.e. would it be possible to write a routine that returns this address?

Jon

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal