mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-28 18:49:14 +08:00
90 lines
3.0 KiB
XML
90 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE entry SYSTEM "SamplesInfo.dtd">
|
|
<entry>
|
|
<name>NV12toBGRandResize</name>
|
|
<cuda_api_list>
|
|
<toolkit>cudaStreamDestroy</toolkit>
|
|
<toolkit>cudaFree</toolkit>
|
|
<toolkit>cudaEventRecord</toolkit>
|
|
<toolkit>cudaMallocManaged</toolkit>
|
|
<toolkit>cudaStreamCreate</toolkit>
|
|
<toolkit>cudaEventCreate</toolkit>
|
|
<toolkit>cudaEventElapsedTime</toolkit>
|
|
<toolkit>cudaDeviceSynchronize</toolkit>
|
|
<toolkit>cudaDestroyTextureObject</toolkit>
|
|
<toolkit>cudaEventSynchronize</toolkit>
|
|
<toolkit>cudaStreamAttachMemAsync</toolkit>
|
|
<toolkit>cudaCreateTextureObject</toolkit>
|
|
<toolkit>cudaMalloc</toolkit>
|
|
<toolkit>cudaEventDestroy</toolkit>
|
|
<toolkit>cudaMemcpy</toolkit>
|
|
</cuda_api_list>
|
|
<description><![CDATA[This code shows two ways to convert and resize NV12 frames to BGR 3 planars frames using CUDA in batch. Way-1, Convert NV12 Input to BGR @ Input Resolution-1, then Resize to Resolution#2. Way-2, resize NV12 Input to Resolution#2 then convert it to BGR Output. NVIDIA HW Decoder, both dGPU and Tegra, normally outputs NV12 pitch format frames. For the inference using TensorRT, the input frame needs to be BGR planar format with possibly different size. So, conversion and resizing from NV12 to BGR planar is usually required for the inference following decoding. This CUDA code provides a reference implementation for conversion and resizing.]]></description>
|
|
<devicecompilation>whole</devicecompilation>
|
|
<includepaths>
|
|
<path>./</path>
|
|
<path>../</path>
|
|
<path>../../../Common</path>
|
|
</includepaths>
|
|
<keyconcepts>
|
|
<concept level="basic">Graphics Interop</concept>
|
|
<concept level="basic">Image Processing</concept>
|
|
<concept level="basic">Video Processing</concept>
|
|
</keyconcepts>
|
|
<keywords>
|
|
<keyword>GPGPU</keyword>
|
|
</keywords>
|
|
<libraries>
|
|
</libraries>
|
|
<librarypaths>
|
|
</librarypaths>
|
|
<nsight_eclipse>true</nsight_eclipse>
|
|
<primary_file>resize_convert_main.cpp</primary_file>
|
|
<scopes>
|
|
<scope>1:CUDA Basic Topics</scope>
|
|
<scope>2:Image Processing</scope>
|
|
<scope>2:Computer Vision</scope>
|
|
</scopes>
|
|
<sm-arch>sm35</sm-arch>
|
|
<sm-arch>sm37</sm-arch>
|
|
<sm-arch>sm50</sm-arch>
|
|
<sm-arch>sm52</sm-arch>
|
|
<sm-arch>sm53</sm-arch>
|
|
<sm-arch>sm60</sm-arch>
|
|
<sm-arch>sm61</sm-arch>
|
|
<sm-arch>sm70</sm-arch>
|
|
<sm-arch>sm72</sm-arch>
|
|
<sm-arch>sm75</sm-arch>
|
|
<sm-arch>sm80</sm-arch>
|
|
<sm-arch>sm86</sm-arch>
|
|
<sm-arch>sm87</sm-arch>
|
|
<supported_envs>
|
|
<env>
|
|
<arch>x86_64</arch>
|
|
<platform>linux</platform>
|
|
</env>
|
|
<env>
|
|
<platform>windows7</platform>
|
|
</env>
|
|
<env>
|
|
<arch>x86_64</arch>
|
|
<platform>macosx</platform>
|
|
</env>
|
|
<env>
|
|
<arch>aarch64</arch>
|
|
</env>
|
|
<env>
|
|
<arch>sbsa</arch>
|
|
</env>
|
|
<env>
|
|
<arch>ppc64le</arch>
|
|
<platform>linux</platform>
|
|
</env>
|
|
</supported_envs>
|
|
<supported_sm_architectures>
|
|
<include>all</include>
|
|
</supported_sm_architectures>
|
|
<title>NV12toBGRandResize</title>
|
|
<type>exe</type>
|
|
</entry>
|