Remove opaque check in GLRenderer when preparing dirty region.

Since preserved swap is enabled, we need to clear the color buffer
when the scissor rect is prepared for a new process. This prevents
garbage to be present from the previous process in the color buffer

Change-Id: I72b7154c52affecfd6bf50889062b1769042d5d9
CRs-Fixed: 320345
SurfaceTexture: Avoid binding texture if format not supported in GPU HW

Certain formats may not be supported in GPU HW. For them, avoid binding
textures. When the textures created from surface flinger, they may not
be needed if we are not using GPU composition.

Change-Id: I3eda6aa419dcef3d19f844d620d4c89236a6a714
Fix 'Avoid Binding Texture' logic in SurfaceTexture & SurfaceFlinger

Change-Id: I32de5ddb77e339b3749379804233c0772d29c983
SurfaceFlinger: Set the buffer size in the GraphicBufferAlloc

When setting the buffer size, store the required size, and allocate
the buffer of the required size in GraphicBufferAlloc, instead of
SurfaceTexture. We do this because SurfaceTexture does not always
run in the server process space. GraphicBufferAlloc always runs in the
server process.

Change-Id: I53661d8a9a27f9974837f2ed2fe13facf8dd8d9c
framework/base: Change to enable mm-parser.

- mm-parser related enums are added in framework
- adding ExtendedExtractor module to plug-in mm-parser with framework
- adding MIME type that are supported by mm-parser

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: I06b330275605a84668c6690570805892eb2b17d0
Signed-off-by: Evan McClain <aeroevan@gmail.com>
framework/base: Add customized parameters for camera features.

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: Id39c71976823ad18627f1e14d1b5e2fd0597c82e
Signed-off-by: Evan McClain <aeroevan@gmail.com>
stagefright: Additional types for Colorconvertor

- Define structure and enums to be used by stagefright
  to interact with mm-color-convertor library

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: If2a01e3255b8e108f4559e016f31e6195976476a
Signed-off-by: Evan McClain <aeroevan@gmail.com>
libstagefright: Initial commit for video

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: I6586f3d29524ba031d8c814abdfbb47bb7e5bfda

Conflicts:

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

Signed-off-by: Evan McClain <aeroevan@gmail.com>
frameworks/base: Enabling mmparser for AVI, ASF, QCP, AAC formats

- Add support in MediaScanner for AVI, DIVX
- Add new mime definitions for AVI, DIVX, WMA, WMV, AAC, QCP, AC3, DIVX311
- Add Extended Extractor, register new sniffers
- Enable DIVX, VC1, WMA, QCELP components in OMXCodec

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: Ie92c8a95f513bc9b915a46144adb603d03d1fa18

Conflicts:

	include/media/stagefright/OMXCodec.h
	media/libstagefright/Android.mk
	media/libstagefright/OMXCodec.cpp

Conflicts:

	include/media/stagefright/OMXCodec.h
	media/libstagefright/DataSource.cpp
	media/libstagefright/OMXCodec.cpp
	media/libstagefright/StagefrightMediaScanner.cpp

Signed-off-by: Evan McClain <aeroevan@gmail.com>
libstagefright: Framework changes for video bringup

 -Modified the makefile to define the correct macros depending on the target.
 -Added changes to select the proper video output color format for each target using
the macros defined in the makefile.
 -Modified the thumbnail generation logic to select HW decoders for supported targets.

Patchset 1: Add QCOM_HARDWARE ifdefs and rename TARGET_BOARD stuff.

Change-Id: Ia034fb025c116a79937e70101e93fcc478898e8a

Conflicts:

	media/libstagefright/Android.mk

Signed-off-by: Evan McClain <aeroevan@gmail.com>
Camera: Add mode in Framework Structure

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: Ia6f983a998b6ab543d335f2e4e2ab18af97f53fe
Signed-off-by: Evan McClain <aeroevan@gmail.com>
frameworks/base - suspend implementation for video playback

- suspend( ) API is not supported in MediaPlayer.
- On suspend, save current position and seek to the saved
  position when playback is resumed.

Change-Id: I62f79a2984d57841bdbdbe918a38d01d623c0a2b
CRs-Fixed: 281944
libstagefright: Initial commit for Camcorder bringup

- Memcpy mode for camcorder bringup

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: I2d63c8c643bc2d7a278f4dff7e58d768b9ad4171
Signed-off-by: Evan McClain <aeroevan@gmail.com>
camcorder: disable audio temporarily.

- set property camcorder.debug.disableaudio 1 to disable audio encode

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: I33b6ba1cfc45c83f7779ae1abe3fddb4631a309e
Signed-off-by: Evan McClain <aeroevan@gmail.com>
libmedia: Update media profile cap for video codecs

- Update H.263, MPEG4 and H.264 profile caps
- Changes made to max width, height, bitrate and fps

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: I0d50221a9e38a45fcccb70b7455412abe9a7a48b
Signed-off-by: Evan McClain <aeroevan@gmail.com>
frameworks/base: Add support for QCELP/EVRC non-tunnel encoding in SF

Add support for QCELP and EVRC formats non-tunnel mode encoding
in StageFright using hardware accelerated encoders.

Patchset 1: Add QCOM_HARDWARE ifdefs.
Patchset 2: Fix ifdef derp.

Change-Id: I179030d71a9598ddddcf754e963fbed1e1357024

Conflicts:

	media/libstagefright/Android.mk
	media/libstagefright/OMXCodec.cpp

Signed-off-by: Evan McClain <aeroevan@gmail.com>
libstagefright: Ignore other sniffers if current sniffer returns positive confidence

-MP3 sniffer functions takes around 400ms for the playback
of most of the clips.
-This was causing a startup delay of 1.5 seconds on playback
-Increasing the value of confidence for amr,wav,ogg,mpeg4 formats
to 0.6 so that when they are detected, we ignore the sniffMP3
function.

Change-Id: I08acf28a63c8ae7b1b69e03f85fa9065a52c649e
libstagefright: Enable hardware decoder for mp3

Enable hardware decoder for mp3 audio format

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: I8c4fcc14dbfa5748db5ba9e93b1dc16565abee5f
Signed-off-by: Evan McClain <aeroevan@gmail.com>
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.

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: Ie7e902c0cd56e7aec17d0ac67d2869a7819770cd

Conflicts:

	media/libstagefright/ACodec.cpp

Signed-off-by: Evan McClain <aeroevan@gmail.com>
libstagefright: Changes to support NV21 pixel format Video buffer

-video component returns NV21 color format on qdsp5 targets and it is
mapped to correct HAL Pixed format.

Patchset 1: Add QCOM_HARDWARE ifdefs.

Change-Id: I6b427a2e8b498103ea6c428b62112e8ce1517b2c

Conflicts:

	media/libstagefright/OMXCodec.cpp

Signed-off-by: Evan McClain <aeroevan@gmail.com>