| 1 | /* MovieArea.cpp |
| 2 | * |
| 3 | * Copyright (C) 2011-2020,2022 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #include "MovieArea.h"cxx . . $ `<file>/foned/MovieArea.h`/ |
| 20 | |
| 21 | Thing_implementcxx . . $ `sys/Thing.h:65:9`! (MovieArea, FunctionArea, 0); |
| 22 | |
| 23 | void structMovieAreacxx . . $ structMovieArea# :: v_drawInsidecxx . . $ structMovieArea#v_drawInside(49f6e7a06ebc5aa8). () { |
| 24 | Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionArea#startWindow(21b6c25e127938e2).(), ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionArea#endWindow(21b6c25e127938e2).(), 0.0, 1.0); |
| 25 | const integercxx . . $ integer# firstFrame = Melder_clippedLeftcxx . . $ Melder_clippedLeft(f80f7d6260b3ee3a). (1_integercxx . . $ `operator""_integer`(85240eb457c3721a)., Sampled_xToNearestIndexcxx . . $ Sampled_xToNearestIndex(405c2491bc3636e9). (ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieArea#movie(cdcbbde373f1c1f4).(), ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionArea#startWindow(21b6c25e127938e2).())); |
| 26 | const integercxx . . $ integer# lastFrame = Melder_clippedRightcxx . . $ Melder_clippedRight(f80f7d6260b3ee3a). (Sampled_xToNearestIndexcxx . . $ Sampled_xToNearestIndex(405c2491bc3636e9). (ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieArea#movie(cdcbbde373f1c1f4).(), ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionArea#endWindow(21b6c25e127938e2).()), ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieArea#movie(cdcbbde373f1c1f4).() -> nxcxx . . $ structSampled#nx.); |
| 27 | for (integercxx . . $ integer# iframe = firstFrame; iframe <= lastFrame; iframe ++) { |
| 28 | const double time = Sampled_indexToXcxx . . $ Sampled_indexToX(65bcd2c9acbb3dd5). (ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieArea#movie(cdcbbde373f1c1f4).(), iframe); |
| 29 | const double timeLeft = Melder_clippedLeftcxx . . $ Melder_clippedLeft(f80f7d6260b3ee3a). (ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionArea#startWindow(21b6c25e127938e2).(), time - 0.5 * moviecxx . . $ structMovieArea#movie(cdcbbde373f1c1f4).() -> dxcxx . . $ structSampled#dx.); |
| 30 | const double timeRight = Melder_clippedRightcxx . . $ Melder_clippedRight(f80f7d6260b3ee3a). (time + 0.5 * ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieArea#movie(cdcbbde373f1c1f4).() -> dxcxx . . $ structSampled#dx., ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionArea#endWindow(21b6c25e127938e2).()); |
| 31 | Movie_paintOneImageInsidecxx . . $ Movie_paintOneImageInside(193ee6d3ba2d6dd5). (ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieArea#movie(cdcbbde373f1c1f4).(), ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionArea#graphics(5af6864da672d398).(), iframe, timeLeft, timeRight, 0.0, 1.0); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | /* End of file MovieArea.cpp */ |