/* */ package NET.worlds.scape; /* */ /* */ import java.util.Hashtable; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class VideoManager /* */ { /* 15 */ static Hashtable 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 */