Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document describes the sample code that is included in the SDK and can be found in C:\Aptina Imaging\samples.
They use VS2013, and Qt 5.7 where applicable.  Also, for some samples VS2008/VS2010/VS2012 solutions files are available.
NOTE: for Qt application set a
System Variable of "QTDIR" set to the Qt installation location; for example, C:\Qt\Qt5.7.0\5.7\msvc2013. And in VS2013, set the QT Properties with "msvc2013".

Most pre-built executables are in C:\Aptina Imaging.

...

Also, the Python script "create_new_dlg.py" can be used to make a copy of the BlankQtDlg source into the DevWare directory, while making all necessary file name changes and string substitutions to create a new plug-in project.

NOTE: for Qt applications, ensure that you have a System Variable of "QTDIR" set to the location of your Qt installation files; for example, C:\Qt\Qt5.4.0\5.4\msvc2012_opengl

Csharp_ApBase_COM_Sample

Csharp_ApBaseCOM.exe is a Command Line based C# sample of using ApBase's COM interface built using Visual Studio C#. The sample performs the following actions:
1. Starts ApBase_COM and then displays the sensor name found.
2. Loads the default initialization preset.
3. Sets up the capture/save parameters.
4. Grab the frame and saves it, and verifies there were no errors.
5. Exits ApBase_COM.

...

IPTransportDLL is a sample Visual Studio C++ transport DLL. A transport DLL allows a user to use non-Aptina Hardware to run with Devware or any other MIDLIB application.
This sample is specific to UDP packet processing.
Note this sample requires winpcap, and it is upon the user to acquire it to get the sample to compile.

For more information on creating a transportDLL please refer to the "Transport DLL Development Guide".

...

Simple is a GUI-based QT Visual Studio C++ ApBase application that can display image output for all Aptina sensors. It has a very simple demosaic algorithm in order to display output for Bayer only parts. It also includes examples of how to read and write registers.
Note that the application expects the width and height to match the SDAT's values of "Width" and "Height".

NOTE: for Qt applications, ensure that you have a System Variable of "QTDIR" set to the location of your Qt installation files; for example, C:\Qt\Qt5.4.0\5.4\msvc2012_opengl

TransportDLL

TransportDLL is a sample Visual Studio C++ transport DLL. A transport DLL allows a user to use non-Aptina Hardware to run with Devware or any other MIDLIB application. For more information on creating a transportDLL please refer to the "Transport DLL Development Guide"