summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/SurfaceMediaSource.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename ISurfaceTexture and SurfaceTextureAndy McFadden2012-12-181-4/+4
| | | | | | | | | | The C++ class names don't match what the classes do, so rename ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to GLConsumer. Bug 7736700 Change-Id: I64520a55f8c09fe6215382ea361c539a9940cba5
* Optionally have SurfaceMediaSource return absolute timestampsAndreas Huber2012-10-011-0/+5
| | | | | | | based on systemTime(). Change-Id: I2eff15dd149a4b737d6e7473d1907cf0c80b6b38 related-to-bug: 7266706
* Remove double negatives from SurfaceMediaSourceAndreas Huber2012-10-011-2/+2
| | | | | | | ensure mStarted actually reflects the state of SurfaceMediaSource Change-Id: I92557896993ad8da23fe6940e997402ad63b8cbc related-to-bug: 7258622
* Various improvements to a cleaner shutdown of the wifi display connection.Andreas Huber2012-09-281-0/+6
| | | | | Change-Id: Id029a89939e53c2bd1d20e572d3975ec2795c239 related-to-bug: 7247918
* Throttle SurfaceMediaSource.Andreas Huber2012-09-131-0/+6
| | | | Change-Id: I214ce60f8d94df9c07041577e34ed1ad5e199fdb
* Configure the SurfaceMediaSource to emit the same number of buffersAndreas Huber2012-09-041-0/+3
| | | | | | | as the video encoder allocates for its input. Do this before connecting the bufferqueue through surface flinger. Change-Id: Ibc81db1359afe2d88fdb75b23fadae65c8a6f7cc
* SurfaceMediaSource: a few fixes / cleanupsJamie Gennis2012-08-261-6/+3
| | | | | | | | - Remove the setting of mStopped to true in onBuffersReleased - Cleaned up a few function call logs - Removed the 'reset' method. Change-Id: I56bab1d5cb2f3e6d59d54698c2e045d796d1849f
* SurfaceMediaSource: keep refs to current buffersJamie Gennis2012-06-221-12/+6
| | | | | | | | | This change fixes a bug in SurfaceMediaSource where it would not keep a reference to all of the Gralloc buffers that the video encoder is currently using. Bug: 6655597 Change-Id: Ifd99976cc7ae57ed724bbf2bbcff357a39497391
* Refactored SurfaceMediaSourceDaniel Lam2012-04-091-200/+55
| | | | | | | SurfaceMediaSource takes advantage of BufferQueue to avoid duplicated code. Change-Id: I5e60b8eca21e6c3cf728d363cd8f3786125182d1
* reduce IPCs in BufferQueueMathias Agopian2012-03-291-5/+1
| | | | Change-Id: I1f8c32a771a411476d225adc62d1f07c24f39a3e
* Fixed missing return value from a method should have returned status_tJames Dong2012-03-241-1/+1
| | | | Change-Id: I83ad2735eaf8a8dfa5f8f29f30aec1311b3222de
* Don't call virtual function in destructor of SurfaceMediaSourceJames Dong2012-02-061-1/+3
| | | | Change-Id: I3cbc2b1222335b61c814b5cdcfaefa495148b0ec
* Merge "Incr. MIN_UNDEQUEUED_BUFFERS in SurfaceMediaSource"Pannag Sanketi2011-08-311-1/+1
|\
| * Incr. MIN_UNDEQUEUED_BUFFERS in SurfaceMediaSourcePannag Sanketi2011-08-311-1/+1
| | | | | | | | | | | | | | The buffers in SurfaceMediaSource were 4 earlier, whereas we need 5 for one of the devices. Change-Id: I87bf5e28bbb0f7c9661dc01b040baa903d95d2c2
* | Fix SurfaceMediaSource timestamp handling.Eino-Ville Talvala2011-08-301-0/+7
|/ | | | | | | | Was not basing timestamps on startTimeUs. Now synchronizes properly with audio. Bug: 4510826 Change-Id: I613db0aa91e51fc75d120e65540e742d8ab2ae43
* Testing the GL/ CPU encoding w/ Gralloc buffersPannag Sanketi2011-08-241-4/+11
| | | | | | | | | | | | | | | This is the test for Gralloc buffers based encoding. contains a combination of two main changes: 1. GL based encoding tests added to SurfaceMediaSource_test 2. SurfaceMediaSource ::read() colorformat The SurfaceMediaSource::getformat() sets it to OMX_COLOR_FormatAndroidOpaque. The omx encoder needs to interpret that colorformat and reads the format from the Gralloc buffers directly Change-Id: Iee2fe8901384109a4952e1d6c528c59eb01eb5b1
* return correct value from query after connecting a surfaceMathias Agopian2011-08-081-1/+2
| | | | | | | | | | the first time a surface was connected, the values returned by query NATIVE_WINDOW_DEFAULT_{WIDTH|HEIGHT} and NATIVE_WINDOW_TRANSFORM_HINT were wrong until a call to queueBuffer was performed. Bug: 5137366, 5121607 Change-Id: I7ac6b5b0daa876638f6bed7c20f286a6e6d984f6
* Merge "Adding Metadata mode to SurfaceMediaSource"Pannag Sanketi2011-07-251-1/+5
|\
| * Adding Metadata mode to SurfaceMediaSourcePannag Sanketi2011-07-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | SurfaceMediaSource operates in metadata mode only, i.e. just the metadata is stored in videobuffers. SurfaceMediaSource passes the Gralloc buffer handle along with a 4 byte 'type' (indicating that the metadata is of type GrallocSource) to the encoder as opposed to the GrallocBuffer itself. Related to bug id: 4529323 Change-Id: I83aebc0dd10f317658cdf70be5802dfc35a1e72d
* | Merge "Connect MediaRecorder Native to SurfaceMediaSource"Pannag Sanketi2011-07-221-3/+7
|\ \ | |/
| * Connect MediaRecorder Native to SurfaceMediaSourcePannag Sanketi2011-07-221-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Making a connection from MediaRecorder Native layer to the SurfaceMediaSource for the purpose of encoding GL Frames. This will be called from the java side inside the Mobile Filter Framework. The mediarecorder native layer (client), when set the videosource to option VIDEO_SOURCE_FRAMES, asks the StageFrightRecorder on the mediaserver side to create a SurfaceMediaSource object and pass it back as a sp<ISurfaceTexture> object. Using that, the client side will dequeue and queue buffers. Connecting the GL Frames to the obtained sp<ISurfaceTexture> is not part of this CL. Related to bug id: 4529323 Change-Id: I651bec718dd5b935779e7d7a050b841c2d0b0fcd
* | SurfaceTexture: add the abandon method.Jamie Gennis2011-07-221-1/+1
| | | | | | | | | | | | | | | | This change adds the 'abandon' method to the SurfaceTexture C++ class. This method may be used to put the SurfaceTexture in an abandoned state, causing all ISurfaceTexture methods to fail. Change-Id: Ibd261f7b73f44e2bec36a8508bf92113cfb7cf95
* | SurfaceMediaSource: remove getAllocator methodJamie Gennis2011-07-221-7/+0
|/ | | | | | | | This change removes the getAllocator method from SurfaceMediaSource because that method is no longer a part of the ISurfaceTexture interface. Change-Id: I0e2f0bc3bc1c8cd3c1b4b14246f07b9b4e3066c3
* Renaming SurfaceEncoder to SurfaceMediaSourcePannag Sanketi2011-07-211-0/+353
Related to bug id: 4529323 Change-Id: Id820d45a536bd2c65e0a59def564eb5b3ea4a71c