[Common] Add S3DView platform library

Add S3DView platform library to allow client applications
to inform the surface composer about the layout of
stereo surfaces.

Currently only SurfaceView and derivatives are supported
as they hold their own surface.

Change-Id: Ieca06c2fb8d9660b3fcaf92a13f094d2bcc1074f
Co-authored-by: Alberto Aguirre <a-aguirre@ti.com>
Signed-off-by: Jagadeesh Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
[Common] Add Stereoscopic cowboid cubes app

Add sample application to show usage of S3DView library.
The application renders two views of the same scene
by using an asymmetric frustum camera setup in openGL.

The scene consists of nine rotating textured cubes in "cube formation".
The texture used is Cowboid painted on concrete.

Change-Id: I7dd84dafea8fe28bc15147ea7ea4f8b2cb7c6ddd
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
S3D Cowboids App: Change texture filtering to nearest neighbor.

Change texture filtering to nearest neighbor.

Change-Id: Ie8965b8a3555d3972a01ecfc89d83bdbae012811
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
[Common] S3D: Add support to signal stereo content in windows.

Add support to signal to the compositor (surface flinger) that
stereo content is drawn into an Activity owned window.

Change-Id: Iea58b4eaabfd559903cd1ca5ad3a2f96f75a3d17
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
Add S3D SDK add-on

Add target to generate the s3d sdk add-on which can be
used with the android SDK.

Change-Id: Id0b87d8d43f01c071896d21ca9e6262862c2284a
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
S3D sdk-addon: Include sample app in add-on and emulator image

Add S3D Cowboids sample app to be included in the add-on package;
Include sample app and supporting native s3dView library in emulator image.

Change-Id: Ib398bc4fbba3843017caf1a22f910928e0104262
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
S3D Cowboids App: clean up unused imports.

Clean up unused imports in S3D Cowboids app.

Change-Id: I620cdca1408f623c203d4c310e4c1b0cfadad04e
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
s3d-sdk: Avoid overwriting other sdk addons stub defs

Append to PRODUCT_SDK_ADDON_STUB_DEFS as build system
treats it as a global variable instead of belonging to
the product definition var list.

Change-Id: If1098ca3a3083b50875d7ed5e7a334eb1b490a16
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
S3D: Change the way the s3d flag is checked.

The check to see if s3d was inadequate because as long
as the s3d was even present it would try to build the s3d code.

Therefore change this code to actually make sure that the s3d is
set to true before enabling s3d

Change-Id: I843e263a98468b662d0c1775bf497e7e135fcabb
Signed-off-by: Dan Murphy <dmurphy@ti.com>
S3D: Fixed SDK addon build on JB

- changed to correct path Surface.h
- renamed LOG to ALOG

Change-Id: I56a96f50fada07a8fac30db798f47eebb2a98060
Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
S3D view framework modified

Added JNI to set S3D configuration to the SurfaceView layer

Change-Id: I8cb648d0beb1c74840787371a46bacc5a6035d3f
Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>