Comments (1)
Per https://en.wikipedia.org/wiki/Absorbing_Markov_chain such a state is called an "absorbing state". Let's use the same term when talking about frames: it's an absorbing frame not a dead-end.
The following SQL query appears to find all desired frames:
-- Select the final frame in each clip.
-- See max-value-in-group: https://stackoverflow.com/a/7745635/101923
SELECT f1.clip_id, f1.clip_order
FROM frame AS f1
LEFT OUTER JOIN frame AS f2
ON f1.clip_id = f2.clip_id
AND f1.clip_order < f2.clip_order
-- Join with transitions to find frames with no transitions out.
LEFT OUTER JOIN transition
ON f1.clip_id = transition.source_clip_id
AND f1.clip_order = transition.source_clip_order
AND (
f1.clip_id != transition.target_clip_id
OR f1.clip_order != transition.target_clip_order
)
WHERE f2.clip_order IS NULL -- No next frame.
AND transition.source_clip_order IS NULL; -- No transitions out.
from pikov.
Related Issues (20)
- Non-Jupyter renderer for Pikov files HOT 2
- Reimplement command-line, add CLI tests
- Add MultiClip to preview transitions between clips
- GIF preview for Pikov
- Method to delete a Transition
- Method to delete a Frame
- Friendly ID property for clips
- IPython preview for a collection of clips
- bag of files version of Pikov
- Starting clip / frame property for Pikov
- Random weights for frame transitions HOT 4
- Support comparison across Pikov objects
- Method to create a Clip by following shortest path from Frame A to Frame B HOT 1
- Network visualization of Pikov files
- Support SVG images (and optionally tween between frames)
- Clarify computation model for Pikov animations
- JSON version: Pikov transitions should be more imperative
- Register classes based on ctor
- Build first compiler - Frame / Scene to HTML + JavaScript
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pikov.