blob: 9af989b83a840586fe045fb0b7528d53568e8d3a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
package NET.worlds.scape;
public class DirectShow implements TextureSurfaceRenderer {
static final int nUnitialized = 0;
static final int nStopped = 1;
static final int nPaused = 2;
static final int nPlaying = 3;
private int mediaRendererInstancePtr;
private int m_hwnd;
public DirectShow() {
nativeInit();
this.nInit(0);
}
public DirectShow(int hwnd) {
this.m_hwnd = hwnd;
nativeInit();
this.nInit(hwnd);
}
@Override
public void finalize() {
this.nTick();
this.nStop();
this.nShutdown();
}
@Override
public void renderTo(int dc) {
this.nRenderTo(this.m_hwnd, dc);
}
public static native void nativeInit();
protected native void nInit(int var1);
protected native void nShutdown();
public native void nOpen(String var1);
public native void nPlay(int var1);
public native void nStop();
public native void nPause();
public native void nRenderTo(int var1, int var2);
public native int nTick();
}
|