summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MediaCodec.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Allow ALooper::awaitResponse to return immediately if the looper is stopped.Ronghua Wu2015-10-221-1/+6
| | | | | Bug: 25088488 Change-Id: I63e69886a8e9cffcaad675ca1a5642c0abf3b466
* libstagefright: don't reclaim codec when there's buffer ownedRonghua Wu2015-10-051-1/+41
| | | | | | | | | by client. Notify the client and try to reclaim again in 0.5s. Bug: 23703241 Bug: 23949540 Change-Id: I1afe50c71635645668bfb73ffa0d801765b5ae3c
* libstagefright: Do not add audio codecs to resource manager. They are too ↵Ronghua Wu2015-09-101-2/+5
| | | | | | | small anyhow. Bug: 23703241 Change-Id: I3c2882a1d6736bb8a4099289d8bab4974343586d
* libmediaplayerservice: propagate caller pid to MediaCodec.Ronghua Wu2015-07-211-8/+11
| | | | | Bug: 22630317 Change-Id: I0337d74f4ef04bf96f2de83f33d98d0d7da47c12
* Merge "fix soft renderer rotation" into mnc-devChong Zhang2015-07-181-1/+5
|\
| * fix soft renderer rotationChong Zhang2015-07-171-1/+5
| | | | | | | | | | bug: 13222807 Change-Id: I6f6f417422d3a18117b594670bb23e3019d449bb
* | mediaresourcemanager: add pid to removeResource methodRonghua Wu2015-07-171-14/+10
|/ | | | | Bug: 22496209 Change-Id: I73311573e8d1ac15fec668a9ef6e6af7a07a1d30
* nuplayer: use codec->setSurface when possible to avoid seekingLajos Molnar2015-07-131-0/+1
| | | | | Bug: 22414719 Change-Id: I0442e12af960f86a0fc090b4a469c62ba638a1a0
* stagefright: prevent allocating stale buffers for OMX decodersLajos Molnar2015-07-011-1/+21
| | | | | | | | | Also fix some issues encountered once using generationNumbers: - properly account outstanding buffers in MediaSync - don't release arbitrary frame if attach fails Bug: 11990461 Change-Id: Icee5ea188ca4eb856138feb5e6ec5d4ee5e44008
* MediaCodec: handle a spontaneous error while configuringAndy Hung2015-06-161-0/+6
| | | | | | | | | | Allow the INITIALIZED and UNINITIALIZED state to prevent a CHECK() from aborting the thread. This state flexibility makes the handling for kWhatComponentConfigured similar to kWhatFlushCompleted. Bug: 21840990 Change-Id: I57e08cfb146b0b9a355061e4f9ffbe176f213cf6
* stagefright: use media timestamp for default render timestampLajos Molnar2015-06-121-10/+4
| | | | | Bug: 21814308 Change-Id: I897bc4878c0b3a758d630e9c117b746ef7e55146
* stagefright: add support for output frame rendered callbackLajos Molnar2015-06-091-9/+64
| | | | | | | | | | | - Added FRAME_RENDERED event in OMX, used by tunneled video decoders to signal rendered event timing - Track buffers sent for rendering in ACodec and in SoftwareRenderer, and determine when they have rendered - Propagate render times to MediaCodec Bug: 20503131 Change-Id: Idf0a8714d5368b237c2285dd39fa82db847c232f
* Merge "Track camera and flashlight usage in battery stats." into mnc-devRuben Brunk2015-06-021-129/+1
|\
| * Track camera and flashlight usage in battery stats.Ruben Brunk2015-06-011-129/+1
| | | | | | | | | | | | Bug: 15986092 Change-Id: I9dc6828332e4091fd93bf2d82839e8e3862a2fc2
* | stagefright: measure max encoder buffer count for persistent surfaceChong Zhang2015-05-211-0/+30
|/ | | | | | bug: 19127604 Change-Id: I9a9b29b527d20f43a5a0188380baf2242bd31507
* Merge "stagefright: rename usePersistentInputSurface to setInputSurface" ↵Chong Zhang2015-05-131-5/+5
|\ | | | | | | into mnc-dev
| * stagefright: rename usePersistentInputSurface to setInputSurfaceChong Zhang2015-05-131-5/+5
| | | | | | | | | | | | | | | | and clear persistent surface pointer when MediaRecorder is reset bug: 21045118 bug: 21045402 Change-Id: Ifd0d6deeb969f2252123929541b30b518cecbf9a
* | libstagefright: report special error when codec is released by resource manager.Ronghua Wu2015-05-081-12/+44
|/ | | | | Bug: 19620911 Change-Id: I3403da361adbf2ea6979fcadb0d5ad0889d3513e
* stagefright: support push-blank-buffers-on-shutdown for SW rendererLajos Molnar2015-05-071-0/+14
| | | | | Bug: 20885565 Change-Id: I2a361b8dd6d39d2cf994f6748ed562be4c642b77
* Merge "stagefright: add support for dynamically setting MediaCodec output ↵Lajos Molnar2015-05-021-22/+93
|\ | | | | | | surface" into mnc-dev
| * stagefright: add support for dynamically setting MediaCodec output surfaceLajos Molnar2015-05-011-22/+93
| | | | | | | | | | Bug: 11990461 Change-Id: I2aee89ef504234dc66eb5fcf6e62e1706088f758
* | MediaCodec: implement persistent input surface APIsChong Zhang2015-05-011-2/+57
|/ | | | | | | Bug: 19127604 Bug: 19489395 Change-Id: Idaf1cc9008016f66903e93907a676f54e342e1a3
* stagefright: MediaCodec: rename mNativeWindow to mSurfaceLajos Molnar2015-05-011-21/+15
| | | | | | | because mNativeWindow is of type sp<Surface> Bug: 19489395 Change-Id: I5ddc78b04e387915a2293b71195d7a6494986356
* stagefright: remove NativeWindowWrapperLajos Molnar2015-04-301-9/+2
| | | | | | | | Now that Surface and SurfaceTextureClient are the same and Surface, it does not add value. Bug: 19489395 Change-Id: I016ecd1cf5cc51ce6244b6fa34ecd75f84e3db01
* Omx: Return an error if no IOMX is availableAndy Hung2015-04-291-0/+4
| | | | | | | Previously caused fatal crash. Bug: 20566134 Change-Id: I9761d043422954615dbe81b301401765146a7283
* DO NOT MERGE libmedia: add sub resource type audio-codec and video-codec.Ronghua Wu2015-04-271-7/+16
| | | | | | Bug: 20559813 Change-Id: If231cb44337ca7dc74c39fc3cd73e2b6f3cb85b8 (cherry picked from commit d4c1f6b4ecfef7323422359fc38bd1edb1abf205)
* Merge "mediaresourcemanager: add dumpsys support."Ronghua Wu2015-04-241-0/+15
|\
| * mediaresourcemanager: add dumpsys support.Ronghua Wu2015-04-231-0/+15
| | | | | | | | | | Bug: 20233206 Change-Id: Ic253985e408b05b488e87cd5c50c0d619ac568ef
* | MediaCodec: ignore error when linkToDeath to batterystatsChong Zhang2015-04-241-8/+5
|/ | | | | bug: 20071299 Change-Id: I932b40e46312db467fe88f8ff6cea028b63785cd
* Merge "media: ignore the result of linkToDeath, which can fail if called ↵Ronghua Wu2015-04-201-5/+1
|\ | | | | | | from same process."
| * media: ignore the result of linkToDeath, which can fail if called from same ↵Ronghua Wu2015-04-201-5/+1
| | | | | | | | | | | | | | process. Bug: 19620911 Change-Id: I6a25ed1ef1b2790d0976943ec129f31972e27714
* | stagefright: warnings be gone, some are now errors, use clangLajos Molnar2015-04-171-2/+2
| | | | | | | | Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
* | MediaCodec: hold input buffers during FLUSHED stateChong Zhang2015-04-161-2/+11
|/ | | | | bug: 20267388 Change-Id: I21a12cb2ebb74e17dcdb7b502c3f674e9e64b5dc
* media: use ResourceManagerService with MediaCodecRonghua Wu2015-04-141-25/+234
| | | | | Bug: 19620911 Change-Id: I235a97e5195b28645b7834dda0dd77307d93f4a8
* Merge "MediaCodec: add DeathNotifier to BatteryNotifier"Chong Zhang2015-04-131-10/+74
|\
| * MediaCodec: add DeathNotifier to BatteryNotifierChong Zhang2015-04-101-10/+74
| | | | | | | | | | | | | | | | make the battery notifier more robust bug: 20071299 Change-Id: I0ecfecc787c88ace26dba5e235aa0c345bcace6d
* | mediaplayer: support async mode for widevine legacy modeLajos Molnar2015-04-101-1/+15
|/ | | | | Bug: 14679336 Change-Id: Id224eb8c31ec148ca9a144758cc56ddbf5465f5c
* Pass crypto source data using a shared bufferJeff Tinker2015-04-081-2/+18
| | | | | | | | | | | | | MediaCodec was using a binder transaction buffer to pass encryption source data for protected content. On some 4K content, the max binder transaction buffer size was being exceeded. This change uses a shared buffer for the encryption source data instead of a binder transaction buffer, which avoids the problem and may be more efficient. bug: 20027687 Change-Id: I36a24ebf600d7e1064b78e48b167fdc29b2c65e9
* stagefright: don't use ALooperRoster mutex for reply handlingLajos Molnar2015-03-101-19/+19
| | | | | | | | Change replyID-s from uint32_t to an object Move reply handling into the loopers (to reuse a common mutex) Bug: 19607784 Change-Id: Iaa035b846c424c5687ed17ce1079b325e86c54be
* media: switch to new AMessage handlingLajos Molnar2015-03-051-28/+28
| | | | | Bug: 19607784 Change-Id: I94cddcb81f671422ad4982a23dc4acfe57a9f1aa
* am e5760862: am bcd22f0f: am 0662f5b0: Merge "stagefright: add fallback for ↵Lajos Molnar2015-02-061-3/+8
|\ | | | | | | | | | | | | native flex-YUV support" into lmp-mr1-dev * commit 'e576086224f6e630159eaeec59ab5146c8533dc7': stagefright: add fallback for native flex-YUV support
| * am bcd22f0f: am 0662f5b0: Merge "stagefright: add fallback for native ↵Lajos Molnar2015-02-061-3/+8
| |\ | | | | | | | | | | | | | | | | | | flex-YUV support" into lmp-mr1-dev * commit 'bcd22f0f3a4cd5f78e03af23aafadb2d1aec6794': stagefright: add fallback for native flex-YUV support
| | * stagefright: add fallback for native flex-YUV supportLajos Molnar2015-02-041-3/+8
| | | | | | | | | | | | | | | | | | | | | Use software renderer if codec cannot support flex-YUV on a surface Bug: 17906609 Change-Id: I3d0e3ff5fee7d7b3e2416892968fa18f6139598a
* | | am e91c3dd0: am 6a025acb: am ec0472ba: Merge "Move AString\'s StringPrintf ↵Elliott Hughes2015-02-041-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | out of the way." * commit 'e91c3dd028c6cf551e905c5d2cfb5d1fc0c8bcb7': Move AString's StringPrintf out of the way.
| * | am 6a025acb: am ec0472ba: Merge "Move AString\'s StringPrintf out of the way."Elliott Hughes2015-02-041-2/+2
| |\ \ | | |/ | |/| | | | | | | * commit '6a025acb630a3ac4a84715d188aeb48f1946bc3f': Move AString's StringPrintf out of the way.
| | * Move AString's StringPrintf out of the way.Elliott Hughes2015-02-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | We should come back and replace AString with std::string and switch to the "real" StringPrintf family, but this fixes the ODR violation that was preventing us from booting. Bug: 19265750 Change-Id: I798eb9ca5dd634e44625af5e583439ef9f0cdc35
* | | am 644afb88: am 9fc2f470: am 8140a2b7: stagefright: report crop rectangle as ↵Lajos Molnar2015-01-071-5/+7
|\ \ \ | |/ / | | | | | | | | | | | | | | | codec resolution if exists * commit '644afb88421ac0e71d526f9b6726404a90c7cccd': stagefright: report crop rectangle as codec resolution if exists
| * | stagefright: report crop rectangle as codec resolution if existsLajos Molnar2015-01-061-5/+7
| | | | | | | | | | | | | | | Bug: 18789054 Change-Id: I08b82a400541b5e09580801473c34ce56bfef5db
* | | am b438123f: am 9574c274: am 5d2c5fcb: Merge "MediaCodec: resume codec if ↵Chong Zhang2014-11-261-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | state is FLUSHED in async mode" into lmp-mr1-dev * commit 'b438123fb1ee0a8c232fd66de658d5382d2083cf': MediaCodec: resume codec if state is FLUSHED in async mode
| * | MediaCodec: resume codec if state is FLUSHED in async modeChong Zhang2014-11-261-0/+2
| | | | | | | | | | | | | | | | | | bug: 18513091 Change-Id: I192625c61834584f711de76db788c2c0332ae774