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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

IsSupportedCodecProfile<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Return Value:<br />

Remarks:<br />

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

HRESULT IsSupportedCodecProfile (DWORD dwCodecType, DWORD<br />

dwProfileType)<br />

dwCodecType<br />

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

dwProfileType<br />

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

S_OK: The profile is supported<br />

E_NOINTERFACE: The profile is not supported<br />

E_FAIL: No <strong>CUDA</strong> capability present<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 for the H.264 codec.<br />

NVVE_H264_PROFILE_HIGH support is limited<br />

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

SetCodecType<br />

Description:<br />

Syntax:<br />

Parameter:<br />

Return Value:<br />

Remarks:<br />

Set encoder codec format<br />

HRESULT SetCodecType(DWORD dwCodecType)<br />

dwCodecType<br />

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

S_OK: Sucessful<br />

E_FAIL: Fail<br />

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

This API must be called before the filter goes to run state, otherwise the<br />

graph will not play.<br />

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

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

Saved successfully!

Ooh no, something went wrong!