Lines Matching defs:PreviewPlayer
19 #define LOG_TAG "PreviewPlayer"
25 #include "PreviewPlayer.h"
52 PreviewPlayer *player,
53 void (PreviewPlayer::*method)())
66 PreviewPlayer *mPlayer;
67 void (PreviewPlayer::*mMethod)();
73 PreviewPlayer::PreviewPlayer(NativeWindowRenderer* renderer)
95 mVideoEvent = new PreviewPlayerEvent(this, &PreviewPlayer::onVideoEvent);
98 &PreviewPlayer::onStreamDone);
108 &PreviewPlayer::onProgressCbEvent);
111 &PreviewPlayer::onUpdateOverlayEvent);
120 PreviewPlayer::~PreviewPlayer() {
133 void PreviewPlayer::cancelPlayerEvents(bool keepBufferingGoing) {
145 status_t PreviewPlayer::setDataSource(
151 status_t PreviewPlayer::setDataSource_l(
167 status_t PreviewPlayer::setDataSource_l(const sp<MediaExtractor> &extractor) {
205 LOGV("PreviewPlayer: setDataSource_l Dummyaudiocreation started");
209 LOGV("PreviewPlayer: setDataSource_l Dummyauiosource created");
223 status_t PreviewPlayer::setDataSource_l_jpg() {
225 LOGV("PreviewPlayer: setDataSource_l_jpg started");
229 LOGV("PreviewPlayer: setDataSource_l_jpg Dummyaudiosource created");
257 void PreviewPlayer::reset() {
262 void PreviewPlayer::reset_l() {
341 status_t PreviewPlayer::play() {
349 status_t PreviewPlayer::startAudioPlayer_l() {
379 status_t PreviewPlayer::setAudioPlayer(AudioPlayerBase *audioPlayer) {
441 void PreviewPlayer::onStreamDone() {
481 //This lock is used to syncronize onStreamDone() in PreviewPlayer and
484 /* Make sure PreviewPlayer only notifies MEDIA_PLAYBACK_COMPLETE once for each clip!
487 * PreviewController uses two PreviewPlayer instances and one AudioPlayer.
488 * The two PreviewPlayer use the same AudioPlayer to play the audio,
493 * When the video of current clip reached the EOS, PreviewPlayer will set EOS flag
497 * PreviewPlayer will notify MEDIA_PLAYBACK_COMPLETE again. */
509 status_t PreviewPlayer::play_l() {
658 status_t PreviewPlayer::initRenderer_l() {
671 status_t PreviewPlayer::seekTo(int64_t timeUs) {
682 status_t PreviewPlayer::getVideoDimensions(
697 status_t PreviewPlayer::initAudioDecoder() {
742 status_t PreviewPlayer::initVideoDecoder(uint32_t flags) {
780 void PreviewPlayer::onVideoEvent() {
859 LOGV("PreviewPlayer: onVideoEvent EOS reached.");
1001 LOGV("PreviewPlayer: onVideoEvent timeUs > mPlayEndTime; send EOS..");
1090 LOGV("PreviewPlayer: onVideoEvent EOS.");
1113 status_t PreviewPlayer::prepare() {
1118 status_t PreviewPlayer::prepare_l() {
1141 status_t PreviewPlayer::prepareAsync_l() {
1153 this, &PreviewPlayer::onPrepareAsyncEvent);
1160 status_t PreviewPlayer::finishSetDataSource_l() {
1182 LOGV("PreviewPlayer::finishSetDataSource_l extractor == NULL");
1191 bool PreviewPlayer::ContinuePreparation(void *cookie) {
1192 PreviewPlayer *me = static_cast<PreviewPlayer *>(cookie);
1197 void PreviewPlayer::onPrepareAsyncEvent() {
1237 void PreviewPlayer::finishAsyncPrepare_l() {
1257 void PreviewPlayer::acquireLock() {
1262 void PreviewPlayer::releaseLock() {
1267 status_t PreviewPlayer::loadEffectsSettings(
1277 status_t PreviewPlayer::loadAudioMixSettings(
1280 LOGV("PreviewPlayer: loadAudioMixSettings: ");
1285 status_t PreviewPlayer::setAudioMixPCMFileHandle(
1288 LOGV("PreviewPlayer: setAudioMixPCMFileHandle: ");
1293 status_t PreviewPlayer::setAudioMixStoryBoardParam(
1304 status_t PreviewPlayer::setPlaybackBeginTime(uint32_t msec) {
1310 status_t PreviewPlayer::setPlaybackEndTime(uint32_t msec) {
1316 status_t PreviewPlayer::setStoryboardStartTime(uint32_t msec) {
1323 status_t PreviewPlayer::setProgressCallbackInterval(uint32_t cbInterval) {
1330 status_t PreviewPlayer::setMediaRenderingMode(
1344 status_t PreviewPlayer::resetJniCallbackTimeStamp() {
1350 void PreviewPlayer::postProgressCallbackEvent_l() {
1360 void PreviewPlayer::onProgressCbEvent() {
1377 void PreviewPlayer::postOverlayUpdateEvent_l() {
1385 void PreviewPlayer::onUpdateOverlayEvent() {
1403 void PreviewPlayer::setVideoPostProcessingNode(
1476 status_t PreviewPlayer::setImageClipProperties(uint32_t width,uint32_t height) {
1482 status_t PreviewPlayer::readFirstVideoFrame() {
1483 LOGV("PreviewPlayer::readFirstVideoFrame");
1516 LOGV("PreviewPlayer: onVideoEvent EOS reached.");
1569 status_t PreviewPlayer::getLastRenderedTimeMs(uint32_t *lastRenderedTimeMs) {
1574 void PreviewPlayer::updateSizeToRender(sp<MetaData> meta) {