Lines Matching defs:PreviewPlayer
19 #define LOG_TAG "PreviewPlayer"
41 #include "PreviewPlayer.h"
57 PreviewPlayer *player,
58 void (PreviewPlayer::*method)())
71 PreviewPlayer *mPlayer;
72 void (PreviewPlayer::*mMethod)();
78 PreviewPlayer::PreviewPlayer(NativeWindowRenderer* renderer)
113 mVideoEvent = new PreviewPlayerEvent(this, &PreviewPlayer::onVideoEvent);
115 mVideoLagEvent = new PreviewPlayerEvent(this, &PreviewPlayer::onVideoLagUpdate);
118 this, &PreviewPlayer::onCheckAudioStatus);
121 this, &PreviewPlayer::onStreamDone);
124 &PreviewPlayer::onProgressCbEvent);
127 &PreviewPlayer::onUpdateOverlayEvent);
136 PreviewPlayer::~PreviewPlayer() {
153 void PreviewPlayer::cancelPlayerEvents_l(bool updateProgressCb) {
168 status_t PreviewPlayer::setDataSource(const char *path) {
173 status_t PreviewPlayer::setDataSource_l(const char *path) {
184 status_t PreviewPlayer::setDataSource_l(const sp<MediaExtractor> &extractor) {
237 status_t PreviewPlayer::setDataSource_l_jpg() {
271 void PreviewPlayer::reset_l() {
347 status_t PreviewPlayer::play() {
356 status_t PreviewPlayer::startAudioPlayer_l() {
387 status_t PreviewPlayer::setAudioPlayer(VideoEditorAudioPlayer *audioPlayer) {
448 void PreviewPlayer::onStreamDone() {
489 //This lock is used to syncronize onStreamDone() in PreviewPlayer and
492 /* Make sure PreviewPlayer only notifies MEDIA_PLAYBACK_COMPLETE once for each clip!
495 * PreviewController uses two PreviewPlayer instances and one AudioPlayer.
496 * The two PreviewPlayer use the same AudioPlayer to play the audio,
501 * When the video of current clip reached the EOS, PreviewPlayer will set EOS flag
505 * PreviewPlayer will notify MEDIA_PLAYBACK_COMPLETE again. */
517 status_t PreviewPlayer::play_l() {
663 status_t PreviewPlayer::initRenderer_l() {
676 status_t PreviewPlayer::seekTo(int64_t timeUs) {
686 status_t PreviewPlayer::getVideoDimensions(
701 status_t PreviewPlayer::initAudioDecoder_l() {
741 status_t PreviewPlayer::initVideoDecoder_l(uint32_t flags) {
775 void PreviewPlayer::onVideoEvent() {
854 ALOGV("PreviewPlayer: onVideoEvent EOS reached.");
991 ALOGV("PreviewPlayer: onVideoEvent timeUs > mPlayEndTime; send EOS..");
1080 ALOGV("PreviewPlayer: onVideoEvent EOS.");
1103 status_t PreviewPlayer::prepare() {
1109 status_t PreviewPlayer::prepare_l() {
1133 status_t PreviewPlayer::prepareAsync() {
1139 status_t PreviewPlayer::prepareAsync_l() {
1152 this, &PreviewPlayer::onPrepareAsyncEvent);
1159 status_t PreviewPlayer::finishSetDataSource_l() {
1188 void PreviewPlayer::onPrepareAsyncEvent() {
1228 void PreviewPlayer::finishAsyncPrepare_l() {
1246 void PreviewPlayer::acquireLock() {
1251 void PreviewPlayer::releaseLock() {
1256 status_t PreviewPlayer::loadEffectsSettings(
1265 status_t PreviewPlayer::loadAudioMixSettings(
1273 status_t PreviewPlayer::setAudioMixPCMFileHandle(
1281 status_t PreviewPlayer::setAudioMixStoryBoardParam(
1293 status_t PreviewPlayer::setPlaybackBeginTime(uint32_t msec) {
1299 status_t PreviewPlayer::setPlaybackEndTime(uint32_t msec) {
1305 status_t PreviewPlayer::setStoryboardStartTime(uint32_t msec) {
1312 status_t PreviewPlayer::setProgressCallbackInterval(uint32_t cbInterval) {
1319 status_t PreviewPlayer::setMediaRenderingMode(
1332 status_t PreviewPlayer::resetJniCallbackTimeStamp() {
1338 void PreviewPlayer::postProgressCallbackEvent_l() {
1348 void PreviewPlayer::onProgressCbEvent() {
1364 void PreviewPlayer::postOverlayUpdateEvent_l() {
1372 void PreviewPlayer::onUpdateOverlayEvent() {
1385 void PreviewPlayer::setVideoPostProcessingNode(
1457 status_t PreviewPlayer::setImageClipProperties(uint32_t width,uint32_t height) {
1463 status_t PreviewPlayer::readFirstVideoFrame() {
1546 status_t PreviewPlayer::getLastRenderedTimeMs(uint32_t *lastRenderedTimeMs) {
1551 void PreviewPlayer::updateSizeToRender(sp<MetaData> meta) {
1557 void PreviewPlayer::setListener(const wp<MediaPlayerBase> &listener) {
1562 status_t PreviewPlayer::setDataSource(const sp<IStreamSource> &source) {
1566 void PreviewPlayer::reset() {
1571 void PreviewPlayer::clear_l() {
1636 void PreviewPlayer::notifyListener_l(int msg, int ext1, int ext2) {
1646 void PreviewPlayer::onVideoLagUpdate() {
1668 void PreviewPlayer::notifyVideoSize_l() {
1733 status_t PreviewPlayer::pause() {
1741 status_t PreviewPlayer::pause_l(bool at_eos) {
1767 bool PreviewPlayer::isPlaying() const {
1771 void PreviewPlayer::setSurface(const sp<Surface> &surface) {
1778 void PreviewPlayer::setSurfaceTexture(const sp<ISurfaceTexture> &surfaceTexture) {
1787 void PreviewPlayer::shutdownVideoDecoder_l() {
1806 void PreviewPlayer::setNativeWindow_l(const sp<ANativeWindow> &native) {
1835 void PreviewPlayer::setAudioSink(
1842 status_t PreviewPlayer::setLooping(bool shouldLoop) {
1854 void PreviewPlayer::setDuration_l(int64_t durationUs) {
1860 status_t PreviewPlayer::getDuration(int64_t *durationUs) {
1870 status_t PreviewPlayer::getPosition(int64_t *positionUs) {
1887 void PreviewPlayer::setPosition_l(int64_t timeUs) {
1891 status_t PreviewPlayer::seekTo_l(int64_t timeUs) {
1929 void PreviewPlayer::seekAudioIfNecessary_l() {
1938 void PreviewPlayer::setAudioSource(const sp<MediaSource>& source) {
1943 void PreviewPlayer::setVideoSource(const sp<MediaSource>& source) {
1948 void PreviewPlayer::finishSeekIfNecessary(int64_t videoTimeUs) {
1978 void PreviewPlayer::onCheckAudioStatus() {
2008 void PreviewPlayer::postVideoEvent_l(int64_t delayUs) {
2017 void PreviewPlayer::postStreamDoneEvent_l(status_t status) {
2027 void PreviewPlayer::postVideoLagEvent_l() {
2035 void PreviewPlayer::postCheckAudioStatusEvent_l(int64_t delayUs) {
2043 void PreviewPlayer::abortPrepare(status_t err) {
2056 uint32_t PreviewPlayer::getSourceSeekFlags() const {
2061 void PreviewPlayer::postAudioEOS(int64_t delayUs) {
2066 void PreviewPlayer::postAudioSeekComplete() {
2071 void PreviewPlayer::updateBatteryUsage_l() {