libstagefright: use appropriate hevc decoder on 8916 and 8939

8916 supports HEVC software decoder and 8939 support h/w decoder.
Based on media.swhevccodectype and media.hwhevccodectype properties values
instantiate appropriate HEVC decoder.

Change-Id: Ic3d37e6184db256f4d83bfe74b67271b20f94ec0
libstagefright: HSR: Read framerate from HSR key

- HSR and HFR keys are made mutually exclusive now.
- In case of HSR, HSR key will be set with requested frame rate and
  HFR key is not set.
- In case of HFR, HFR key will be set with requested frame rate and
  HSR key is not set.
- Check
     if video-hfr key is set
        set kKeyHFR with HFR key value passed by camera
     else check video-hsr key, if set
        set kKeyHSR with HSR key value passed by camera

Change-Id: Ic7ad098137812ad78afdc326334fa390404075fc
Merge "libstagefright: use appropriate hevc decoder on 8916 and 8939" into kitkat
Merge "effects: miscellaneous fixes" into kitkat
Merge "libstagefright: Handle INFO_FORMAT_CHANGED for dolby clips" into kitkat
Merge "libstagefright: extend the interface to switch rtp transport" into kitkat
Merge "Support MPEG4 and H263 FourCC types in Matroska files" into kitkat
Merge "stagefright: Fix crash if PCM offload gets a null source" into kitkat
Merge "media: Cleanup some unnecessary old code" into kitkat
Merge "Remove potential cause of underrun." into kitkat
Merge "Revert "libmedia: Add flag for non-native FAST tracks."" into kitkat
Merge "stagefright: Query PCM output format and fix bugs" into kitkat
Merge "libstagefright: Wrapper for FLAC CSIM decoder" into kitkat
Revert "stagefright: Disable HSR for now"

 * Adding support for HSR on new chips.

This reverts commit 23373ed880fc124f20a6ee90e539576ffbfddba8.

Change-Id: I468498e72bae874184bdbb85cbc92c735365b403
Merge "Revert "stagefright: Disable HSR for now"" into kitkat
effects: miscellaneous fixes

fixes of KW issues 8887, 8888

Change-Id: I824daa76d23456fed2c299c59f934d3e2ac78b84
libstagefright: Handle INFO_FORMAT_CHANGED for dolby clips

  -For dolby clips when device is switched from headset to
   BT multiple times, media error is observed, and playback
   stops
  -When end device is changed, s/w Dolby decoder generates
   format change event which in certain condition leads to
   media error and playback stops
  -Make sure format change error is handled in AudioPlayer
   layer

CRs-Fixed: 706801

Change-Id: I3ff3ef84b15ea5f9d3288215c1491dc30d17a413
libstagefright: extend the interface to switch rtp transport

- rtp transport can be changed by setting property "rtsp.
  transport.TCP" and udp is the first choice as
  default. But the property is the global variable and
  affects each instance's behaviour.
  Extend the interface of MyHandler to let each client make
  its own choice. If the client wants to choose tcp first,
  add the string/value "rtp.transport.TCP"/"true" in the headers
  when calling MediaPlayer.setDataSource.

Change-Id: I19b6192da36d5c00e62c9f69de446f366f10c75c
Crs-Fixed: 696569
Support MPEG4 and H263 FourCC types in Matroska files

Handles MPEG4 and H263 content with FourCC header in Matroska files
based on how these are handled in the AVI parser.

Also adding placehoders for DivX.

Change-Id: I38b2c2fd429b6e4810a7b118bf60823d502320ae
stagefright: Fix crash if PCM offload gets a null source

Change-Id: I4db08355fb132288cec2ba99ec4dcb77f1618add