-
Notifications
You must be signed in to change notification settings - Fork 18
ref_iface_IVDXAContext_CreateRenderTexture
VirtualDub Plugin SDK 1.2
IVDXAContext interface
Creates a renderable texture for off-screen rendering.
uint32 CreateRenderTexture(uint32 width, uint32 height, uint32 borderWidth, uint32 borderHeight, VDXAFormat format, bool wrap);
| width | Width of texture, in pixels. |
| height | Height of texture, in pixels. |
| borderWidth | Maximum number of pixels of border required horizontally. |
| borderHeight | Maximum number of pixels of border required vertically. |
| format | Pixel format to use for off-screen buffer.
|
| wrap | True if the texture should use wrap addressing; false if it should use clamping. |
This method is not thread-safe.
This method is expensive and should be called in startProc, not in
accelRunProc.
Wrapping is only available if the requested width and height are powers of two.
The border width and height are used to control rendering to the buffer so that any necessary borders are created to support sampling slightly outside of the texture bounds.
Renderable textures require persistent VRAM allocations and should be used sparingly. Using too many renderable textures increases VRAM pressure and can result in slow rendering or even allocation failure.
Copyright (C) 2007-2012 Avery Lee.
Setting up your development environment
Conventions
Plugin initialization
Dynamic loading
Reference counting
Using CPU extensions
Introduction
What's new
Breaking changes
Gotchas
Deprecated features
Migrating from the old Filter SDK
Programming model
Handling bitmaps
Creating a video filter
Setting filter parameters
Processing video frames
Managing filter data
Creating time-varying filters
Handling aspect ratio
Prefetching multiple source frames
Handling multiple sources
Making a filter configurable
Scripting support
CPU dependent optimization
VDXA index omitted
Getting started
Writing the module entry point
Creating a video filter
Adding configurability
Adding script support
Introduction
What's new
Autodetect
Direct mode
Video frames vs. samples
Video decodint model
Video decoder