# Miscellaneous - const char \*FadasVersion(void) - Return string of version information. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasInit(const char \*licenseKey) - Initialize FastADAS. **WARNING:** Must be called once before other FastADAS functions except [FadasVersion()](https://docs.qualcomm.com/doc/80-63309-1/topic/misc.html#group__misc_1ga55cbdff48d751f2a0227ae4ac106d746). - Parameters: - **licenseKey** – Pointer to the license key string. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasDeInit(void) - Deinitialize FastADAS. **WARNING:** Must call this function once after all other FastADAS functions. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - void \*FadasMemAlloc(size\_t size, size\_t byteAlignment, [FadasMemHandle\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/typedef_fadas_8h_1a8b8582d4be8d7b261f35a44eb2d9edbd.html#_CPPv416FadasMemHandle_t) \*handle = nullptr) - Allocate aligned memory. - Parameters: - - **size** – Memory size in bytes. - **byteAlignment** – Memory alignment requirement in bytes. NOTE: Defaults to 64 byte alignment **WARNING:** Must be less than 128. - **\*handle** – Pointer to the memory handle when using a special memory region otherwise nullptr to use heap. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasMemFree(void \*ptr) - Free memory allocated by FadasMalloc(). - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasCreateImage([FadasBufType\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a49340412533be1af1f253c2f96c14ae7.html#_CPPv414FadasBufType_e) bufType, uint32\_t imgW, uint32\_t imgH, [FadasImageFormat\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1acde867f0d2dd7ebf07eadf23200adfe9.html#_CPPv418FadasImageFormat_e) imgFmt, [FadasImage\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/struct_fadas_image__t.html#_CPPv412FadasImage_t) \*img, size\_t byteAlignment = 128, [FadasMemHandle\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/typedef_fadas_8h_1a8b8582d4be8d7b261f35a44eb2d9edbd.html#_CPPv416FadasMemHandle_t) \*handle = nullptr) - Allocate and set up the image structure using the width, height, and format. - Parameters: - - **bufType** – Buffer type. - **imgW** – Image width (pixels). - **imgH** – Image height (pixels). - **imgFmt** – Image binary format and layout. - **img** – Image structure to allocate memory into. - **byteAlignment** – Memory alignment requirement in bytes. **WARNING:** Supported values are 16, 32, 64, and 128. - **\*handle** – Pointer to memory handle if using special memory region otherwise nullptr to use heap. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasDestroyImage([FadasImage\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/struct_fadas_image__t.html#_CPPv412FadasImage_t) \*img) - Free memory that [FadasCreateImage()](https://docs.qualcomm.com/doc/80-63309-1/topic/misc.html#group__misc_1ga6eeb8c8dc55b4eb1f625cbaf57622116) allocated. - Parameters: - **img** – Pointer to the image structure from which to free memory. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasCopyImage(const [FadasImage\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/struct_fadas_image__t.html#_CPPv412FadasImage_t) &src, [FadasImage\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/struct_fadas_image__t.html#_CPPv412FadasImage_t) &dst) - Copy image contents with same dimensions. - Parameters: - - **src** – Source image structure to be copied from. - **dst** – Destination image structure to be copied to. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasRegBuf([FadasBufType\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a49340412533be1af1f253c2f96c14ae7.html#_CPPv414FadasBufType_e) bufType, const void \*buf, size\_t bufSize) - Register buffer with FastADAS. NOTE: - Only use buffers registered with FastADAS for processing. - Only register I/O buffers at initialization. - Parameters: - - **bufType** – Type of buffer to register. - **buf** – Pointer to the buffer to register. - **bufSize** – Buffer size. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasDeregBuf(const void \*buf) - Deregister the buffer with FastADAS. NOTE: Do not use buffers for processing after they deregister with FastADAS. - Parameters: - **buf** – Buffer to deregister. Last Published: Sep 30, 2024 [Previous Topic Topics](https://docs.qualcomm.com/bundle/publicresource/80-63309-1/topics/topics.md) [Next Topic 3D transformation](https://docs.qualcomm.com/bundle/publicresource/80-63309-1/topics/3d-transformation.md)