16.01.2015 Views

NVIDIA CUDA VIDEO ENCODER - CUDA Toolkit Documentation

NVIDIA CUDA VIDEO ENCODER - CUDA Toolkit Documentation

NVIDIA CUDA VIDEO ENCODER - CUDA Toolkit Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ENCODER</strong> INTERFACES<br />

GetCodecType<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Return Value:<br />

Remarks:<br />

Get the current encoding format<br />

HRESULT GetCodecType(DWORD *pdwCodecType)<br />

pwdCodecType<br />

[out] Pointer to store the current encoding format<br />

S_OK: Successful<br />

E_FAIL: The encoding format is not initialized<br />

E_POINTER: pwdCodecType is NULL pointer<br />

If successful, *pdwCodecType stores the current encoding format<br />

IsSupportedParam<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Return Value:<br />

Remarks:<br />

Query if the parameter type is supported<br />

HRESULT IsSupportedParam(DWORD dwParamType)<br />

dwParamType<br />

[in] Parameter support to query<br />

S_OK: The parameter is supported<br />

E_FAIL: The parameter is not supported<br />

Parameter types are listed in Encoder Parameters<br />

SetParamValue<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Return Value:<br />

Remarks:<br />

Set the value of the specified parameter type. The pData points to a<br />

memory region storing the value of the parameter. The parameter can be a<br />

data structure, which must match the size of the parameter type.<br />

HRESULT SetParamValue(DWORD dwParamType, LPVOID pData)<br />

dwParamType<br />

[in] Parameter to set<br />

pData<br />

[in] This pointer points to memory storing the value(s) of the parameter<br />

S_OK: Successful<br />

E_FAIL: Fail to set the value<br />

(e.g. encoder state does not allow)<br />

E_NOTIMPL: Parameter is not adjustable<br />

E_UNEXPECTED: The encoding format is not initialized yet.<br />

E_POINTER: pData is NULL pointer<br />

Parameter types are listed in Encoder Parameters<br />

<strong>NVIDIA</strong> <strong>CUDA</strong> <strong>VIDEO</strong> <strong>ENCODER</strong> SP04456-001_v03 | 13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!