FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
NV_ENC_REGISTER_RESOURCE Struct Reference

#include <nvEncodeAPI.h>

Data Fields

uint32_t version
 [in]: Struct version. More...
 
NV_ENC_INPUT_RESOURCE_TYPE resourceType
 [in]: Specifies the type of resource to be registered. More...
 
uint32_t width
 [in]: Input buffer Width. More...
 
uint32_t height
 [in]: Input buffer Height. More...
 
uint32_t pitch
 [in]: Input buffer Pitch. More...
 
uint32_t subResourceIndex
 [in]: Subresource Index of the DirectX resource to be registered. More...
 
voidresourceToRegister
 [in]: Handle to the resource that is being registered. More...
 
NV_ENC_REGISTERED_PTR registeredResource
 [out]: Registered resource handle. More...
 
NV_ENC_BUFFER_FORMAT bufferFormat
 [in]: Buffer format of resource to be registered. More...
 
uint32_t reserved1 [248]
 [in]: Reserved and must be set to 0. More...
 
voidreserved2 [62]
 [in]: Reserved and must be set to NULL. More...
 

Detailed Description

Definition at line 1737 of file nvEncodeAPI.h.

Field Documentation

uint32_t NV_ENC_REGISTER_RESOURCE::version

[in]: Struct version.

Must be set to NV_ENC_REGISTER_RESOURCE_VER.

Definition at line 1739 of file nvEncodeAPI.h.

NV_ENC_INPUT_RESOURCE_TYPE NV_ENC_REGISTER_RESOURCE::resourceType

[in]: Specifies the type of resource to be registered.

Supported values are NV_ENC_INPUT_RESOURCE_TYPE_DIRECTX, NV_ENC_INPUT_RESOURCE_TYPE_CUDADEVICEPTR, NV_ENC_INPUT_RESOURCE_TYPE_OPENGL_TEX

Definition at line 1740 of file nvEncodeAPI.h.

uint32_t NV_ENC_REGISTER_RESOURCE::width

[in]: Input buffer Width.

Definition at line 1745 of file nvEncodeAPI.h.

uint32_t NV_ENC_REGISTER_RESOURCE::height

[in]: Input buffer Height.

Definition at line 1746 of file nvEncodeAPI.h.

uint32_t NV_ENC_REGISTER_RESOURCE::pitch

[in]: Input buffer Pitch.

Definition at line 1747 of file nvEncodeAPI.h.

uint32_t NV_ENC_REGISTER_RESOURCE::subResourceIndex

[in]: Subresource Index of the DirectX resource to be registered.

Should be set to 0 for other interfaces.

Definition at line 1748 of file nvEncodeAPI.h.

void* NV_ENC_REGISTER_RESOURCE::resourceToRegister

[in]: Handle to the resource that is being registered.

Definition at line 1749 of file nvEncodeAPI.h.

NV_ENC_REGISTERED_PTR NV_ENC_REGISTER_RESOURCE::registeredResource

[out]: Registered resource handle.

This should be used in future interactions with the Nvidia Video Encoder Interface.

Definition at line 1750 of file nvEncodeAPI.h.

NV_ENC_BUFFER_FORMAT NV_ENC_REGISTER_RESOURCE::bufferFormat

[in]: Buffer format of resource to be registered.

Definition at line 1751 of file nvEncodeAPI.h.

uint32_t NV_ENC_REGISTER_RESOURCE::reserved1[248]

[in]: Reserved and must be set to 0.

Definition at line 1752 of file nvEncodeAPI.h.

void* NV_ENC_REGISTER_RESOURCE::reserved2[62]

[in]: Reserved and must be set to NULL.

Definition at line 1753 of file nvEncodeAPI.h.


The documentation for this struct was generated from the following file: