Changeset 169 in flair-src for trunk/lib/FlairSensorActuator


Ignore:
Timestamp:
Apr 13, 2017, 11:52:54 AM (8 years ago)
Author:
Sanahuja Guillaume
Message:

cosmetic

Location:
trunk/lib/FlairSensorActuator/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/Camera.cpp

    r157 r169  
    143143void Camera::SavePictureToFile(string filename) const {
    144144        if(filename=="") filename="./"+ObjectName()+"_"+std::to_string(GetTime())+".jpg";
    145     string::size_type idx = filename.rfind('.');
     145  string::size_type idx = filename.rfind('.');
    146146
    147147        if(idx != string::npos) {
     
    158158                }
    159159                output->ReleaseMutex();
     160    Printf("saving %s ok\n", filename.c_str());
    160161                       
    161162        } else {
  • trunk/lib/FlairSensorActuator/src/V4LCamera.cpp

    r165 r169  
    3737    : Thread(getFrameworkManager(), name, priority),
    3838      Camera(name, width, height, format) {
    39   capture = cvCaptureFromCAM(camera_index); // a mettre apres l'init dsp
    40 
     39  capture = cvCaptureFromCAM(camera_index);
    4140  if (capture < 0)
    4241    Thread::Err("cvCaptureFromCAM error\n");
Note: See TracChangeset for help on using the changeset viewer.