diff options
Diffstat (limited to 'NET/worlds/scape/VideoManager.java')
| -rw-r--r-- | NET/worlds/scape/VideoManager.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/NET/worlds/scape/VideoManager.java b/NET/worlds/scape/VideoManager.java new file mode 100644 index 0000000..9dc0293 --- /dev/null +++ b/NET/worlds/scape/VideoManager.java @@ -0,0 +1,52 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import java.util.Hashtable; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class VideoManager +/* */ { +/* 15 */ static Hashtable<String, VideoSurface> streams = new Hashtable(); +/* */ +/* */ public static VideoSurface get(String url, int rows, int w, int h) +/* */ { +/* 19 */ Object ob = streams.get(url); +/* */ +/* */ VideoSurface stream; +/* 22 */ if (ob == null) +/* */ { +/* 24 */ VideoSurface stream = new VideoSurface( +/* 25 */ null, rows, w, h); +/* 26 */ streams.put(url, stream); +/* */ } +/* */ else +/* */ { +/* 30 */ stream = (VideoSurface)ob; +/* */ } +/* */ +/* 33 */ stream.incReferenceCount(); +/* 34 */ stream.open(url); +/* 35 */ return stream; +/* */ } +/* */ +/* */ public static void release(VideoSurface stream) +/* */ { +/* 40 */ stream.decReferenceCount(); +/* 41 */ if (stream.getReferenceCount() == 0) +/* */ { +/* 43 */ streams.remove(stream.getVideoUrl()); +/* */ } +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\VideoManager.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |