Search in sources :

Example 1 with FrameManager

use of android.filterfw.core.FrameManager in project android_frameworks_base by ParanoidAndroid.

the class FilterEffect method frameFromTexture.

/**
     * Converts a texture into a Frame.
     */
protected Frame frameFromTexture(int texId, int width, int height) {
    FrameManager manager = getFilterContext().getFrameManager();
    FrameFormat format = ImageFormat.create(width, height, ImageFormat.COLORSPACE_RGBA, FrameFormat.TARGET_GPU);
    Frame frame = manager.newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, texId);
    frame.setTimestamp(Frame.TIMESTAMP_UNKNOWN);
    return frame;
}
Also used : FrameFormat(android.filterfw.core.FrameFormat) Frame(android.filterfw.core.Frame) GLFrame(android.filterfw.core.GLFrame) CachedFrameManager(android.filterfw.core.CachedFrameManager) FrameManager(android.filterfw.core.FrameManager)

Example 2 with FrameManager

use of android.filterfw.core.FrameManager in project platform_frameworks_base by android.

the class FilterEffect method frameFromTexture.

/**
     * Converts a texture into a Frame.
     */
protected Frame frameFromTexture(int texId, int width, int height) {
    FrameManager manager = getFilterContext().getFrameManager();
    FrameFormat format = ImageFormat.create(width, height, ImageFormat.COLORSPACE_RGBA, FrameFormat.TARGET_GPU);
    Frame frame = manager.newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, texId);
    frame.setTimestamp(Frame.TIMESTAMP_UNKNOWN);
    return frame;
}
Also used : FrameFormat(android.filterfw.core.FrameFormat) Frame(android.filterfw.core.Frame) GLFrame(android.filterfw.core.GLFrame) FrameManager(android.filterfw.core.FrameManager)

Example 3 with FrameManager

use of android.filterfw.core.FrameManager in project android_frameworks_base by DirtyUnicorns.

the class FilterEffect method frameFromTexture.

/**
     * Converts a texture into a Frame.
     */
protected Frame frameFromTexture(int texId, int width, int height) {
    FrameManager manager = getFilterContext().getFrameManager();
    FrameFormat format = ImageFormat.create(width, height, ImageFormat.COLORSPACE_RGBA, FrameFormat.TARGET_GPU);
    Frame frame = manager.newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, texId);
    frame.setTimestamp(Frame.TIMESTAMP_UNKNOWN);
    return frame;
}
Also used : FrameFormat(android.filterfw.core.FrameFormat) Frame(android.filterfw.core.Frame) GLFrame(android.filterfw.core.GLFrame) FrameManager(android.filterfw.core.FrameManager)

Example 4 with FrameManager

use of android.filterfw.core.FrameManager in project android_frameworks_base by AOSPA.

the class FilterEffect method frameFromTexture.

/**
     * Converts a texture into a Frame.
     */
protected Frame frameFromTexture(int texId, int width, int height) {
    FrameManager manager = getFilterContext().getFrameManager();
    FrameFormat format = ImageFormat.create(width, height, ImageFormat.COLORSPACE_RGBA, FrameFormat.TARGET_GPU);
    Frame frame = manager.newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, texId);
    frame.setTimestamp(Frame.TIMESTAMP_UNKNOWN);
    return frame;
}
Also used : FrameFormat(android.filterfw.core.FrameFormat) Frame(android.filterfw.core.Frame) GLFrame(android.filterfw.core.GLFrame) FrameManager(android.filterfw.core.FrameManager)

Example 5 with FrameManager

use of android.filterfw.core.FrameManager in project android_frameworks_base by crdroidandroid.

the class FilterEffect method frameFromTexture.

/**
     * Converts a texture into a Frame.
     */
protected Frame frameFromTexture(int texId, int width, int height) {
    FrameManager manager = getFilterContext().getFrameManager();
    FrameFormat format = ImageFormat.create(width, height, ImageFormat.COLORSPACE_RGBA, FrameFormat.TARGET_GPU);
    Frame frame = manager.newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, texId);
    frame.setTimestamp(Frame.TIMESTAMP_UNKNOWN);
    return frame;
}
Also used : FrameFormat(android.filterfw.core.FrameFormat) Frame(android.filterfw.core.Frame) GLFrame(android.filterfw.core.GLFrame) FrameManager(android.filterfw.core.FrameManager)

Aggregations

Frame (android.filterfw.core.Frame)6 FrameFormat (android.filterfw.core.FrameFormat)6 FrameManager (android.filterfw.core.FrameManager)6 GLFrame (android.filterfw.core.GLFrame)6 CachedFrameManager (android.filterfw.core.CachedFrameManager)1