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


Ignore:
Timestamp:
Mar 23, 2021, 9:40:41 AM (6 months ago)
Author:
Sanahuja Guillaume
Message:

select user memory pointer (v4l) if using custom alloc function in images (ie if initdsp was called)

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

Legend:

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

    r401 r403  
    8080}
    8181
     82bool Image::IsUsingDefaultAllocAndFree(void) {
     83    return (allocFunction==DefaultAllocFunction);
     84}
     85
    8286char* Image::DefaultAllocFunction(ssize_t size){
    8387  return (char*)malloc(size);
  • trunk/lib/FlairCore/src/Image.h

    r401 r403  
    111111  static void RegisterAllocFunction(char*(*func)(ssize_t size));
    112112  static void RegisterFreeFunction(void(*func)(char* buffer));
     113  static bool IsUsingDefaultAllocAndFree(void);
    113114  static char* AllocFunction(ssize_t size);
    114115  static void FreeFunction(char* buffer);
Note: See TracChangeset for help on using the changeset viewer.