libstagefright: Enable encode and decode with composition offsets

- Add setprop to enable b-frame encoding
- Setup AVC and MPEG4 encoder parameters for b-frame encoding
- Wait for minimum required buffers if b-frame encoding is
  selected for timelapse recording
- Allow decoding clips with ctts version 1

CRs-Fixed: 380462
(cherry picked from commit 00be58dbeba1adb762b1e17cc3b216c07108343b)

Conflicts:

	include/media/stagefright/OMXCodec.h
	media/libmediaplayerservice/StagefrightRecorder.cpp
	media/libstagefright/OMXCodec.cpp

Change-Id: I5207d99ca3608c5e8bc379d400646c46c2edc0da
Merge "libstagefright: Enable encode and decode with composition offsets"
libstagefright: Convert mono to stereo for LPA clips

- Sound effects are not supported for mono clips
- Repetative calling of effects_configure and effect_process for
  mono clips is resulting in crash in the sound effects library.
- So, Mono clips are now converted to stereo by copying the left
  sample to right.
- This is same as what Resampler does in Non-LPA Playback.

Change-Id: I789cd33ea1bc5b8f2a0d69b3b5ae55adb3b79cd1
CRs-Fixed: 446016
Merge "libstagefright: Convert mono to stereo for LPA clips"
framework/av:: Add support to decode mp3 data in mp4 container

- Added support to decode mp3 data in mp4 container packed as mp4a
  atom and .mp3 atom as well.

(cherry picked from commit 8fa3774adf9259b33ee721cfaeff26da42c29928)

Change-Id: I3f13c39894263fbf6e366a7e51055934a2515e9e

Conflicts:

	media/libstagefright/MPEG4Extractor.cpp
Merge "framework/av:: Add support to decode mp3 data in mp4 container"