internal bool queryBufferCaps(eBufferType bufferType, eMemory type) { // If you want to query the capabilities with a minimum of side-effects, then this can be called with count set to 0, memory set to V4L2_MEMORY_MMAP and type set to the buffer type. // This will free any previously allocated buffers, so this is typically something that will be done at the start of the application. sRequestBuffers requestBuffers = new sRequestBuffers(); requestBuffers.memory = type; requestBuffers.type = eBufferType.VideoOutputMPlane; return(file.tryCall(eControlCode.REQBUFS, ref requestBuffers)); }
public static IMemory GetInstance(eMemory memoryType) { switch (memoryType) { case eMemory.CachedMemory: return null; // TODO: implement Cached Memory default: return new MemoryBasic(); } }