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

NVIsSupportedCodecProfile<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Query if the profile for codec format is supported by the encoder<br />

HRESULT __stdcall NVIsSupportedCodecProfile(NVEncoder hNVEncoder,<br />

DWORD dwCodecType, DWORD dwProfileType)<br />

hNVEncoder<br />

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

dwCodecType<br />

[in] Codec type support to query<br />

dwProfileType<br />

[in] Codec profile support to query.<br />

Return Value: S_OK: The profile is supported<br />

E_NOINTERFACE: The profile is not supported<br />

E_FAIL: No <strong>CUDA</strong> capability present<br />

E_POINTER : Encoder handle is invalid<br />

Remarks:<br />

For dwCodecType, only NV_CODEC_TYPE_H264 is supported.<br />

For dwProfileType, NVVE_H264_PROFILE_BASELINE and<br />

NVVE_H264_PROFILE_MAIN are supported. NVVE_H264_PROFILE_HIGH support<br />

is limited<br />

(only at header bits in bitstream)<br />

NVSetCodec<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Set encoder codec format<br />

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

dwCodecType)<br />

hNVEncoder<br />

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

dwCodecType<br />

[in] Codec format to be set<br />

Return Value: S_OK: Successful<br />

E_NOINTERFACE: Codec format is not supported<br />

E_FAIL: No <strong>CUDA</strong> capability present<br />

E_POINTER : Encoder handle is invalid<br />

Remarks:<br />

For dwCodecType, only NV_CODEC_TYPE_H264 is supported.<br />

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

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

Saved successfully!

Ooh no, something went wrong!