Ignore:
Timestamp:
Sep 25, 2019, 3:29:26 PM (2 years ago)
Author:
Sanahuja Guillaume
Message:

use less bandwidth in vprnlite

File:
1 edited

Legend:

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

    r214 r330  
    117117void Camera::ProcessUpdate(core::io_data* data) {
    118118        if(getFrameworkManager()->IsLogging() && getFrameworkManager()->IsDeviceLogged(this)) {
     119    Printf("todo logging and jpeg without opencv\n");
     120    /*
    119121                if(logFormat==LogFormat::JPG) {
    120122                        data->GetMutex();
     
    143145                        }
    144146                        data->ReleaseMutex();
    145                 }
     147                }*/
    146148        }
    147149        IODevice::ProcessUpdate(data);
     
    151153        if(filename=="") filename="./"+ObjectName()+"_"+std::to_string(GetTime())+".jpg";
    152154  string::size_type idx = filename.rfind('.');
    153 
     155Printf("todo SavePictureToFile without opencv\n");/*
    154156        if(idx != string::npos) {
    155157                Printf("saving %s\n", filename.c_str());
     
    169171        } else {
    170172                Warn("saving %s no file extension!\n", filename.c_str());
    171         }
     173        }*/
    172174}
    173175
    174176void Camera::SaveRawPictureToFile(string filename) const {
    175   Printf("saving %s, size %i\n", filename.c_str(), output->img->imageSize);
     177  Printf("saving %s, size %i\n", filename.c_str(), output->GetDataType().GetSize());
    176178  std::ofstream pFile;
    177179  pFile.open(filename);
    178180  output->GetMutex();
    179   pFile.write(output->img->imageData, output->img->imageSize);
     181  pFile.write(output->buffer, output->GetDataType().GetSize());
    180182  output->ReleaseMutex();
    181183
Note: See TracChangeset for help on using the changeset viewer.