Displaying 15 results from an estimated 15 matches for "get_player".
2020 Oct 08
0
Retrosheet Data
Have used Jim Albert?s code to extract baseball data from Retrosheet.
function(team){
P <- getRetrosheet("play",2013,team)
get_plays <- function(j) data.frame(Game=P[[j]]$id[1],P[[j]]$play)#from $id and $play section of retrosheet data
do.call("rbind",lapply(1:length(P),get_plays))
}
all_plays <- do.call("rbind",lapply(Teams[1:30],get_team_plays))
2007 Aug 18
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object_as.h libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...oad_object->target), SWFDEC_AS_STR_onData, 1, &val, NULL);
+ swfdec_as_object_call (load_object->target, SWFDEC_AS_STR_onData, 1, &val, NULL);
}
static void
@@ -105,6 +119,7 @@ static void
swfdec_load_object_loader_target_init (SwfdecLoaderTargetInterface *iface)
{
iface->get_player = swfdec_load_object_loader_target_get_player;
+ iface->parse = swfdec_load_object_loader_target_parse;
iface->eof = swfdec_load_object_loader_target_eof;
iface->error = swfdec_load_object_loader_target_error;
}
diff-tree 0c9f29a8c03fea12e171e839cbc26df4d57705cf (from c7b0dabb45c65...
2007 Mar 26
0
6 commits - doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/swfdec_loader.c player/swfplay.c swfdec-gtk.pc.in
doc/swfdec-sections.txt | 6 +++---
libswfdec-gtk/Makefile.am | 2 +-
libswfdec-gtk/swfdec_gtk_player.c | 13 +++++++------
libswfdec-gtk/swfdec_gtk_player.h | 4 ++--
libswfdec/swfdec_loader.c | 1 -
player/swfplay.c | 2 +-
swfdec-gtk.pc.in | 2 +-
7 files changed, 15 insertions(+), 15 deletions(-)
New commits:
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
...ic void
swfdec_loader_perform_push (gpointer loaderp, gpointer unused)
{
diff --git a/libswfdec/swfdec_loadertarget.c b/libswfdec/swfdec_loadertarget.c
index aa939b7..a6723b1 100644
--- a/libswfdec/swfdec_loadertarget.c
+++ b/libswfdec/swfdec_loadertarget.c
@@ -76,6 +76,21 @@ swfdec_loader_target_get_player (SwfdecL
}
void
+swfdec_loader_target_open (SwfdecLoaderTarget *target, SwfdecLoader *loader, guint status)
+{
+ SwfdecLoaderTargetInterface *iface;
+
+ g_return_if_fail (SWFDEC_IS_LOADER_TARGET (target));
+ g_return_if_fail (SWFDEC_IS_LOADER (loader));
+
+ SWFDEC_LOG ("opening %p (s...
2007 Oct 19
0
8 commits - libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c
...c_resource_parse (resource, loader);
+ /* FIXME: This someow initializes the first frame here. Is this ok? */
+ movie = SWFDEC_MOVIE (resource->movie);
+ swfdec_movie_initialize (movie);
+}
+
+static void
swfdec_resource_loader_target_init (SwfdecLoaderTargetInterface *iface)
{
iface->get_player = swfdec_resource_loader_target_get_player;
iface->open = swfdec_resource_loader_target_open;
iface->parse = swfdec_resource_loader_target_parse;
+ iface->eof = swfdec_resource_loader_target_eof;
}
static void
commit 4cd1b65aa19f1fc14d98941d569ce7659bce521f
Author: Benjamin Otte...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...wfdec_xml.h"
+#include "swfdec_debug.h"
+#include "swfdec_loadertarget.h"
+#include "swfdec_player_internal.h"
+#include "js/jsapi.h"
+#include "js/jsinterp.h"
+
+/*** SWFDEC_LOADER_TARGET ***/
+
+static SwfdecPlayer *
+swfdec_xml_loader_target_get_player (SwfdecLoaderTarget *target)
+{
+ SwfdecXml *xml = SWFDEC_XML (target);
+
+ return xml->player;
+}
+
+static void
+swfdec_xml_ondata (SwfdecXml *xml)
+{
+ JSContext *cx = SWFDEC_SCRIPTABLE (xml)->jscx;
+ JSObject *obj = SWFDEC_SCRIPTABLE (xml)->jsobj;
+ jsval val, fun;
+ JSString *st...
2007 Aug 02
0
15 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_file_loader.c libswfdec/swfdec_file_loader.h
...}
+
+static void
swfdec_swf_instance_loader_target_parse (SwfdecLoaderTarget *target, SwfdecLoader *loader)
{
SwfdecSwfInstance *instance = SWFDEC_SWF_INSTANCE (target);
@@ -141,6 +158,7 @@ static void
swfdec_swf_instance_loader_target_init (SwfdecLoaderTargetInterface *iface)
{
iface->get_player = swfdec_swf_instance_loader_target_get_player;
+ iface->open = swfdec_swf_instance_loader_target_open;
iface->parse = swfdec_swf_instance_loader_target_parse;
}
@@ -155,6 +173,7 @@ swfdec_swf_instance_dispose (GObject *ob
g_object_unref (instance->decoder);
instance->d...
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
...guint depth);
gboolean swfdec_player_fscommand (SwfdecPlayer * player,
diff --git a/libswfdec/swfdec_resource.c b/libswfdec/swfdec_resource.c
index 21c8a82..4f2a6be 100644
--- a/libswfdec/swfdec_resource.c
+++ b/libswfdec/swfdec_resource.c
@@ -53,18 +53,26 @@ swfdec_resource_loader_target_get_player (SwfdecLoaderTarget *target)
}
static void
-swfdec_resource_allow_network (SwfdecPlayer *player)
+swfdec_resource_check_rights (SwfdecResource *resource)
{
- SwfdecFlashSecurity *sec;
+ SwfdecFlashSecurity *sec = SWFDEC_FLASH_SECURITY (resource);
+ SwfdecSwfDecoder *dec = SWFDEC_SWF_DECODER...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...ALUE_SET_INT (&vals[0], 0); /* FIXME */
- swfdec_resource_emit_signal (instance, SWFDEC_AS_STR_onLoadComplete, vals, 1);
+ swfdec_resource_emit_error (resource, message);
}
static void
@@ -246,6 +288,7 @@ swfdec_resource_loader_target_init (SwfdecLoaderTargetInterface *iface)
iface->get_player = swfdec_resource_loader_target_get_player;
iface->open = swfdec_resource_loader_target_open;
iface->parse = swfdec_resource_loader_target_parse;
+ iface->error = swfdec_resource_loader_target_error;
iface->eof = swfdec_resource_loader_target_eof;
}
@@ -302,6 +345,7 @@ swfd...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...data to pass to func */
+};
+
+static void
+swfdec_policy_file_request_free (SwfdecPolicyFileRequest *request)
+{
+ swfdec_url_free (request->url);
+ g_slice_free (SwfdecPolicyFileRequest, request);
+}
+
/*** PARSING THE FILE ***/
static void
@@ -108,13 +122,46 @@ swfdec_policy_file_target_get_player (SwfdecLoaderTarget *target)
}
static void
+swfdec_policy_file_finished_loading (SwfdecPolicyFile *file, const char *text)
+{
+ SwfdecPlayerPrivate *priv;
+ SwfdecPolicyFile *next;
+ GList *link;
+
+ swfdec_loader_set_target (file->stream, NULL);
+ file->stream = NULL;
+
+ if (text)...
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
...tream->current_time != current ||
- stream->next_time != next)
- swfdec_net_stream_video_goto (stream, current);
- swfdec_net_stream_update_playing (stream);
-
- return TRUE;
-}
static void
swfdec_net_stream_loader_target_init (SwfdecLoaderTargetInterface *iface)
{
iface->get_player = swfdec_net_stream_loader_target_get_player;
- iface->get_decoder = swfdec_net_stream_loader_target_get_decoder;
- iface->set_decoder = swfdec_net_stream_loader_target_set_decoder;
-
- iface->init = swfdec_net_stream_loader_target_image;
- iface->image = swfdec_net_stream_loader_ta...
2008 Jun 15
1
14 commits - configure.ac swfdec/.gitignore swfdec-gtk/swfdec_gtk_loader.c swfdec-gtk/swfdec_playback_alsa.c swfdec/Makefile.am swfdec/swfdec_asnative.h swfdec/swfdec_as_string.c swfdec/swfdec_audio.c swfdec/swfdec_audio_load.c swfdec/swfdec_audio_load.h
...de "swfdec_debug.h"
+#include "swfdec_loader_internal.h"
+#include "swfdec_player_internal.h"
+#include "swfdec_sandbox.h"
+#include "swfdec_stream_target.h"
+
+/*** SWFDEC_STREAM_TARGET ***/
+
+static SwfdecPlayer *
+swfdec_load_sound_stream_target_get_player (SwfdecStreamTarget *target)
+{
+ return SWFDEC_PLAYER (SWFDEC_LOAD_SOUND (target)->target->context);
+}
+
+static gboolean
+swfdec_load_sound_mp3_parse_id3v2 (SwfdecLoadSound *sound, SwfdecBufferQueue *queue)
+{
+ SwfdecBuffer *buffer;
+ SwfdecBits bits;
+ guint size;
+ gboolean footer;...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...oad_object->target), SWFDEC_AS_STR_onData, 1, &val, NULL);
+ swfdec_as_object_call (load_object->target, SWFDEC_AS_STR_onData, 1, &val, NULL);
}
static void
@@ -105,6 +119,7 @@ static void
swfdec_load_object_loader_target_init (SwfdecLoaderTargetInterface *iface)
{
iface->get_player = swfdec_load_object_loader_target_get_player;
+ iface->parse = swfdec_load_object_loader_target_parse;
iface->eof = swfdec_load_object_loader_target_eof;
iface->error = swfdec_load_object_loader_target_error;
}
diff-tree 0c9f29a8c03fea12e171e839cbc26df4d57705cf (from c7b0dabb45c65...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...DEC_AS_STR_onLoadProgress, vals, 2);
+ SWFDEC_AS_VALUE_SET_INT (&vals[0], 0); /* FIXME */
+ swfdec_resource_emit_signal (instance, SWFDEC_AS_STR_onLoadComplete, vals, 1);
}
static void
@@ -188,6 +235,7 @@ swfdec_resource_loader_target_init (SwfdecLoaderTargetInterface *iface)
iface->get_player = swfdec_resource_loader_target_get_player;
iface->open = swfdec_resource_loader_target_open;
iface->parse = swfdec_resource_loader_target_parse;
+ iface->eof = swfdec_resource_loader_target_eof;
}
static void
commit 7c41e278c85cc306b640a309cbe8e6e27f789420
Author: Benjamin Otte...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...{
g_return_val_if_fail (SWFDEC_IS_RESOURCE (resource), FALSE);
- return resource->movie == resource->player->roots->data;
+ return
+ resource->movie == SWFDEC_FLASH_SECURITY (resource)->player->roots->data;
}
static SwfdecPlayer *
swfdec_resource_loader_target_get_player (SwfdecLoaderTarget *target)
{
- return SWFDEC_RESOURCE (target)->player;
+ return SWFDEC_FLASH_SECURITY (target)->player;
}
static void
@@ -97,7 +98,7 @@ swfdec_resource_loader_target_image (SwfdecResource *instance)
swfdec_resource_check_rights (instance);
if (swfdec_resour...