// The implementation backing this interface uses shared memory for the // buffer(s). This means it can only be used by the "owning" process. // At first the process which created the object owns it. When the object // is passed to an interface the creator loses ownership and must Destroy() // the object. Further attempts to use it may fail due to not being able to // access the underlying buffer(s). // // Methods that create or destroy shared memory must be called on the main // thread. They are marked below. class GMPPlane {
public: // MAIN THREAD ONLY // CreateEmptyPlane - set allocated size, actual plane size and stride: // If current size is smaller than current size, then a buffer of sufficient // size will be allocated.
virtual GMPErr CreateEmptyPlane(int32_t aAllocatedSize, int32_t aStride,
int32_t aPlaneSize) = 0;
// MAIN THREAD ONLY // Copy the entire plane data.
virtual GMPErr Copy(const GMPPlane& aPlane) = 0;
// MAIN THREAD ONLY // Copy buffer: If current size is smaller // than current size, then a buffer of sufficient size will be allocated.
virtual GMPErr Copy(int32_t aSize, int32_t aStride, const uint8_t* aBuffer) = 0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.