Changeset 401 in flair-src for trunk/lib/FlairCore


Ignore:
Timestamp:
Mar 18, 2021, 11:07:59 AM (4 years ago)
Author:
Sanahuja Guillaume
Message:

resolve bug when not using hdsvisionfilter but using cameras on dm3730

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

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/Image.cpp

    r338 r401  
    6464void Image::RawRead(char *dst) const { Warn("non implementé\n"); }
    6565
     66char* Image::AllocFunction(ssize_t size) {
     67  return allocFunction(size);
     68}
     69
     70void Image::FreeFunction(char* buffer) {
     71 freeFunction(buffer);
     72}
     73
    6674void Image::RegisterAllocFunction(char*(*func)(ssize_t size)) {
    6775  if(allocFunction==DefaultAllocFunction) allocFunction=func;
  • trunk/lib/FlairCore/src/Image.h

    r353 r401  
    111111  static void RegisterAllocFunction(char*(*func)(ssize_t size));
    112112  static void RegisterFreeFunction(void(*func)(char* buffer));
     113  static char* AllocFunction(ssize_t size);
     114  static void FreeFunction(char* buffer);
    113115
    114116private:
Note: See TracChangeset for help on using the changeset viewer.