Home
last modified time | relevance | path

Searched refs:fPlayer (Results 1 – 13 of 13) sorted by relevance

/external/skia/tools/viewer/
DMSKPSlide.cpp25 return fPlayer ? fPlayer->maxDimensions() : SkISize{0, 0}; in getDimensions()
29 if (!fPlayer) { in draw()
63 fFrame = (fFrame + fPlayer->numFrames() - 1)%fPlayer->numFrames(); in draw()
66 if (ImGui::SliderInt("##msk_frameslider", &fFrame, 0, fPlayer->numFrames()-1, "% 3d")) { in draw()
67 fFrame = SkTPin(fFrame, 0, fPlayer->numFrames() - 1); in draw()
71 fFrame = (fFrame + 1)%fPlayer->numFrames(); in draw()
103 auto bounds = SkIRect::MakeSize(fPlayer->frameDimensions(fFrame)); in draw()
127 fPlayer->playFrame(canvas, fFrame); in draw()
131 if (sk_sp<SkImage> layerImage = fPlayer->layerSnapshot(fDrawLayerID)) { in draw()
146 if (!fPlayer || fPaused) { in animate()
[all …]
DSkottieSlide.cpp31 explicit Track(std::unique_ptr<SkAudioPlayer> player) : fPlayer(std::move(player)) {} in Track()
35 if (fPlayer->isStopped() && t >=0) { in seek()
36 fPlayer->play(); in seek()
39 if (fPlayer->isPlaying()) { in seek()
41 fPlayer->stop(); in seek()
44 const auto player_pos = fPlayer->time(); in seek()
47 fPlayer->setTime(t); in seek()
53 const std::unique_ptr<SkAudioPlayer> fPlayer; member in __anonb3fc40d50111::Track
DMSKPSlide.h34 std::unique_ptr<MSKPPlayer> fPlayer; variable
/external/skia/samplecode/
DSampleAudio.cpp16 std::unique_ptr<SkAudioPlayer> fPlayer; member in AudioView
28 fPlayer = SkAudioPlayer::Make(data); in onOnceBeforeDraw()
31 fPlayer->duration(), in onOnceBeforeDraw()
32 fPlayer->time(), in onOnceBeforeDraw()
33 fPlayer->state()); in onOnceBeforeDraw()
40 if (!fPlayer) { in onDrawContent()
48 p.setColor(fPlayer->isPlaying() ? SK_ColorBLUE : 0xFF8888FF); in onDrawContent()
50 r.fRight = r.fLeft + (float)fPlayer->normalizedTime() * r.width(); in onDrawContent()
56 switch (fPlayer->state()) { in onChar()
57 case SkAudioPlayer::State::kPlaying: fPlayer->pause(); break; in onChar()
[all …]
/external/skia/modules/audioplayer/
DSkAudioPlayer_mac.mm24 : fPlayer(player)
27 fPlayer.enableRate = YES;
28 [fPlayer prepareToPlay];
32 // [fPlayer release];
35 double onGetDuration() const override { return [fPlayer duration]; }
37 double onGetTime() const override { return fPlayer.currentTime; }
42 [fPlayer pause];
44 fPlayer.currentTime = t;
46 [fPlayer play];
48 return fPlayer.currentTime;
[all …]
/external/skia/bench/
DMSKPBench.cpp15 : fName(name), fPlayer(std::move(player)) {} in MSKPBench()
21 for (int f = 0; f < fPlayer->numFrames(); ++f) { in onDraw()
23 canvas->clipIRect(SkIRect::MakeSize(fPlayer->frameDimensions(f))); in onDraw()
24 fPlayer->playFrame(canvas, f); in onDraw()
31 fPlayer->rewindLayers(); in onDraw()
38 auto dims = fPlayer->maxDimensions(); in onGetSize()
44 fPlayer->allocateLayers(canvas); in onPreDraw()
49 fPlayer->resetLayers(); in onPostDraw()
DMSKPBench.h29 std::unique_ptr<MSKPPlayer> fPlayer; variable
/external/skia/gm/
Danimated_gif.cpp236 std::unique_ptr<SkAnimCodecPlayer> fPlayer; member in AnimCodecPlayerExifGM
240 if (!fPlayer) { in init()
246 fPlayer = std::make_unique<SkAnimCodecPlayer>(std::move(codec)); in init()
247 if (!fPlayer) return; in init()
256 auto imageSize = fPlayer->dimensions(); in init()
273 if (!fPlayer) return; in onDraw()
277 auto dimensions = fPlayer->dimensions(); in onDraw()
280 for (int frame = 0; duration < fPlayer->duration(); frame++) { in onDraw()
287 auto image = fPlayer->getFrame(); in onDraw()
290 fPlayer->seek(duration); in onDraw()
/external/skqp/modules/skottie/utils/
DSkottieUtils.cpp30 : fPlayer(std::move(player)) { in MultiFrameImageAsset()
31 SkASSERT(fPlayer); in MultiFrameImageAsset()
35 return fPlayer->duration() > 0; in isMultiFrame()
39 fPlayer->seek(static_cast<uint32_t>(t * 1000)); in getFrame()
40 return fPlayer->getFrame(); in getFrame()
DSkottieUtils.h39 std::unique_ptr<SkAnimCodecPlayer> fPlayer; variable
/external/skia/modules/skresources/src/
DSkResources.cpp117 : fPlayer(std::move(player)) in MultiFrameImageAsset()
119 SkASSERT(fPlayer); in MultiFrameImageAsset()
123 return fPlayer->duration() > 0; in isMultiFrame()
154 fPlayer->seek(static_cast<uint32_t>(t * 1000)); in generateFrame()
155 auto frame = fPlayer->getFrame(); in generateFrame()
/external/skia/modules/canvaskit/
Dskottie_bindings.cpp37 explicit WebTrack(emscripten::val player) : fPlayer(std::move(player)) {} in WebTrack()
41 fPlayer.call<void>("seek", val(t)); in seek()
44 const emscripten::val fPlayer; member in __anonb93badeb0111::WebTrack
/external/skia/modules/skresources/include/
DSkResources.h96 std::unique_ptr<SkAnimCodecPlayer> fPlayer; variable