We are using Intel media sdk32 bit for GPU mode..
Once the memory is fully utilized , how we can effectively go to CPU mode. We observed that, once the memory is full, CDecodingPipeline.init fails, but init() method can fail because of lot of reasons.
Any specific way to know GPU allocation is not possible? I mean any specific error code or specific API to see whether GPU allocation is possible or not.
See section 4.16 of Intel Media Developer's Guide.
In most cases, the Init will fail with MFX_ERR_MEMORY_ALLOC (-4), in low memory situations, but there can be other error codes returned that are result of low memory.