// // Copyright 2016 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. //
// Stream.h: Defines the egl::Stream class, representing the stream // where frames are streamed in. Implements EGLStreanKHR.
enum class ConsumerType
{
NoConsumer,
GLTextureRGB,
GLTextureYUV,
};
enum class ProducerType
{
NoProducer,
D3D11Texture,
};
// A GL texture interpretation of a part of a producer frame. For use with GL texture consumers struct GLTextureDescription
{ unsigned int width; unsigned int height; unsigned int internalFormat; unsigned int mipLevels;
};
// Some consumers are bound to GL contexts. This validates that a given context is bound to the // stream's consumer bool isConsumerBoundToContext(const gl::Context *context) const;
// Associated GL context. Note that this is a weak pointer used for validation purposes only, // and should never be arbitrarily dereferenced without knowing the context still exists as it // can become dangling at any time.
gl::Context *mContext;
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.