2019-04-10 22:42:09 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE entry SYSTEM "SamplesInfo.dtd">
<entry >
<name > NV12toBGRandResize</name>
<cuda_api_list >
2022-10-15 08:43:37 +08:00
<toolkit > cudaMemcpy</toolkit>
2022-01-13 14:05:24 +08:00
<toolkit > cudaStreamDestroy</toolkit>
2022-10-15 08:43:37 +08:00
<toolkit > cudaMalloc</toolkit>
2022-01-13 14:05:24 +08:00
<toolkit > cudaFree</toolkit>
2019-04-10 22:42:09 +08:00
<toolkit > cudaMallocManaged</toolkit>
2022-10-15 08:43:37 +08:00
<toolkit > cudaStreamAttachMemAsync</toolkit>
2022-01-13 14:05:24 +08:00
<toolkit > cudaDestroyTextureObject</toolkit>
<toolkit > cudaEventSynchronize</toolkit>
2022-10-15 08:43:37 +08:00
<toolkit > cudaDeviceSynchronize</toolkit>
2022-01-13 14:05:24 +08:00
<toolkit > cudaCreateTextureObject</toolkit>
2022-10-15 08:43:37 +08:00
<toolkit > cudaEventRecord</toolkit>
2022-01-13 14:05:24 +08:00
<toolkit > cudaEventDestroy</toolkit>
2022-10-15 08:43:37 +08:00
<toolkit > cudaEventElapsedTime</toolkit>
<toolkit > cudaStreamCreate</toolkit>
<toolkit > cudaEventCreate</toolkit>
2019-04-10 22:42:09 +08:00
</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>
2022-01-13 14:05:24 +08:00
<path > ../../../Common</path>
2019-04-10 22:42:09 +08:00
</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 > sm50</sm-arch>
<sm-arch > sm52</sm-arch>
2022-01-13 14:05:24 +08:00
<sm-arch > sm53</sm-arch>
2019-04-10 22:42:09 +08:00
<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>
2020-05-19 00:52:06 +08:00
<sm-arch > sm80</sm-arch>
2020-09-16 02:15:56 +08:00
<sm-arch > sm86</sm-arch>
2022-01-13 14:05:24 +08:00
<sm-arch > sm87</sm-arch>
2023-02-28 06:33:19 +08:00
<sm-arch > sm89</sm-arch>
2022-10-15 08:43:37 +08:00
<sm-arch > sm90</sm-arch>
2019-04-10 22:42:09 +08:00
<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>
2022-01-13 14:05:24 +08:00
<env >
<arch > sbsa</arch>
</env>
2019-04-10 22:42:09 +08:00
<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>