/external/skia/tools/viewer/ |
D | MSKPSlide.cpp | 25 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 …]
|
D | SkottieSlide.cpp | 31 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
|
D | MSKPSlide.h | 34 std::unique_ptr<MSKPPlayer> fPlayer; variable
|
/external/skia/samplecode/ |
D | SampleAudio.cpp | 16 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/ |
D | SkAudioPlayer_mac.mm | 24 : 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/ |
D | MSKPBench.cpp | 15 : 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()
|
D | MSKPBench.h | 29 std::unique_ptr<MSKPPlayer> fPlayer; variable
|
/external/skia/gm/ |
D | animated_gif.cpp | 236 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/ |
D | SkottieUtils.cpp | 30 : 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()
|
D | SkottieUtils.h | 39 std::unique_ptr<SkAnimCodecPlayer> fPlayer; variable
|
/external/skia/modules/skresources/src/ |
D | SkResources.cpp | 117 : 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/ |
D | skottie_bindings.cpp | 37 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/ |
D | SkResources.h | 96 std::unique_ptr<SkAnimCodecPlayer> fPlayer; variable
|