https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: fcc56d9fa4d8549b0b7698455e6406dfd9af7e61 authored by Daniel Fort on 16 October 2017, 23:40:38 UTC
Closed branch crop_rec_4k_650D_experimental
Tip revision: fcc56d9
raw_twk.h

#ifndef __raw_twk_h__
#define __raw_twk_h__

/* only for external code, provide the prototype as weak function */
#ifdef __raw_twk_c__
    #define EXT_WEAK_FUNC(f) 
#else
    #define EXT_WEAK_FUNC(f) WEAK_FUNC(f)
#endif



uint32_t EXT_WEAK_FUNC(ret_1) raw_twk_set_zoom(uint32_t zoom, uint32_t x_pct, uint32_t y_pct);

/* render a raw frame into lv buf. directly accesses lv buffer via get_lcd_422_buf(), nothing else */
uint32_t EXT_WEAK_FUNC(ret_1) raw_twk_render_ex(void *raw_buffer, uint32_t xRes, uint32_t yRes, uint32_t bpp, uint32_t quality, uint32_t blackLevel);
/* the older one directly accesses raw_info. kept for compatibility reasons */
uint32_t EXT_WEAK_FUNC(ret_1) raw_twk_render(void *raw_buffer, uint32_t xRes, uint32_t yRes, uint32_t bpp, uint32_t quality);

/* check if the module is available */
uint32_t EXT_WEAK_FUNC(ret_0) raw_twk_available();


#endif
back to top