Changeset 2023 for trunk/lang


Ignore:
Timestamp:
Jan 9, 2011 9:30:53 PM (13 years ago)
Author:
dkearney
Message:

updates for video widgets
two new video dials
video chooser widget for selecting movies
video preview widget is a no frills movie player.
updated c code to more correctly report the last frame of the movie.
new video speed widget which allows for fractional values between 0x and 1.0x
updated piv/pve example application
fixed "release" function in tcl bindings for RpVideo?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/tcl/src/RpVideoTclInterface.cc

    r1925 r2023  
    3030
    3131static 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]",},
    3333    {"next",  1, (void *)NextOp, 2, 2, "",},
     34    {"release", 1, (void *)ReleaseOp, 2, 2, "",},
    3435    {"seek",  1, (void *)SeekOp, 3, 3, "+n|-n|n",},
    3536    {"size",  1, (void *)SizeOp, 2, 2, "",},
    36     {"release", 1, (void *)ReleaseOp, 2, 2, "",},
    3737};
    3838
     
    243243         Tcl_Obj *const *objv)
    244244{
    245 
    246 //    void *img = NULL;
    247 //    int width = 960;
    248 //    int height = 540;
    249 //    int bufSize = 0;
    250 
    251245    int pos = 0;
    252246    VideoGoNext((VideoObj *)clientData);
    253247    VideoGetPositionCur((VideoObj *)clientData,&pos);
    254248    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);
    259249
    260250    return TCL_OK;
     
    277267         Tcl_Obj *const *objv)
    278268{
    279 
    280 //    void *img = NULL;
    281 //    int width = 960;
    282 //    int height = 540;
    283 //    int bufSize = 0;
    284269    const char *val_s = NULL;
    285270    int val = 0;
     
    311296        int c = 0;
    312297        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    }
    324299
    325300    VideoGetPositionCur((VideoObj *)clientData,&pos);
Note: See TracChangeset for help on using the changeset viewer.