Testing for H/W video decoding support.
Added QCOM-specific bits to cmds-stagefright.
We now have full 1080p hardware video acceleration!
Fixed mediaserver crash when handling AVC Main-profile level 3.

Also fixed some file permissions.
Changed path for qcom-opensource to hardware/qcom/media.

This follows CM's directory structure.
libstagefright: Fixed video thumbnail generation for QCOM devices.

StagefrightMetadataRetriever was looking for the wrong property to identify
Qualcomm devices. Changed from ro.product.device to ro.board.platform.

Since we use proprietary libmm-color-convertor.so from HTC Pyramid,
colorconvertor was also looking for the wrong symbol via dlsym.
Temporary commit for working qcom OMX decoding

Testing for H/W video decoding support.

Added QCOM-specific bits to cmds-stagefright.

We now have full 1080p hardware video acceleration!

frameworks/base/nuplayer: Fixes to enable HTTP live streaming

- Enable QCOM specifc color formats in ACodec
- Do not skip lines without /n, in M3U Parser
- Stop scanning sources until reset is handled in NuPlayer.

Change-Id: Ie7e902c0cd56e7aec17d0ac67d2869a7819770cd

Conflicts:

	media/libstagefright/ACodec.cpp

frameworks/base/NuPlayer: Handle Seek from NuPlayer

- Seek was handled by the source by queuing discontinuity events
  individually for each stream.With this approach renderer will
  continue till discontinuity events are handled for each stream
- With the new approach seek is handled by the player -
  - get the new seek time from source
  - flush the source TS segments in LiveDataSource, access units
    in TS Parser, decoders and renderer
  - notify current position to driver
  - LiveSession will not queue a discontinuity for seek.
- Add a mutex lock for connect & disconnect ChromiumHTTPDataSource
- Handle flush in ACodec - Idle to Executing & Loaded to Idle states

Change-Id: I8a741c2c665d3aca715734fc1fd1eeae33a6271b

Conflicts:

	media/libmediaplayerservice/nuplayer/NuPlayer.cpp

frameworks/base/nuplayer: Support for dynamic port reconfig in HTTP Live

- BW switch is detected by the decoder by a port reconfig event
  instead of a discontinuity event
- Handle port reconfig dyanamically in ACodec
  Steps are - Flush - Get all buffers back - Disable - Enable
- Handle PID change in TS Parser - Set PID based on stream type

Change-Id: I5ff494084fffa218cafd3cd6db1197aad2233c4d

libstagefright: return proper color format on target basis.

 Video preferred Color format is different for different targets.
Add a method to choose the preferred format for each target.

Change-Id: Iba28d5d6e2917792492b3b2e9d38396d468f3202

Conflicts:

	media/libstagefright/ACodec.cpp

httplive/ACodec: Enable smooth streaming

- Use property to enable - hls.enable.smooth.streaming
- Set component in smooth streaming mode by doing a setParameter
  with OMX extension for SS
- Handle Port Reconfig Info event from component
- Whenever resolution changes do update buffer geometry on
  native window

Change-Id: I694d05fe7aba2482f50f31a6e80b646822f15b31

Conflicts:

	media/libstagefright/ACodec.cpp

Conflicts:

	cmds/stagefright/Android.mk
	media/libstagefright/ACodec.cpp
	media/libstagefright/Android.mk
	media/libstagefright/ExtendedExtractor.cpp
	media/libstagefright/colorconversion/Android.mk
	media/libstagefright/colorconversion/ColorConverter.cpp