You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Hardware | Intel® Processor Graphics GEN9 or newer
9
+
| Hardware | CPU: See [System Requirements](https://software.intel.com/content/www/us/en/develop/articles/oneapi-video-processing-library-system-requirements.html)
10
+
| | GPU: Compatible with Intel® oneAPI Video Processing Library(oneVPL) GPU implementation, which can be found at https://github.com/oneapi-src/oneVPL-intel-gpu
10
11
| Software | oneAPI Video Processing Library (oneVPL)
11
12
| What You Will Learn | How to use oneVPL and DPC++ to convert raw video files into BGRA and blur each frame.
12
13
| Time to Complete | 5 minutes
@@ -31,34 +32,17 @@ directly on VPL output without copies to/from CPU memory.
31
32
| Target device | CPU
32
33
| Input format | I420
33
34
| Output format | BGRA raw video elementary stream
34
-
| Output resolution | same as input
35
+
| Output resolution | 256 x 192
35
36
36
37
37
38
## License
38
39
39
40
Code samples are licensed under the MIT license. See
40
41
[License.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/License.txt) for details.
41
42
42
-
Third party program Licenses can be found here: [third-party-programs.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/third-party-programs.txt)
43
43
44
44
## Building the `dpcpp-blur` Program
45
45
46
-
### Using Visual Studio Code* (Optional)
47
-
48
-
You can use Visual Studio Code (VS Code) extensions to set your environment, create launch configurations,
49
-
and browse and download samples.
50
-
51
-
The basic steps to build and run a sample using VS Code include:
52
-
- Download a sample using the extension **Code Sample Browser for Intel oneAPI Toolkits**.
53
-
- Configure the oneAPI environment with the extension **Environment Configurator for Intel oneAPI Toolkits**.
54
-
- Open a Terminal in VS Code (**Terminal>New Terminal**).
55
-
- Run the sample in the VS Code terminal using the instructions below.
56
-
57
-
To learn more about the extensions and how to configure the oneAPI environment, see
58
-
[Using Visual Studio Code with Intel® oneAPI Toolkits](https://software.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top.html).
59
-
60
-
After learning how to use the extensions for Intel oneAPI Toolkits, return to this readme for instructions on how to build and run a sample.
61
-
62
46
### On a Linux* System
63
47
64
48
Perform the following steps:
@@ -83,45 +67,46 @@ Perform the following steps:
83
67
84
68
3. Build the program using the following commands:
85
69
```
70
+
cp $ONEAPI_ROOT/vpl/latest/examples .
71
+
cd examples/interop/dpcpp-blur
86
72
mkdir build
87
73
cd build
88
74
cmake ..
89
75
cmake --build .
90
76
```
91
77
92
-
4. Run the program using the following command:
78
+
4. Run the program with default arguments using the following command:
93
79
```
94
80
cmake --build . --target run
95
81
```
96
82
97
-
98
-
99
83
## Running the Sample
100
84
101
85
### Application Parameters
102
86
103
87
The instructions given above run the sample executable with these arguments
"description": "Sample that shows how to use Intel(r) oneAPI Video Processing Library (VPL) and Intel(r) oneAPI Data Parallel C++ (DPC++) to convert I420 raw video file in to BGRA and blur each frame",
6
-
"dependencies": ["vpl"],
7
-
"os": ["linux"],
8
-
"languages": [{"cpp":{}}],
9
-
"toolchain": ["dpcpp"],
10
-
"builder": ["ide", "cmake"],
11
-
"targetDevice": ["CPU", "GPU"],
12
-
"ciTests": {
13
-
"linux": [
14
-
{ "id": "builds and runs successfully with CMake",
"description": "Shows how to use Intel® Video Processing Library (VPL) and Intel® oneAPI Data Parallel C++ (DPC++) to convert I420 raw video file in to BGRA and blur each frame",
0 commit comments