17 package com.generalrobotix.ui.view.tdview;
21 import java.awt.image.BufferedImage;
22 import javax.media.Format;
86 htFormat_=
new Hashtable<String, Format>();
87 Vector<String>
ret =
new Vector<String>();
91 System.getProperty(
"user.dir") +
92 System.getProperty(
"file.separator") +
103 for(
int i=0;
i<formats.length;
i++){
104 String keyStr = formats[
i].toString();
105 if(htFormat_.get(keyStr) !=
null){
109 htFormat_.put(keyStr,formats[
i]);
116 return ret.toArray();
120 Calendar cal=
new GregorianCalendar();
121 String str=
"`~$" + cal.getTime().hashCode() +
".TMP";
124 public Object[]
preRecord(String fileName, String fileType)
126 Vector<String>
ret =
new Vector<String>();
135 htFormat_=
new Hashtable<String, Format>();
137 Format[] formats = movie_.getSupportedFormats();
138 for(
int i=0;
i<formats.length;
i++){
139 String keyStr = formats[
i].toString();
140 if(htFormat_.get(keyStr) !=
null){
144 htFormat_.put(keyStr,formats[
i]);
146 return ret.toArray();
150 Format format=(Format)htFormat_.get(formatStr);
168 Thread.sleep(SLEEP_TIME);
169 }
catch (Exception ex) {
170 ex.printStackTrace();
#define null
our own NULL pointer
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
void setFormat(Format format)
void setFrameRate(float rate)
void pushImage(BufferedImage image)
void setImageSize(int w, int h)
Object [] getSuportedFormat()
static RecordingManager this_
Format [] getSupportedFormats()
Object [] preRecord(String fileName, String fileType)
Hashtable< String, Format > htFormat_
static RecordingManager getInstance()
void pushImage(Image image)
static int MAX_STACK_SIZE
boolean startRecord(String formatStr)