| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
https://github.com/CyanogenMod/android_frameworks_av into replicant-6.0
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
Android 6.0.1 release 13
Ticket: CYNGNOS-1522
Change-Id: Ie9d7be6df3e63138bafb892a3181446e3c7d844e
|
| | |
| | |
| | |
| | |
| | |
| | | |
b/25800375
Change-Id: I03c9395f7c7de4ac5813a1207452aac57aa39484
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
SoftMPEG4Encoder and SoftVPXEncoder.
Bug: 25812794
Change-Id: I96dc74734380d462583f6efa33d09946f9532809
(cherry picked from commit 87f8cbb223ee516803dbb99699320c2484cbf3ba)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add tones to the ToneGenerator that are
to be used for Local Hold Recall.
Change-Id: I92cc1d63a3f6d38fc224774909b5b27d58be969c
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This was returning ERROR_MALFORMED, which is a negative value,
since the function prototype returns size_t, it would be converted
to somewhere near 2**32 and would never fall into the actual error
checking clause in AVUtils::HEVCMuxer::makeHEVCCodecSpecificData.
Fixes android.mediastress.cts.HEVCR1080pAacLongPlayerTest#testPlay00
Ticket: CYNGNOS-1683
Change-Id: I13e6a76cb0ee4a6b730e1eb1023320b74a0539c7
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit b5ccf81c19a7e9ce9b330abe734f1bae76d50796.
That patch breaks "High Speed 60 FPS"
and it fails in CameraSource::checkFrameRate
which it compares the preview frame rate:
Failed to set preview frame rate to 30 fps. The actual frame rate is 60.
SAMBAR-1261
Change-Id: I6adf1432bf901e8ba37b1b86621e117e77cbf853
|
| | |
| | |
| | |
| | | |
Change-Id: If0cc81468ab7ee8fa0ec374a9f23e4004e7cb212
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
-AV sync is lost after multiple pasue/resume operatins.
-Renderer does not update anchor time post resume and it may
lead to AV sync loss after multiple pause/resume in offload
playback case.
-Get renderer position and update anchor time post resume
for offload audio
Change-Id: I2d9ba21c0e9b193ec77213de12229407cbf8dfd6
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Audio buffer filling in renderer is still happening, though pause was
issued. As a result, EOS was reported irrespective of renderer state.
If nuplayer driver receives playback complete after stopped, it will
again be activated, which appears stop is not taking effect.
Add a check for driver state to allow looping only if it was in running
state.
Change-Id: Ic9f8eac635a774cd805b3978fab640d73ae35744
CRs-Fixed: 958311
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In setupNativeWindowSizeFormatAndUsage, set the crop rectangle
with the output port's crop value.
Change-Id: I415be069d02d88dcd6b7c2460dda6df191ee7434
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In case of EOS or ERROR from source, correct the status flag and
clear the input index to continue to wait for output buffer from decoder.
This is to fix thumbnail generation failure for some clips with one frame.
CRs-Fixed: 951250
Change-Id: If9889dbcc32bf49368add408a317da026879fec8
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Random memcmp crash happens while checking for image-data in
output format of audio buffer.Audio output format gets updated with
pcm-format flag after codec formatchange in ExtendedNuUtils.
Simultaneous memory check happens for image-data in FBD of MediaCodec.
So crash happens.
Avoid checking for image-data and crop information for audio buffers.
Change-Id: I85ffcb149dc67a0f1bdb26116245627b1843d932
|
|\ \ \
| |/ /
| | |
| | | |
https://github.com/CyanogenMod/android_frameworks_av into replicant-6.0
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* In case a device has a /vendor partition which cannot be
modified, this allows us to short-circuit the audio_effects.conf
file which might be placed there with one of our own which
lives on /system.
Change-Id: Ief87bd4cfba2c3188b0dff122d91f773b7f3d92d
|
| | |
| | |
| | |
| | | |
Change-Id: I631ba6267b3769d9da498329a39ac89c609be6d8
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The output from gcc before and after this change,
and from llvm are identical, except the ADRL to ADR change.
In this case, old "ADRL r8, Table" is translated into
add r8, pc, #1184 ; 0x4a0
nop ; (mov r0, r0)
and new "ADR r8, Table; NOP" is translated into equivalent:
add r8, pc, #1184 ; 0x4a0
nop {0}
BUG: 21169627
Change-Id: I64130e99f6506494b9c4a6e0f1f850491d481242
|
| | |
| | |
| | |
| | |
| | |
| | | |
This got dropped in a previous merge.
Change-Id: Ic5ec1f6662944deee32e740697fc55774c894033
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This condition check will only pass when compile for 32bit platform.
It will not pass when generate the 32bit binary or libarary for 64bit platform.
update it with variants like LOCAL_SRC_FILES_arm to make it used by
32bit binary or library on 64biy platform as well
Change-Id: Ia887610a97c68fa58925d2d86c5eb29cb397d6ef
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Remove useless stab debug info directives .func and .endfunc,
which are not recognized by clang/llvm integrated assembler.
* Replace require8 with REQUIRE8, preserve8 with PRESERVE8.
* Replace LDRNESB with LDRSBNE, LDREQSB with LDRSBEQ, etc.
* Replace VST1 {*.U8} with VST1.8 ..., VLD1 {*.U8} with VLD1.8,
and VMOV with VMOV.I8.
* New assembler output code is identical or equivalent to old gas output.
For example, the 3 references of
LDR r7, =0x80808080
in omxdl/arm_neon/vc/m4p10/src_gcc/armVCM4P10_Average_4x_Align_unsafe_s.S
produced 3 instances of
.word 0x80808080
by llvm integrated assembler but only one by gas.
Change-Id: Ifdcd5bee915a7534198d7f219bceab72045f6a22
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Integer sanitization causes too many false positives, and so far all
have been benign or intentional.
Change-Id: I3c40e478e3da31023a635f4ef212873c1fb644f3
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The intent here is supposed to be to use local time (which mktime(3) does)
unless the string ends 'Z' in which case we're supposed to use UTC. The UTC
equivalent of mktime(3) is timegm(3).
This code has come to my attention in two ways. Externally it was pointed
out that the localtime_r(3) was accessing uninitialized memory leading to
unpredicatable results. Internally, this is the only caller of the
non-standard mktime_tz --- ironically using it in a way that -- apart from
the flakiness caused by the uninitialized variable -- would make it behave
like the standard mktime(3).
Bug: https://code.google.com/p/android/issues/detail?id=185159
Bug: http://b/15765976
Change-Id: I5f015727c4c08a139ef478fafba5811a9758d5df
|
| | |
| | |
| | |
| | |
| | | |
Bug: 25843966
Change-Id: I18003aa20be1ff0a93473ecd8b4995861bed8c89
|
| | |
| | |
| | |
| | |
| | | |
Bug: 25843966
Change-Id: I16aa3eb0fc4c8d507b92d3a84139cfef6302c96c
|
| | |
| | |
| | |
| | | |
Change-Id: I706d7ef81a138739996e0fbb2759348c7a4be8a6
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Freeing the input buffers & node in ACodec::OutputPortSettingsChangedState
on error, can cause NuPlayerDecoder to deference freed buffers.
Instead of freeing the node internally on error in
OutputPortSettingsChangedState, notify error to NuPlayer, and add
kWhatShutDown handling to initiate Idle state transition.
Change-Id: I7778d759c564fad27d266ac63d293bf0c30c029b
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
CameraSource can be null when we do setupCustomVideoEncoderParams,
add a null pointer checking for it.
Change-Id: Ie28018e67d623b03bb7c3c7dbc8a92669158b84b
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Fill in stub methods to improve video encoding performance.
Change-Id: I2bbf192e022043d161429c6cabf4a7d740802d20
|
| | |
| | |
| | |
| | | |
Change-Id: Ib98c9c94cccc902708d25a9b8d81bc54fd6bbf7c
|
| | |
| | |
| | |
| | |
| | |
| | | |
* CAF commit bd42a7ac3a60c0d8a079b4567484c9b006bac8ad upstream
Change-Id: I457ccab603647f3139ea2199a544f64ac3d1a214
|
| | |
| | |
| | |
| | | |
Change-Id: Ifbdf02d46c54a6d28e86e0d5314731b081383a00
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Compute the track latency by frame count returned
from audio hal when in TRANSFER_SYNC mode
Change-Id: If7bbf780abc8e141eb35eea44c01c583b1290d3c
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Use the raw PCM format to perform the early open of the audio sink.
This ensures that the renderer will do the same.
* Fill in stubs for timestamp and position calculation. This fixes
underruns and other issues.
Change-Id: I8d761e523194cc12f387b4b2aa1594536e56da01
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* A new sniffer might want to defer it's work based on the
knowledge already gained by those who have already sniffed.
* This is the case for our FFMPEG sniffer, which is pretty awesome
in that it is able to fill in all the gaps and detect almost
anything, however the cost is additional latency during scanning
and startup.
* As we cycle thru each sniffer, feed the current score to the next.
It is up to the extractor to use this knowledge wisely.
* Additionally, print some metrics on how long the sniff took.
Change-Id: I5dc8de11ed4939a01eabb0cae0b4e1e71d991eea
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* When the extended sniffer detects a file type that only it can
handle, it will set a flag in the metadata. In some cases,
an extractor exists in Android already for the filetype however
it may be known to fail or we may want different behavior.
* This flag is checked in MediaExtractor, but GenericSource does
a little dance in order to stack DataSources for DRM and was
throwing out this metadata (it's not really used by AOSP), so
the desired behavior was not seen for some cases.
* Add a new optional argument when creating the MediaExtractor to
pass in the metadata from the original sniff so that the extended
extractor is used where necessary for streaming formats.
* This fixes FLAC offload with Tidal.
Change-Id: I7d6b875346ce63b60cd3c37572b779665bfe217c
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Extractor now checks if Stagefright already reported a high
confidence level. Treat it as a first class citizen.
Change-Id: Id41af84a0f9f9c51df4602f283776b5d19bf666b
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Additional cases for timestamp reordering (smooth out AVI playback)
* Enable hardware thumbnailer
Change-Id: If828181850a5627dc1f91b118974905d22ab24e9
|
| | |
| | |
| | |
| | |
| | |
| | | |
* FFMPEG will now handle this automatically. Remove the workaround.
Change-Id: I7007af16ce1fe43358b9c1e3b3b469b717df0100
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* In case we do a conversion, we need this to seek the extractor
to the right position for extracting a thumbnail.
Change-Id: I003a599c15890aeeb6d2494b219f170ba5b278d8
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Corrects the validation of the number of channels that was causing a floating
point exception when this number is zero.
It also corrects the range of admitted channels on WAV files.
Change-Id: I21f005d1f30c1fd93206c6bce0d3be4b8307059c
Signed-off-by: Niel Alejandro Paz <niel.paz.hernandez@intel.com>
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Revert 3cdaed88daeeebfe05e7913837f41c2d92f411cc and
883ff4f4c41ae9bf84d1912ab054fe38f7505dd0, and fix the overflows that
should have been clamped instead of allowed to overflow.
Bug: 25843966
Bug: 23752600
Change-Id: I9af1726d058eb8eeaa80fa8df74fe0a3759486c1
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
clock_gettime() can change errno if something goes wrong (most
commonly setting EBADF). This failure should not cause a failure
in ClientProxy::obtainBuffer() if the futex returned successfully
or with a known status. Preserve errno before calling clock_gettime
to prevent propagation of an invalid, unexpected error.
Propagated from Ib69201031a81395ece47dd8ad7c4dcddd2b00153
Change-Id: I48320fc287b6a0ef2a1b9e71f9d0e979bd6343a5
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
b/25372978 tracks an assertion in Renderer when the
size of the buffer to be written is not a multiple of audio sink
framesize. Until resolved, avoid assertion and notify an error
back to the player
CRs-Fixed: 941002
Change-Id: Id54b357dcbf7afe90e2290665392275d6dd5eaef
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
While direct output should ideally be abstracted from the AudioTrack,
the use of an offload path can leave data stuck in the shared buffer
(especially if the clip is short such that the buffer is never
entirely filled). To ensure that all data is played out on track
stop(), AudioTrack must be aware of the direct output or offload
session. Set the DIRECT track flag for track offload use cases to
avoid losing data in the shared buffer.
CRs-Fixed: 944878
Change-Id: I13f840b5d67be56e03ec65d3bc7d44f1090b48c5
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
not request or send out data."
* Missing from backport
Change-Id: I562d28a4770aec2f9c547c482e79cca49be9dbb9
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The aac audio profile retrieved from the AACExtractor
is ranged from 0-3.
However the corresponding OMX header definition
is from 1-4:
typedef enum OMX_AUDIO_AACPROFILETYPE{
...
OMX_AUDIO_AACObjectMain = 1,
OMX_AUDIO_AACObjectLC,
OMX_AUDIO_AACObjectSSR,
OMX_AUDIO_AACObjectLTP,
...
Change-Id: I1c8932abe19bff918acd5e4d8c2e39eaaac4f6c3
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Remove bogus code and replace with proper reassembly.
Change-Id: I16a84eb94e5535fc2c4044875144f8007852a4d2
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Pass the bits-per-sample value when setting up the raw PCM
output in case FFMPEG is decoding as it will produce floats.
Change-Id: If5a8cc43a1c41e522324e77871823c9084f92169
|