Hello, I have some questions about the library. First, I would like to be able to get how many frames in a movie, skip to a given frame, and render one selected frame. Looking at the API, I see that there are functions for this in swfdec_sprite_movie.h. But I don't see how I can get to those functions starting from a swfdec_player. Second, there are some movies that are collections of sprites, and some that are regular movies. How do I determine which is which? Lastly, there is a certain movie that is running really, really slowly. The log message are below. Is this clipping a problem with the movie itself? SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_player.c(3140): swfdec_player_render_with_renderer: === 026E9010: START RENDER ==SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1304): swfdec_movie_do_render: clipping up to depth -16381 by using with depth -16383 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1287): swfdec_movie_do_render: unsetting clip depth -16381 for depth -16380 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1304): swfdec_movie_do_render: clipping up to depth -16378 by using with depth -16380 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1287): swfdec_movie_do_render: unsetting clip depth -16378 for depth -16377 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1304): swfdec_movie_do_render: clipping up to depth -16375 by using with depth -16377 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1287): swfdec_movie_do_render: unsetting clip depth -16375 for depth -16374 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1304): swfdec_movie_do_render: clipping up to depth -16372 by using with depth -16374 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1287): swfdec_movie_do_render: unsetting clip depth -16372 for depth -16371 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1304): swfdec_movie_do_render: clipping up to depth -16369 by using with depth -16371 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1287): swfdec_movie_do_render: unsetting clip depth -16369 for depth -16368 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1304): swfdec_movie_do_render: clipping up to depth -16366 by using with depth -16368 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1287): swfdec_movie_do_render: unsetting clip depth -16366 for depth -16365 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1304): swfdec_movie_do_render: clipping up to depth -16363 by using with depth -16365 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1287): swfdec_movie_do_render: unsetting clip depth -16363 for depth -16362 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1304): swfdec_movie_do_render: clipping up to depth -16360 by using with depth -16362 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_movie.c(1315): swfdec_movie_do_render: unsetting clip depth -16360 SWFDEC: INFO : src/libs/libswfdec/swfdec/swfdec_player.c(3153): swfdec_player_render_with_renderer: === 026E9010: END RENDER ===
> First, I would like to be able to get how many frames in a movie, skip to a > given frame, and render one selected frame. Looking at the API, I see that > there are functions for this in swfdec_sprite_movie.h. But I don't see how I > can get to those functions starting from a swfdec_player. >The general suggestion if you want to mess around inside Flash files is to write a launcher Flash file that loads the one file in question and then do the jump inside that file. The Swfdec API changes too much in that are, so we don't want to expose it.> Second, there are some movies that are collections of sprites, and some that > are regular movies. How do I determine which is which? >I'm not exactly sure what this question means. Could you explain what you're teying to achieve?> Lastly, there is a certain movie that is running really, really slowly. The > log message are below. Is this clipping a problem with the movie itself? >Clipping (or masking) is a feature of Flash, so if you consider a Flash file that makes use of clipping a "problem", then I guess this movie qualifies. Also, clipping can be problematic in Cairo, as it's a different codepath and might not be optimized in the backend you are using.
Possibly Parallel Threads
- [Bug 16395] New: glib abort for "double free or corruption" in jpeg code
- [Bug 21004] New: segfault loading www.serjtankian. com in swfdec_buffer_ref at swfdec_buffer.c:269
- screenshot of swf file
- 6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
- Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c