opencollada: move patches to an own folder

(cherry picked from commit d466f926f8dc07ec23efa5807fff35a0b6dd4146)

Change-Id: I0b60fa5b0af8224b4c517367130aa9738f071531
collada2gltf: fix URL problems

collada2gltf does not handle Windows pathes, the used COLLADABU::URI
class can't parse native Windows pathes so call COLLADA2GLTFWriter
with URL only.
Other problems:
collada2gltf uses the URL path for creating/opening files,
instead of native ones.
collada2gltf initializes _outputFilePath member in different way,
sometimes as an URL path, sometimes as a native one, but handle it
on the same way(as an URL).

Change-Id: I104182653c07e7dcf6fc5b6e32c7031d59246b84
(cherry picked from commit 1dd84fc4674141449c78f6c5838e2254c5a28f35)
collada2gltf: move patches to an own folder

Change-Id: Ife28845af92883d8090bb80283c59a0a9a350b32
(cherry picked from commit 60ce9e98cb3d1469d3e94164f5670daa2f3a26f0)
glTF: download *.dae and *.kmz files to the temp folder before conversion

Copy them to the same folder where the conversion output is written.

Change-Id: I38b93bf3fc427974cff7d6975151451a253b1cce
(cherry picked from commit b40ca0935d72a3aff8a2beeabec156850c3417ba)
collada2gltf: one more URL usage fix

This one caused empty images and so textures were
missing.

Change-Id: Ia1e93270b7f5ec560b39a41d207e84171bb2434a
(cherry picked from commit 3191d7d1302dbde2445b9f300b3eb853120ede65)
kmz3collada: Workaround for missing textures

The write-only-.dae-file-which-we-need.patch makes the converter
extract only the *.dae file but textures are stored in seperate
image files we need to extract too.
On the other hand this patch makes the converter buildable on all
platforms, since this only works on Windows originally. So for now
disable this patch on Windows so here we won't loose textures
but enable it on other platforms for buildability.
Later we need to solve kmz conversion properly.

Change-Id: Iede9e3bdd5a68a9002f5fa38da8a6459dda8d805
(cherry picked from commit 2d8941eea664031567f4d70f8347dc15befe8880)
libgltf: Another new version.

Change-Id: I784579717674f1caf68ad489d1a931936f6f9651
(cherry picked from commit a0ef37c55febac05f19a2cece0552e68384e56aa)
Update OpenCollada and collada2gltf to the newest versions.

(cherry picked from commit a850d96fade014f11bc076fb916fae8c7c5eaecb)

Conflicts:
	external/opencollada/patches/generatedsaxparser_utils_touri_fix.patch.1

Change-Id: Iee0b9f08843220e8ece00739ca01aa438b93965a
libgltf: turn off openMP usage without any detection code.

Change-Id: Ic823109b812a3d99d8462cf67cd9aa87094bba06
(cherry picked from commit 42f2f473305372050f012aa952ef21b5596fd1cc)
libgltf: Update to newer version.

Change-Id: I95e9356039c6f8bae44b007dce17ab2becbd1259
(cherry picked from commit 6259d1af797e6566f2c1420f84874962cb8ae4e9)
libgltf: Update openmp-related patch to newer libgltf.

Change-Id: I6f7e8d974030169bb00fbd81a0e2190640702729
(cherry picked from commit 318ffa88240f55adef906df673614123d19f35a3)
Use AutoTimer instead of Timer, and add some more locking.

(cherry picked from commit 91fb0866cad2518e5f2cbc48af0e952282fee19d)

Conflicts:
	avmedia/source/opengl/oglplayer.cxx

Change-Id: I83a99e333a6c62bf7779e3fbbcc3e5af38bb2ca5
slideshow: Don't assume anything about the duration.

Let the player decide what to do when the duration is zero, and start()/stop() was called.

Change-Id: I17027349e8d61f7b114e193a769402c04a64f3f3
First stop the timer, then the animation.

Change-Id: Icd5f9f4b8e1c48176fdb73c954e1c4b7d0811516
Patching libgltf: the passed texture bitmaps are RGBA buffers

(cherry picked from commit 9c830b09a033a4716bbc54bfe59f46e22cafe677)

Conflicts:
	external/libgltf/UnpackedTarball_libgltf.mk

Change-Id: I53f6a97820da12e89d567e1bc10226fa27cafd84
glTF rendering: fix texture problems

It seems we need mirroring.

Change-Id: Id9ad7041eb09ec773e4174cb68d34a65a2c473fe
(cherry picked from commit 7c0dc577a4bae2cd398894a68e2edfe966c9ae26)
libgltf: solve this memory leak problem on a better way 2

Handle those cases when file loading failes.
Release *.json file on a different way since it is allocated
by libgltf (inside the glTFHandle).

(cherry picked from commit fafc1e29c1f060c1a44361a0445300f9786ad6f4)

(cherry picked from commit 32f60d78b15b5f2c677e8687720665f6814fef62)

Conflicts:
	avmedia/source/opengl/oglplayer.cxx

Change-Id: Idf6c6971a8ac1b342d89dc4f61a62624183e01d0
glTF rendering: workaround for camera movements

If the glTF contains camera movement in it moving camera
by keyboard didn't work very well.

Change-Id: I9300a257858d4f35c2d622654a0c2fd85eedc5ed
(cherry picked from commit 968b7f807561339d0083fe0aa6e893983ca60456)
(cherry picked from commit 677302934793f1874b739b858a659220f247adac)
Patching libgltf: fix wrong deallocation method

Change-Id: I05c5650c1e43cf9ac4156e8d74073bf92ac0c4df
(cherry picked from commit 3ce0f83cec6d2ee1467523209df633c5a2487f71)
(cherry picked from commit 00e7b772b418049b117c57f8a3d85567701b47a6)
OGLPlayer: check before dereference

(cherry picked from commit 228c5099962b7b7574326e3c328db4165796e8a8)

Conflicts:
	avmedia/source/opengl/oglplayer.cxx

Change-Id: I4bbaf97fe8c5def441ca106c26ad312281ed352f