Still haven't found a good solution to this =\
On Tuesday, December 18, 2012 2:14:08 PM UTC-5, Blaine Booher wrote: > > hi guys, > > my solution to my previously mentioned memory leak is to only use specific > codecs that AVBin0 apparently doesn't bug out on. By doing this I can use > EOS_LOOP on the video and it restarts just fine. > > My question is - once I restart the video, it doesn't refresh all of the > image, leaving it a bit choppy until there is a drastic change in the video > to cause a full refresh of the sprite. Is there an easy way to force a full > image blit? Or maybe clear out the sprite when I restart the video with a > black box or similar? > > Here is how I'm drawing the frames now. thanks! > def on_draw(self): > if self.sprite is None: > self.sprite = Sprite(self.player.get_texture()) # *maybe > we could flush the sprite with all black but this still wouldn't force the > image to be a full video frame* > win_width, win_height = director.get_window_size() > self.sprite.position = (win_width / 2., win_height / 2.) > self.sprite.scale = (win_width / self.sprite.width) > else: > self.sprite.image = self.player.get_texture() # *it would > be nice if i could somehow force this to grab the entire frame, rather than > the recently changed pixels* > self.sprite.draw() > > any ideas? > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyglet-users/-/L8ZIGyXk5I4J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
