Changeset 2023 for trunk/lang/tcl/src/RpVideoTclInterface.cc
- Timestamp:
- Jan 9, 2011, 9:30:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lang/tcl/src/RpVideoTclInterface.cc
r1925 r2023 30 30 31 31 static Rp_OpSpec rpVideoOps[] = { 32 {"get", 1, (void *)GetOp, 3, 5, "[image ?width height?]|[position cur|end]|[framerate]",},32 {"get", 1, (void *)GetOp, 3, 5, "[image ?width height?]|[position cur|end]|[framerate]",}, 33 33 {"next", 1, (void *)NextOp, 2, 2, "",}, 34 {"release", 1, (void *)ReleaseOp, 2, 2, "",}, 34 35 {"seek", 1, (void *)SeekOp, 3, 3, "+n|-n|n",}, 35 36 {"size", 1, (void *)SizeOp, 2, 2, "",}, 36 {"release", 1, (void *)ReleaseOp, 2, 2, "",},37 37 }; 38 38 … … 243 243 Tcl_Obj *const *objv) 244 244 { 245 246 // void *img = NULL;247 // int width = 960;248 // int height = 540;249 // int bufSize = 0;250 251 245 int pos = 0; 252 246 VideoGoNext((VideoObj *)clientData); 253 247 VideoGetPositionCur((VideoObj *)clientData,&pos); 254 248 Tcl_SetObjResult(interp, Tcl_NewIntObj(pos)); 255 // VideoGetImage((VideoObj *)clientData, width, height, &img, &bufSize);256 257 // Tcl_SetByteArrayObj(Tcl_GetObjResult(interp),258 // (const unsigned char*)img, bufSize);259 249 260 250 return TCL_OK; … … 277 267 Tcl_Obj *const *objv) 278 268 { 279 280 // void *img = NULL;281 // int width = 960;282 // int height = 540;283 // int bufSize = 0;284 269 const char *val_s = NULL; 285 270 int val = 0; … … 311 296 int c = 0; 312 297 c = VideoGoToN((VideoObj *)clientData, val); 313 // printf("c = %d\tval = %d\n",c,val); 314 } 315 316 // VideoGetImage((VideoObj *)clientData, width, height, &img, &bufSize); 317 318 // if (img == NULL) { 319 // printf("img is null\n"); 320 // } 321 322 // Tcl_SetByteArrayObj(Tcl_GetObjResult(interp), 323 // (const unsigned char*)img, bufSize); 298 } 324 299 325 300 VideoGetPositionCur((VideoObj *)clientData,&pos);
Note: See TracChangeset
for help on using the changeset viewer.