This Intel® Media SDK tutorial sample is similar to “simple_3_encode-d3d” but adds VPP pre-processing capabilities, showcasing VPP color conversion from RGB32(4) to NV12.
Like the "simple_2_decode" tutorial sample this sample supports both Microsoft DirectX* 9 and DirectX* 11. For more details on this topic please refer to "simple_2_decode" sample description.
This tutorial sample is found in the tutorial samples package under the name "simple_6_encode - d3d - vpp_preproc". The code is extensively documented with inline comments detailing each step required to setup and execute the use case.