Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# RENDER_TYPE

### Enum Definition

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    typedef enum tagRENDER_TYPE
    {
        MP_RENDER_NOTSET = 0,
        MP_RENDER_DDRAW,
        MP_RENDER_D3D,
        MP_RENDER_OPENGL,
        MP_RENDER_SDL2,
        MP_RENDER_SDL2_SOFTWARE,
        MP_RENDER_SDL2_OCX = MP_RENDER_SDL2_SOFTWARE,
        MP_RENDER_SDL2_FORLIBVA,
        MP_RENDER_CALLER,
    } RENDER_TYPE;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    public enum RENDER_TYPE
    {
        MP_RENDER_NOTSET = 0,
        MP_RENDER_DDRAW,
        MP_RENDER_D3D,
        MP_RENDER_OPENGL,
        MP_RENDER_SDL2,
        MP_RENDER_SDL2_SOFTWARE,
        MP_RENDER_SDL2_OCX = MP_RENDER_SDL2_SOFTWARE,
        MP_RENDER_SDL2_FORLIBVA,
        MP_RENDER_CALLER,
    }

### Function Description

Rendering Type

### Member Description

Enum name | Value | Remark
--- | --- | ---
MP_RENDER_NOTSET | 0 | Not set.
MP_RENDER_DDRAW | 1 | Ddraw rendering.
MP_RENDER_D3D | 2 | D3d rendering.
MP_RENDER_OPENGL | 3 | OpenGL rendering on non-Windows platforms.
MP_RENDER_SDL2 | 4 | SDL_AUTO.
MP_RENDER_SDL2_SOFTWARE | 5 | SDL_RENDERER_SOFTWARE.
MP_RENDER_SDL2_OCX | 5 | OCX use.
MP_RENDER_SDL2_FORLIBVA | 6 | SDL libva.
MP_RENDER_CALLER | 7 | The playback library only decodes and calls back the YUV data to the caller for rendering.

Error Code