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

#include <nvEncodeAPI.h>

Data Fields

uint32_t version
 [in]: Struct version. More...
 
uint32_t subResourceIndex
 
voidinputResource
 
NV_ENC_REGISTERED_PTR registeredResource
 [in]: The Registered resource handle obtained by calling NvEncRegisterInputResource. More...
 
NV_ENC_INPUT_PTR mappedResource
 [out]: Mapped pointer corresponding to the registeredResource. More...
 
NV_ENC_BUFFER_FORMAT mappedBufferFmt
 [out]: Buffer format of the outputResource. More...
 
uint32_t reserved1 [251]
 [in]: Reserved and must be set to 0. More...
 
voidreserved2 [63]
 [in]: Reserved and must be set to NULL More...
 

Detailed Description

Definition at line 1615 of file nvEncodeAPI.h.

Field Documentation

uint32_t NV_ENC_MAP_INPUT_RESOURCE::version

[in]: Struct version.

Must be set to NV_ENC_MAP_INPUT_RESOURCE_VER.

Definition at line 1617 of file nvEncodeAPI.h.

Referenced by nvenc_upload_frame().

uint32_t NV_ENC_MAP_INPUT_RESOURCE::subResourceIndex

Do not use.

Definition at line 1618 of file nvEncodeAPI.h.

void* NV_ENC_MAP_INPUT_RESOURCE::inputResource

Do not use.

Definition at line 1619 of file nvEncodeAPI.h.

NV_ENC_REGISTERED_PTR NV_ENC_MAP_INPUT_RESOURCE::registeredResource

[in]: The Registered resource handle obtained by calling NvEncRegisterInputResource.

Definition at line 1620 of file nvEncodeAPI.h.

Referenced by nvenc_upload_frame().

NV_ENC_INPUT_PTR NV_ENC_MAP_INPUT_RESOURCE::mappedResource

[out]: Mapped pointer corresponding to the registeredResource.

This pointer must be used in NV_ENC_PIC_PARAMS::inputBuffer parameter in NvEncEncodePicture() API.

Definition at line 1621 of file nvEncodeAPI.h.

Referenced by ff_nvenc_encode_close(), nvenc_upload_frame(), and process_output_surface().

NV_ENC_BUFFER_FORMAT NV_ENC_MAP_INPUT_RESOURCE::mappedBufferFmt

[out]: Buffer format of the outputResource.

This buffer format must be used in NV_ENC_PIC_PARAMS::bufferFmt if client using the above mapped resource pointer.

Definition at line 1622 of file nvEncodeAPI.h.

Referenced by nvenc_upload_frame().

uint32_t NV_ENC_MAP_INPUT_RESOURCE::reserved1[251]

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

Definition at line 1623 of file nvEncodeAPI.h.

void* NV_ENC_MAP_INPUT_RESOURCE::reserved2[63]

[in]: Reserved and must be set to NULL

Definition at line 1624 of file nvEncodeAPI.h.


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