| com.sun.mmedia.DirectVideo
All known Subclasses: com.sun.mmedia.DirectCamera,
Method Summary | |
protected void | checkPermission() | protected void | checkState() | protected Control | doGetControl(String type) | protected void | doRealize() | protected boolean | doStart() | protected void | doStop() | public int | getDisplayHeight() | public int | getDisplayWidth() | public int | getDisplayX() | public int | getDisplayY() | public byte[] | getSnapshot(String imageType) | public int | getSourceHeight() | public int | getSourceWidth() | public void | hideVideo() | public Object | initDisplayMode(int mode, Object container) | final public void | initSecurityToken(SecurityToken token) Initializes the security token for this class, so it can
perform actions that a normal MIDlet Suite cannot. | native protected int | nGetHeight(int handle) | native protected int | nGetWidth(int handle) | native protected boolean | nSetLocation(int handle, int x, int y, int w, int h) | native protected boolean | nSetVisible(int handle, boolean visible) | native protected byte[] | nSnapShot(int handle, String imageType) | public void | paintVideo(Graphics g) | public void | setDisplayFullScreen(boolean fullScreenMode) | public void | setDisplayLocation(int x, int y) | public void | setDisplaySize(int width, int height) | public void | setVisible(boolean visible) | public void | showVideo() |
DirectVideo | public DirectVideo()(Code) | | |
checkPermission | protected void checkPermission()(Code) | | Check snapshot permission
|
checkState | protected void checkState()(Code) | | Check mode value
|
doGetControl | protected Control doGetControl(String type)(Code) | | Override doGetControl
return VideoControl and GUIControl
|
doRealize | protected void doRealize() throws MediaException(Code) | | Override doRealize
Prepare soure video informations
|
doStart | protected boolean doStart()(Code) | | |
getDisplayHeight | public int getDisplayHeight()(Code) | | Get actual height of rendering
|
getDisplayWidth | public int getDisplayWidth()(Code) | | Get actual width of rendering
|
getDisplayX | public int getDisplayX()(Code) | | |
getDisplayY | public int getDisplayY()(Code) | | |
getSourceHeight | public int getSourceHeight()(Code) | | return source video height
|
getSourceWidth | public int getSourceWidth()(Code) | | return source video width
|
hideVideo | public void hideVideo()(Code) | | Hide video preview (called from CanvasLFImpl)
|
initDisplayMode | public Object initDisplayMode(int mode, Object container)(Code) | | Init display mode
|
initSecurityToken | final public void initSecurityToken(SecurityToken token)(Code) | | Initializes the security token for this class, so it can
perform actions that a normal MIDlet Suite cannot.
Parameters: token - security token for this class. |
nGetHeight | native protected int nGetHeight(int handle)(Code) | | |
nGetWidth | native protected int nGetWidth(int handle)(Code) | | |
nSetLocation | native protected boolean nSetLocation(int handle, int x, int y, int w, int h)(Code) | | |
nSetVisible | native protected boolean nSetVisible(int handle, boolean visible)(Code) | | |
nSnapShot | native protected byte[] nSnapShot(int handle, String imageType)(Code) | | |
paintVideo | public void paintVideo(Graphics g)(Code) | | called from Canvas.paint routine
We have to paint direct video region on Canvas
Notice: This have to be done before device painting action
Zoran ESDK use mask color to draw direct video
|
setDisplayFullScreen | public void setDisplayFullScreen(boolean fullScreenMode) throws MediaException(Code) | | There is no full screen mode now
|
setDisplayLocation | public void setDisplayLocation(int x, int y)(Code) | | Set display location
|
setDisplaySize | public void setDisplaySize(int width, int height) throws MediaException(Code) | | Set display size
|
setVisible | public void setVisible(boolean visible)(Code) | | set visible or unvisible
|
showVideo | public void showVideo()(Code) | | Show video preview (called from CanvasLFImpl)
|
|
|