IT. Expert System.

Android Reference

IdentityEffect


android.media.effect.effects

Class IdentityEffect

    • Method Detail

      • apply

        public void apply(int inputTexId,
                 int width,
                 int height,
                 int outputTexId)
        Description copied from class: Effect
        Apply an effect to GL textures.

        Apply the Effect on the specified input GL texture, and write the result into the output GL texture. The texture names passed must be valid in the current GL context.

        The input texture must be a valid texture name with the given width and height and must be bound to a GL_TEXTURE_2D texture image (usually done by calling the glTexImage2D() function). Multiple mipmap levels may be provided.

        If the output texture has not been bound to a texture image, it will be automatically bound by the effect as a GL_TEXTURE_2D. It will contain one mipmap level (0), which will have the same size as the input. No other mipmap levels are defined. If the output texture was bound already, and its size does not match the input texture size, the result may be clipped or only partially fill the texture.

        Note, that regardless of whether a texture image was originally provided or not, both the input and output textures are owned by the caller. That is, the caller is responsible for calling glDeleteTextures() to deallocate the input and output textures.

        Specified by:
        apply in class Effect
        Parameters:
        inputTexId - The GL texture name of a valid and bound input texture.
        width - The width of the input texture in pixels.
        height - The height of the input texture in pixels.
        outputTexId - The GL texture name of the output texture.
      • setParameter

        public void setParameter(String parameterKey,
                        Object value)
        Description copied from class: Effect
        Set a filter parameter. Consult the effect documentation for a list of supported parameter keys for each effect.
        Specified by:
        setParameter in class Effect
        Parameters:
        parameterKey - The name of the parameter to adjust.
        value - The new value to set the parameter to.
      • release

        public void release()
        Description copied from class: Effect
        Release an effect.

        Releases the effect and any resources associated with it. You may call this if you need to make sure acquired resources are no longer held by the effect. Releasing an effect makes it invalid for reuse.

        Note that this method must be called with the EffectContext and EGL context current, as the effect may release internal GL resources.

        Specified by:
        release in class Effect


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 359 / 158749071. Delta: 0.00490 с