search for: current_fram

Displaying 20 results from an estimated 34 matches for "current_fram".

Did you mean: current_frame
2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...cBuffer * chunk, int skip, guint n_samples); void swfdec_sprite_set_n_frames (SwfdecSprite *sprite, guint n_frames, guint rate); -void swfdec_sprite_add_action (SwfdecSprite * sprite, - SwfdecSpriteActionType type, gpointer data); -guint swfdec_sprite_get_next_frame (SwfdecSprite *sprite, guint current_frame); +void swfdec_sprite_add_action (SwfdecSprite * sprite, guint tag, SwfdecBuffer *buffer); +gboolean swfdec_sprite_get_action (SwfdecSprite * sprite, + guint n, + guint * tag, + SwfdecBuffer ** buffer); +guint swfdec_sprite_get_next_frame (SwfdecSprite * sprite, +...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...n in execution order */ }; diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index 36cbd8f..1cc2f0b 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -142,11 +142,6 @@ swfdec_sprite_movie_do_goto_frame (Swfde start = movie->current_frame + 1; old = NULL; } - if (movie->current_frame == (guint) -1 || - movie->sprite->frames[goto_frame].bg_color != - movie->sprite->frames[movie->current_frame].bg_color) { - swfdec_movie_invalidate (mov); - } movie->current_frame = goto_frame; SWFDE...
2007 Apr 08
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c
...e_movie.c index a114315..81ad295 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -293,9 +293,11 @@ new_decoder: g_object_unref (movie->sound_stream); } - movie->sound_stream = swfdec_audio_stream_new (player, - movie->sprite, movie->current_frame); - movie->sound_frame = movie->current_frame; + if (current->sound_block) { + movie->sound_stream = swfdec_audio_stream_new (player, + movie->sprite, movie->current_frame); + movie->sound_frame = movie->current_frame; + } return TRUE; } diff-tree e869d0ff88...
2004 Sep 10
3
1.0 source candidate
...0000002beb20) at stream_decoder.c:633 #2 0x2000000000123300 in FLAC__stream_decoder_process_metadata ( decoder=0x60000000002beb20) at stream_decoder.c:427 #3 0x4000000000010320 in write_callback (encoder=0x60000000002b8290, buffer=0x60000000002f9df0 "fLaC", bytes=64, samples=0, current_frame=0, client_data=0x80000fffffffa5c0) at encode.c:964 #4 0x200000000012bc60 in FLAC__stream_encoder_init ( encoder=0x60000000002b8290) at stream_encoder.c:467 #5 0x400000000000d840 in init_encoder (lax=0, do_mid_side=0, loose_mid_side=0, do_exhaustive_model_search=0, do_escape_coding=...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...at; /* format used by decoder */ - unsigned int playback_skip; /* number of samples to skip at the beginning of queue */ + guint playback_skip; /* number of samples to skip at the beginning of queue */ GQueue * playback_queue; /* all the samples we've decoded so far */ - unsigned int current_frame; /* last decoded frame */ + guint current_frame; /* last decoded frame */ gboolean done; /* TRUE when no new data will be made available */ }; diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c index 46b0581..6e25cf7 100644 --- a/libswfdec/swfdec_bits.c +++ b/libswfdec/swfdec...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...c/swfdec_sprite_movie.c index 91e27f6..74d2160 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -150,10 +150,8 @@ swfdec_sprite_movie_do_goto_frame (gpoin start, goto_frame, SWFDEC_CHARACTER (movie->sprite)->id); for (i = start; i <= movie->current_frame; i++) { SwfdecSpriteFrame *frame = &movie->sprite->frames[i]; - if (SWFDEC_IS_ROOT_MOVIE (movie)) { - swfdec_root_movie_perform_root_actions (SWFDEC_ROOT_MOVIE (movie), - movie->current_frame); - } + if (SWFDEC_IS_ROOT_MOVIE (movie)) + swfdec_root_movie_perf...
2007 Jun 27
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie_as.c
...sprite.c index fb3b111..c525fc1 100644 --- a/libswfdec/swfdec_sprite.c +++ b/libswfdec/swfdec_sprite.c @@ -218,21 +218,6 @@ swfdec_sprite_set_n_frames (SwfdecSprite SWFDEC_LOG ("n_frames = %d", sprite->n_frames); } -guint -swfdec_sprite_get_next_frame (SwfdecSprite *sprite, guint current_frame) -{ - guint next_frame; - - g_return_val_if_fail (SWFDEC_IS_SPRITE (sprite), 0); - - next_frame = current_frame + 1; - if (next_frame >= sprite->n_frames) - next_frame = 0; - if (next_frame >= sprite->parse_frame) - next_frame = current_frame; - return next_frame; -} - int...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...video.c index 867259c..e67be19 100644 --- a/libswfdec/swfdec_video.c +++ b/libswfdec/swfdec_video.c @@ -59,26 +59,20 @@ swfdec_video_find_frame (SwfdecVideo *vi typedef struct { SwfdecVideoMovieInput input; + SwfdecVideoMovie * movie; SwfdecVideo * video; gpointer decoder; guint current_frame; - SwfdecBuffer * current_buffer; - cairo_surface_t * surface; } SwfdecVideoInput; -static cairo_surface_t * -swfdec_video_input_get_image (SwfdecVideoMovieInput *input_) -{ - SwfdecVideoInput *input = (SwfdecVideoInput *) input_; - - return input->surface; -} - static void swfdec_vide...
2004 Sep 10
0
1.0 source candidate
...r.c:633 > #2 0x2000000000123300 in FLAC__stream_decoder_process_metadata ( > decoder=0x60000000002beb20) at stream_decoder.c:427 > #3 0x4000000000010320 in write_callback (encoder=0x60000000002b8290, > > buffer=0x60000000002f9df0 "fLaC", bytes=64, samples=0, > current_frame=0, > client_data=0x80000fffffffa5c0) at encode.c:964 > #4 0x200000000012bc60 in FLAC__stream_encoder_init ( > encoder=0x60000000002b8290) at stream_encoder.c:467 > #5 0x400000000000d840 in init_encoder (lax=0, do_mid_side=0, > loose_mid_side=0, do_exhaustive_model_se...
2011 Sep 28
0
FLAC::Encoder::Stream == "FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA"
...return FLAC__STREAM_ENCODER_READ_STATUS_CONTINUE; } else return FLAC__STREAM_ENCODER_READ_STATUS_ABORT; } virtual FLAC__StreamEncoderWriteStatus write_callback (const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame) { if ( FFile->Write((unsigned char*)buffer, 1, bytes) != bytes ) { return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR; } return FLAC__STREAM_ENCODER_WRITE_STATUS_OK; } virtual FLAC__StreamEncoderSeekStatus seek_ca...
2004 Sep 10
2
1.0 source candidate
On Fri, Jul 20, 2001 at 10:51:11PM -0400, Matt Zimmerman wrote: > This version seems to work at least partially on ia64. I am able to encode my > usual test WAV file now, but I still get a segfault during the self-tests. Interestingly enough, when I recompiled with --enable-debug to get a stack trace, it worked. Any ideas how to track down the problem? -- - mdz
2018 Feb 11
4
Parallel assignments and goto
...t` will not work in such a context. The expression will be evaluated inside `bind` or `with`, and not in the `list_lenght` function. A version that *will* work, is something like this factorial_tr_3 <- function (n, acc = 1) { .tailr_env <- rlang::get_env() .tailr_frame <- rlang::current_frame() repeat { if (n <= 1) rlang::return_from(.tailr_frame, acc) else { rlang::env_bind(.tailr_env, n = n - 1, acc = acc * n) rlang::return_to(.tailr_frame) } } } Here, again, for the factorial function since this is easier to fo...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...at; /* format used by decoder */ - unsigned int playback_skip; /* number of samples to skip at the beginning of queue */ + guint playback_skip; /* number of samples to skip at the beginning of queue */ GQueue * playback_queue; /* all the samples we've decoded so far */ - unsigned int current_frame; /* last decoded frame */ + guint current_frame; /* last decoded frame */ gboolean done; /* TRUE when no new data will be made available */ }; diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c index 46b0581..6e25cf7 100644 --- a/libswfdec/swfdec_bits.c +++ b/libswfdec/swfdec...
2018 Feb 11
0
Parallel assignments and goto
...t. The expression will be evaluated inside `bind` or `with`, and not in the `list_lenght` function. > > A version that *will* work, is something like this > > factorial_tr_3 <- function (n, acc = 1) > { > .tailr_env <- rlang::get_env() > .tailr_frame <- rlang::current_frame() > repeat { > if (n <= 1) > rlang::return_from(.tailr_frame, acc) > else { > rlang::env_bind(.tailr_env, n = n - 1, acc = acc * n) > rlang::return_to(.tailr_frame) > } > } > } > > Here, again, for th...
2013 Aug 20
0
sf bug 256 - Virtual functions in destructor
...frames_written=734, unsigned int total_frames_estimate=0, void * client_data=0x0012fe1c) Line 507 + 0x2a bytes C++ Test.exe!file_write_callback_(const FLAC__StreamEncoder * encoder=0x003571f8, const unsigned char * buffer=0x0047daa8, unsigned int bytes=2804, unsigned int samples=1128, unsigned int current_frame=733, void * client_data=0x0012fe1c) Line 4487 + 0x7a bytes C Test.exe!write_frame_(FLAC__StreamEncoder * encoder=0x003571f8, const unsigned char * buffer=0x0047daa8, unsigned int bytes=2804, unsigned int samples=1128, int is_last_block=1) Line 2712 + 0x3a bytes C Test.exe!write_bitbuffer_(FLAC__St...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...stream->buffer_time = 100; /* msecs */ } diff --git a/libswfdec/swfdec_video.c b/libswfdec/swfdec_video.c index 768babd..520960c 100644 --- a/libswfdec/swfdec_video.c +++ b/libswfdec/swfdec_video.c @@ -63,27 +63,52 @@ typedef struct { SwfdecVideo * video; gpointer decoder; guint current_frame; + cairo_surface_t * surface; } SwfdecVideoInput; static void -swfdec_video_input_iterate (SwfdecVideoMovieInput *input_) +swfdec_video_input_set_ratio (SwfdecVideoMovieInput *input_, SwfdecVideoMovie *movie) { SwfdecVideoInput *input = (SwfdecVideoInput *) input_; + guint ratio = SWFDEC...
2007 Feb 08
0
3 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_script.c libswfdec/swfdec_video.c
...ec); + if (input->decoder == NULL) + return NULL; input->input.get_image = swfdec_video_input_get_image; input->input.iterate = swfdec_video_input_iterate; input->input.finalize = swfdec_video_input_finalize; g_object_ref (video); input->video = video; input->current_frame = (guint) -1; - if (video->codec) - input->decoder = swfdec_video_codec_init (video->codec); return &input->input; } @@ -154,7 +160,8 @@ swfdec_video_create_movie (SwfdecGraphic movie->video = SWFDEC_VIDEO (graphic); g_object_ref (graphic); - swfdec_video_movi...
2007 Oct 11
0
10 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_buffer.c libswfdec/swfdec_movie_as_drawing.c test/image test/sound
.../sound.c index 2053446..cdb6f01 100644 --- a/test/sound/sound.c +++ b/test/sound/sound.c @@ -95,8 +95,11 @@ typedef struct { static void audio_added (SwfdecPlayer *player, SwfdecAudio *audio, TestData *data) { - char *name = g_strdup_printf ("%s.%u.%u.raw", data->filename, data->current_frame, data->current_frame_audio); + char *basename = g_path_get_basename (data->filename); + char *name = g_strdup_printf ("%s.%u.%u.raw", basename, data->current_frame, data->current_frame_audio); GList *found = g_list_find_custom (data->files, name, (GCompareFunc) strcmp...
2008 Nov 03
0
No subject
...nue counting down until we reach the target frame, we are now decoding each frame/packet. At the target frame produce the YUV output. Steps 4 and 5 are necessary because ogg only tells you where a frame ends, not where it starts. My code has two further optimisations: - if playing sequentially (current_frame - last_frame < threshold), you don't need to seek again (from trial and error I found threshold is best if it is around 1/4 of the keyframe_granule_shift). Just continue decoding. - I create a hash table of largest granule pos -> keyframe as this is discovered. Doing a binary tree searc...
2018 Feb 26
0
Parallel assignments and goto
...a context. The expression will be evaluated inside `bind` or `with`, and not in the `list_lenght` function. > > A version that *will* work, is something like this > > factorial_tr_3 <- function (n, acc = 1) > { > .tailr_env <- rlang::get_env() > .tailr_frame <- rlang::current_frame() > repeat { > if (n <= 1) > rlang::return_from(.tailr_frame, acc) > else { > rlang::env_bind(.tailr_env, n = n - 1, acc = acc * n) > rlang::return_to(.tailr_frame) > } > } > } > > Here, again, for the factorial function since this is easier to follow than the l...