This tutorial sample is similar to the “simple_6_decode_vpp_postproc” sample but instead of using VPP to post process the frames, the sample efficiently integrates with Intel OpenCL* SDK to enable custom frame processing executed on Intel® HD Graphics.
For optimal performance, stream decode and frame processing are both executed using Intel® HD Graphics, featuring efficient surface sharing via the OpenCL 1.2 Khronos DX9 Media Surface Sharing extensions.
The sample utilizes a generic OpenCL frame processing class, capable of NV12 type surface processing, located in the tutorial "common" samples folder.
This tutorial sample code requires the following components to be installed on the developer system:
1. Microsoft Visual Studio 2010* or later
2. Intel® SDK for OpenCL* Applications 2013
- The SDK be downloaded from here: http://software.intel.com/en-us/vcsource/tools/opencl-sdk
- More details about the SDK can also be found via the above link.
3. Intel® HD Graphics Driver 15.31.3071 or later
- Intel drivers can be downloaded from here: https://downloadcenter.intel.com/default.aspx
- Supports 3rd generation Intel® Core™ Processors and upcoming next generation Intel® Core™ Processors
Note that OpenCL processing using Intel® HD Graphics is only supported on 3rd generation Intel® Core™ Processors and upcoming next generation Intel® Core™ Processors.
This tutorial sample is found in the tutorial samples package under the name "simple_7_decode - d3d - ocl_postproc". The code is extensively documented with inline comments detailing each step required to setup and execute the use case.