summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Support VP8 encoder key frame interval and number of temporal layers ↵Alex Glaznev2014-04-241-0/+70
|\ | | | | | | configuration."
| * Support VP8 encoder key frame interval and number ofAlex Glaznev2014-04-241-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | temporal layers configuration. - Change ACodec.cpp to populate VP8 extra parameters structure with key frame interval, number of temporal layers and quantization parameters. - Change software VP8 encoder to select frame temporal patterns and temporal layers bitrate distribution based on the number of layers similar to patterns used in WebRTC. - Calculate video frame duration in VP8 encoder from the timestamps. Bug: 11969958 Change-Id: Ia96054d886cd09d8c108dfe250fc5f4478eaa042
* | ACodec: do not signal kWhatShutdownCompleted on codec errorLajos Molnar2014-04-011-4/+12
| | | | | | | | | | | | | | | | | | | | Do not signal kWhatShutdownCompleted when moving to Uninitialized state due to receiving a codec error. Do not abort if error happens just before handling a stop request. Bug: 13675112 Change-Id: I4b14b2e64cff0f71215d2bbc24cd850617dfb67b
* | ACodec: ignore OMX messages to already freed componentLajos Molnar2014-03-281-0/+8
|/ | | | | Bug: 12916984 Change-Id: I92848797b8d556cff468b9b0f0a618946083208f
* am bd1f8f0a: am fb28c384: am 1faa4170: stagefright: allow for ↵Lajos Molnar2014-03-191-3/+4
|\ | | | | | | | | | | | | minUndequeuedBufs to be one less * commit 'bd1f8f0a5cc55761edfbd2a472e229dd4b0d2cdf': stagefright: allow for minUndequeuedBufs to be one less
| * am fb28c384: am 1faa4170: stagefright: allow for minUndequeuedBufs to be one ↵Lajos Molnar2014-03-191-3/+4
| |\ | | | | | | | | | | | | | | | | | | less * commit 'fb28c384316518f699e7dd3e9149c9e84b05a525': stagefright: allow for minUndequeuedBufs to be one less
| | * am 1faa4170: stagefright: allow for minUndequeuedBufs to be one lessLajos Molnar2014-03-191-3/+4
| | |\ | | | | | | | | | | | | | | | | * commit '1faa41704e0b976e546321effcb09a85767d51ba': stagefright: allow for minUndequeuedBufs to be one less
| | | * stagefright: allow for minUndequeuedBufs to be one lessLajos Molnar2014-03-191-3/+4
| | | | | | | | | | | | | | | | | | | | Bug: 13533477 Change-Id: I909324e3e24f65d8051e0d5474267620efcfc729
| * | | am 9cde5172: am b635b0e6: mediaplayer: keep more buffers with the BufferQueueLajos Molnar2014-03-191-21/+26
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '9cde517297827156de1c3b2ff54e272a5d4ae7c3': mediaplayer: keep more buffers with the BufferQueue
| | * | am b635b0e6: mediaplayer: keep more buffers with the BufferQueueLajos Molnar2014-03-191-21/+26
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'b635b0e66b257ab442e230bca96afd5105cf6829': mediaplayer: keep more buffers with the BufferQueue
| | | * mediaplayer: keep more buffers with the BufferQueueLajos Molnar2014-03-191-21/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change OMX buffer allocation policy to allocate nBufferCountMin + what is required for the BQ. For the BQ, try to allocate 2 additional buffers than the minimum undequeued count. Also account for the fact that BQ may return one less than the actual minimum undequeued count. In most cases the resulting number of buffers ends up being the same as with the previous policy, but we keep more buffers with the BQ. Change-Id: I826db8bf7dd333b620299dba60bf1b81b228275d Bug: 13170236
| * | | am a671f943: am c69bc40a: Merge "Cap pts gap between adjacent frames to ↵Chong Zhang2014-03-131-1/+21
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | specified value" into klp-dev * commit 'a671f943b72155460f0c94cdd92d829cb059b571': Cap pts gap between adjacent frames to specified value
| | * | am c69bc40a: Merge "Cap pts gap between adjacent frames to specified value" ↵Chong Zhang2014-03-131-1/+21
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | into klp-dev * commit 'c69bc40a347c411751cb082b3eb4a82d976a68ec': Cap pts gap between adjacent frames to specified value
| | | * Cap pts gap between adjacent frames to specified valueChong Zhang2014-03-111-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - In the scenario of cast mirroring, encoding could be suspended for prolonged periods. Limiting the pts gap to workaround the problem where encoder's rate control logic produces huge frames after a long period of suspension. - Repeat last frame a couple more times to get better quality on static scenes. - Fix the timestamp on repeat frames (it was not set) Bug: 11971963 Change-Id: I1d68ab3d269874bf3921aa429a985c5f63e428c7 (cherry picked from commit 94ee4b708acfa941581160b267afb79192b1d816)
| * | | am 72d09f62: am 2613347d: Merge "Added support to query ACodec whether ↵Lajos Molnar2014-03-071-0/+5
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | adaptive playback is enabled." into klp-dev * commit '72d09f6280cd701e48922a86df0d2e5f4e61cd8e': Added support to query ACodec whether adaptive playback is enabled.
| | * | am 2613347d: Merge "Added support to query ACodec whether adaptive playback ↵Lajos Molnar2014-03-071-0/+5
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | is enabled." into klp-dev * commit '2613347d74c3f35bc6fda5df1c29c1119c22d432': Added support to query ACodec whether adaptive playback is enabled.
| | | * Added support to query ACodec whether adaptive playback is enabled.Robert Shih2014-03-061-0/+5
| | | | | | | | | | | | | | | | | | | | Bug: 11854054 Change-Id: I6b0308aa8550c643706959277e46dad586c37297
| * | | am 4dbd814d: am 2338782d: Merge "Fixed misplaced bracket for switch-case ↵Lajos Molnar2014-03-071-4/+4
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | block." into klp-dev * commit '4dbd814de3a3bc95ca3fe39be2400418e7a05602': Fixed misplaced bracket for switch-case block.
| | * | am 2338782d: Merge "Fixed misplaced bracket for switch-case block." into klp-devLajos Molnar2014-03-071-4/+4
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '2338782d18d9bcc8197c63dbf205332a2a737440': Fixed misplaced bracket for switch-case block.
| | | * Fixed misplaced bracket for switch-case block.Robert Shih2014-03-061-4/+4
| | | | | | | | | | | | | | | | | | | | Bug: 11854054 Change-Id: I66b410e1e19601ad65d8357bda4c0c58e2dc15dc
| * | | am 90903383: [DO NOT MERGE] Support AC3 in stagefrightChangwan Ryu2014-02-041-1/+70
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '9090338367bd9f3fc5678032332a44d457a4a2fe': [DO NOT MERGE] Support AC3 in stagefright
| | * | [DO NOT MERGE] Support AC3 in stagefrightChangwan Ryu2014-02-031-1/+70
| | | | | | | | | | | | | | | | Change-Id: I12016b424bd069413bd6e380ff11484e175e05f3
* | | | Merge changes I1455bfc6,I90c7e34b,I06e001dfLajos Molnar2014-03-141-78/+152
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: NuPlayer: use MediaCodec instead of ACodec MediaCodec: add getInputFormat() method Revert "NuPlayer: Use a software renderer when using software codecs"
| * | | | MediaCodec: add getInputFormat() methodLajos Molnar2014-03-101-78/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additional input-port format item: int32: "adaptive-playback" video decoders only whether codec is configured for adaptive playback. In this case, if codec has max-width/height limits, those limits are also exposed (int32: "max-width", "max-height") Also, getInput/OutputFormat() is now callable in CONFIGURED and STARTING states, although output format may be missing CSD fields until INFO_OUTPUT_FORMAT_CHANGED message. Includes missing OMX support for MP3 software decoder. Bug: 11785204 Change-Id: I90c7e34ba81c7b81c43641599f3f496e838958c6
* | | | | mediaplayer: keep more buffers with the BufferQueueLajos Molnar2014-03-111-21/+26
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change OMX buffer allocation policy to allocate nBufferCountMin + what is required for the BQ. For the BQ, try to allocate 2 additional buffers than the minimum undequeued count. Also account for the fact that BQ may return one less than the actual minimum undequeued count. In most cases the resulting number of buffers ends up being the same as with the previous policy, but we keep more buffers with the BQ. Change-Id: I826db8bf7dd333b620299dba60bf1b81b228275d Bug: 12080418
* | | | Merge "Opus Matroska support in OpenMax"Lajos Molnar2014-03-041-0/+2
|\ \ \ \
| * | | | Opus Matroska support in OpenMaxVignesh Venkatasubramanian2014-03-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding Openmax component for libopus software decoder. This can decode opus audio files embedded in matroska containers. Change-Id: I7e0691cfc6d719c4e927b9efbd05a3143be49abc Note: This CL is part of adding Opus support to Android.
* | | | | Merge "support for time lapse/slow motion when using SURFACE source"Chong Zhang2014-02-221-5/+31
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | support for time lapse/slow motion when using SURFACE sourceChong Zhang2014-02-141-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 13032650 Change-Id: Iecbadf9f29c8c49353416fc467fb3acdde279595
* | | | | fix the build by fixing more warnings.Andreas Huber2014-02-111-5/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: Ied0ec39eb83b101582702d1e30c21643ccf6353e
* | | | | warnings be gone.Andreas Huber2014-02-111-1/+1
|/ / / / | | | | | | | | | | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* | | | Change StagefrightRecorder to use MediaCodecChong Zhang2014-02-051-1/+42
| | | | | | | | | | | | | | | | | | | | Bug: 12305192 Change-Id: I72d7cb571be5bd348b58ad650f3269d24c15d350
* | | | Merge "Added support to query ACodec whether adaptive playback is enabled."Robert Shih2014-02-031-0/+5
|\ \ \ \
| * | | | Added support to query ACodec whether adaptive playback is enabled.Robert Shih2014-01-291-0/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I6b0308aa8550c643706959277e46dad586c37297
* | | | | Merge "Fixed misplaced bracket for switch-case block."Robert Shih2014-02-031-4/+4
|\ \ \ \ \ | |/ / / /
| * | | | Fixed misplaced bracket for switch-case block.Robert Shih2014-01-241-4/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I66b410e1e19601ad65d8357bda4c0c58e2dc15dc
* | | | | am 324d9157: am 5db1e3a6: Merge "correct one logic error in decide whether ↵Lajos Molnar2014-02-031-1/+1
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | should render or not" * commit '324d9157a30f85fb12afa56b2230663ccdd61ced': correct one logic error in decide whether should render or not
| * | | | am 5db1e3a6: Merge "correct one logic error in decide whether should render ↵Lajos Molnar2014-02-031-1/+1
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | or not" * commit '5db1e3a6f30c252ed61461dd8c58786e905e5f5a': correct one logic error in decide whether should render or not
| | * | | correct one logic error in decide whether should render or notJianzheng Zhou2014-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie41663f6fd5a7d983279f14a2228cb57231771bf Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
| * | | | Support for MPEG2 videoChangwan Ryu2014-01-211-0/+2
| | |_|/ | |/| | | | | | | | | | Change-Id: If1f4e20939c96c87c65c84d56e529501facb8597 (cherry picked from commit 774eb18c40c3a7da0bc1636a9779f02315ddbad8)
* | | | Cap pts gap between adjacent frames to specified valueChong Zhang2014-01-301-1/+21
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - In the scenario of cast mirroring, encoding could be suspended for prolonged periods. Limiting the pts gap to workaround the problem where encoder's rate control logic produces huge frames after a long period of suspension. - Repeat last frame a couple more times to get better quality on static scenes. - Fix the timestamp on repeat frames (it was not set) Bug: 11971963 Change-Id: I1d68ab3d269874bf3921aa429a985c5f63e428c7
* | | Only send a format change if the buffer has dataMarco Nelissen2013-11-201-1/+1
| | | | | | | | | | | | | | | b/11696552 Change-Id: I31aba6e01a7b4d288f4d85d9e2ddec0aac1c2d1f
* | | am 72afcd5d: am 5ea5b020: Merge "WA: Queue extra buffers on output port ↵Lajos Molnar2013-11-181-0/+28
|\ \ \ | |/ / | | | | | | | | | | | | | | | during reconfig if input EOS-ed" into klp-dev * commit '72afcd5da296b1f5fb38ef037054855aaea88054': WA: Queue extra buffers on output port during reconfig if input EOS-ed
| * | WA: Queue extra buffers on output port during reconfig if input EOS-edLajos Molnar2013-11-141-0/+28
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Some codecs may return input buffers before having them processed. This causes a halt if we already signaled an EOS on the input port. For now keep submitting output meta buffers one at a time if the input EOS-ed, but the output not yet. Normally, we submit an output buffer for each input buffer that is with the component (waiting to be processed). Change-Id: I8a1251bfb504f40f1e4085a1e220bf9a4d0b05d9 Signed-off-by: Lajos Molnar <lajos@google.com> Bug: 11433909
* | am db50cb5f: am caee8747: Merge "configure bitrate and bitrate mode at ↵Andreas Huber2013-11-111-0/+16
|\ \ | |/ | | | | | | | | | | encoder initialization for VP8/9" into klp-dev * commit 'db50cb5f7ae6d2beacd8a4fa4a8991035b3c88e7': configure bitrate and bitrate mode at encoder initialization for VP8/9
| * Merge "configure bitrate and bitrate mode at encoder initialization for ↵Andreas Huber2013-11-121-0/+16
| |\ | | | | | | | | | VP8/9" into klp-dev
| | * configure bitrate and bitrate mode at encoder initialization for VP8/9Andreas Huber2013-11-051-0/+16
| | | | | | | | | | | | | | | Change-Id: I0389264db4102cabb0c6fcb4ca223d85cc9e86fb related-to-bug: 11536167
* | | Merge "Support AC3 in stagefright"Changwan Ryu2013-11-061-1/+70
|\ \ \
| * | | Support AC3 in stagefrightChangwan Ryu2013-11-061-1/+70
| | | | | | | | | | | | | | | | Change-Id: I12016b424bd069413bd6e380ff11484e175e05f3
* | | | am 2922d230: am 065789f2: Merge "Restore NuPlayer error and EOS handling" ↵Lajos Molnar2013-11-041-3/+8
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | into klp-dev * commit '2922d230155cb1be7acc0c11bef6f0ca0345bdb7': Restore NuPlayer error and EOS handling