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 />

NVGetCodec<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Return Value:<br />

Remarks:<br />

Get the current encoding format<br />

HRESULT __stdcall NVGetCodec (NVEncoder hNVEncoder, DWORD<br />

*pdwCodecType)<br />

hNVEncoder<br />

[in] Handle to the encoder instance<br />

pdwCodecType<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: pdwCodecType is NULL pointer/ encoder handle is invalid<br />

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

NVIsSupportedParam<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Return Value:<br />

Query if the parameter type is supported<br />

HRESULT __stdcall NVIsSupportedParam(NVEncoder hNVEncoder, DWORD<br />

dwParamType)<br />

hNVEncoder<br />

[in] Handle to the encoder instance<br />

dwParamType<br />

[in] Parameter support to query<br />

S_OK: The parameter is supported<br />

E_FAIL: The parameter is not supported<br />

E_POINTER : Encoder handle is invalid<br />

Remarks: Parameter types are listed in Encoder Parameters on page 25<br />

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

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

Saved successfully!

Ooh no, something went wrong!