• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • NVIDIA DRIVE OS Linux SDK API Reference

    6.0.9 Release
    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    nvmedia_2d.h File Reference

    Detailed Description

    NVIDIA Media Interface: 2D Processing Control

    Description: This file contains the #image_2d_api "Image 2D Processing API."

    Definition in file nvmedia_2d.h.

    Go to the source code of this file.

    Data Structures

    struct  NvMedia2DAttributes
     Attributes structure for NvMedia2DCreate(). More...
     
    struct  NvMedia2DComposeResult
     Stores information returned from NvMedia2DCompose(). More...
     
    struct  NvMedia2DFilterCoefficients5Tap
     Coefficients values structure for 5-tap custom filter. More...
     
    struct  NvMedia2DFilterCoefficients10Tap
     Coefficients values structure for 10-tap custom filter. More...
     

    Macros

    #define NVMEDIA_2D_VERSION_MAJOR   8
     Major version number of NvMedia 2D header. More...
     
    #define NVMEDIA_2D_VERSION_MINOR   0
     Minor version number of NvMedia 2D header. More...
     
    #define NVMEDIA_2D_VERSION_PATCH   0
     Patch version number of NvMedia 2D header. More...
     

    Typedefs

    typedef uint32_t NvMedia2DComposeParameters
     Stores configuration for the NvMedia2DCompose() operation. More...
     
    typedef uint32_t NvMedia2DFilterBuffer
     Stores a filter buffer which coefficients can be configured. More...
     
    typedef struct NvMedia2D NvMedia2D
     NvMedia2D Context. More...
     

    Enumerations

    enum  NvMedia2DFilter {
      NVMEDIA_2D_FILTER_OFF = 0x1,
      NVMEDIA_2D_FILTER_LOW,
      NVMEDIA_2D_FILTER_MEDIUM,
      NVMEDIA_2D_FILTER_HIGH
    }
     2D filter mode. More...
     
    enum  NvMedia2DTransform {
      NVMEDIA_2D_TRANSFORM_NONE = 0x0,
      NVMEDIA_2D_TRANSFORM_ROTATE_90,
      NVMEDIA_2D_TRANSFORM_ROTATE_180,
      NVMEDIA_2D_TRANSFORM_ROTATE_270,
      NVMEDIA_2D_TRANSFORM_FLIP_HORIZONTAL,
      NVMEDIA_2D_TRANSFORM_INV_TRANSPOSE,
      NVMEDIA_2D_TRANSFORM_FLIP_VERTICAL,
      NVMEDIA_2D_TRANSFORM_TRANSPOSE
    }
     2D rotation/transform. More...
     
    enum  NvMedia2DBlendMode {
      NVMEDIA_2D_BLEND_MODE_DISABLED,
      NVMEDIA_2D_BLEND_MODE_CONSTANT_ALPHA,
      NVMEDIA_2D_BLEND_MODE_STRAIGHT_ALPHA,
      NVMEDIA_2D_BLEND_MODE_PREMULTIPLIED_ALPHA
    }
     Blending to use when compositing surfaces. More...
     

    Functions

    NvMediaStatus NvMedia2DGetVersion (NvMediaVersion *version)
     Returns the version number of the NvMedia 2D library. More...
     
    NvMediaStatus NvMedia2DCreate (NvMedia2D **handle, NvMedia2DAttributes const *const attr)
     Creates a new NvMedia2D context. More...
     
    NvMediaStatus NvMedia2DDestroy (NvMedia2D *handle)
     Destroys the NvMedia2D context. More...
     
    NvMediaStatus NvMedia2DGetComposeParameters (NvMedia2D *const handle, NvMedia2DComposeParameters *params)
     Returns an NvMedia2DComposeParameters instance. More...
     
    NvMediaStatus NvMedia2DCompose (NvMedia2D *const handle, NvMedia2DComposeParameters const params, NvMedia2DComposeResult *const result)
     Performs a 2D compose operation. More...
     
    NvMediaStatus NvMedia2DSetSrcGeometry (NvMedia2D *const handle, NvMedia2DComposeParameters const params, uint32_t const index, NvMediaRect const *const srcRect, NvMediaRect const *const dstRect, NvMedia2DTransform const transform)
     Sets the geometry for a source layer. More...
     
    NvMediaStatus NvMedia2DSetSrcFilter (NvMedia2D *const handle, NvMedia2DComposeParameters const params, uint32_t const index, NvMedia2DFilter const filter)
     Sets the filter mode for a source layer. More...
     
    NvMediaStatus NvMedia2DSetSrcBlendMode (NvMedia2D *const handle, NvMedia2DComposeParameters const params, uint32_t const index, NvMedia2DBlendMode const blendMode, float const constantAlpha)
     Sets the blend mode for a source layer. More...
     
    NvMediaStatus NvMedia2DCreateFilterBuffer (NvMedia2D *const handle, NvMedia2DFilterBuffer *const filterBuffer)
     Creates and returns an NvMedia2DFilterBuffer instance. More...
     
    NvMediaStatus NvMedia2DDestroyFilterBuffer (NvMedia2D *const handle, NvMedia2DFilterBuffer const filterBuffer)
     Destroys an NvMedia2DFilterBuffer instance. More...
     
    NvMediaStatus NvMedia2DSetFilterBuffer (NvMedia2D *const handle, NvMedia2DComposeParameters const params, NvMedia2DFilterBuffer const filterBuffer)
     Sets the filter buffer for an NvMedia2DComposeParameters instance. More...
     
    NvMediaStatus NvMedia2DComputeFilterCoefficients5Tap (NvMedia2D *const handle, NvMedia2DFilterBuffer const filterBuffer, uint32_t const index, NvMedia2DFilterCoefficients5Tap const *const lumaX, NvMedia2DFilterCoefficients5Tap const *const lumaY, NvMedia2DFilterCoefficients5Tap const *const chromaX, NvMedia2DFilterCoefficients5Tap const *const chromaY)
     Computes the 5-tap filter coefficients for an NvMedia2DFilterBuffer. More...
     
    NvMediaStatus NvMedia2DComputeFilterCoefficients10Tap (NvMedia2D *const handle, NvMedia2DFilterBuffer const filterBuffer, uint32_t const index, NvMedia2DFilterCoefficients10Tap const *const lumaX, NvMedia2DFilterCoefficients10Tap const *const lumaY, NvMedia2DFilterCoefficients10Tap const *const chromaX, NvMedia2DFilterCoefficients10Tap const *const chromaY)
     Computes the 10-tap filter coefficients for an NvMedia2DFilterBuffer. More...
     
    人人超碰97caoporen国产