Skip to content

Commit aef1b78

Browse files
Remove oneVPL sample source
1 parent 5fc27aa commit aef1b78

29 files changed

+102
-4221
lines changed

Libraries/oneVPL/dpcpp-blur/CMakeLists.txt

Lines changed: 0 additions & 94 deletions
This file was deleted.

Libraries/oneVPL/dpcpp-blur/PreLoad.cmake

Lines changed: 0 additions & 6 deletions
This file was deleted.

Libraries/oneVPL/dpcpp-blur/README.md

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ oneAPI Video Processing Library to perform a simple video content blur.
66
| Optimized for | Description
77
|----------------- | ----------------------------------------
88
| OS | Ubuntu* 20.04
9-
| 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
1011
| Software | oneAPI Video Processing Library (oneVPL)
1112
| What You Will Learn | How to use oneVPL and DPC++ to convert raw video files into BGRA and blur each frame.
1213
| Time to Complete | 5 minutes
@@ -31,34 +32,17 @@ directly on VPL output without copies to/from CPU memory.
3132
| Target device | CPU
3233
| Input format | I420
3334
| Output format | BGRA raw video elementary stream
34-
| Output resolution | same as input
35+
| Output resolution | 256 x 192
3536

3637

3738
## License
3839

3940
Code samples are licensed under the MIT license. See
4041
[License.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/License.txt) for details.
4142

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)
4343

4444
## Building the `dpcpp-blur` Program
4545

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-
6246
### On a Linux* System
6347

6448
Perform the following steps:
@@ -83,45 +67,46 @@ Perform the following steps:
8367

8468
3. Build the program using the following commands:
8569
```
70+
cp $ONEAPI_ROOT/vpl/latest/examples .
71+
cd examples/interop/dpcpp-blur
8672
mkdir build
8773
cd build
8874
cmake ..
8975
cmake --build .
9076
```
9177

92-
4. Run the program using the following command:
78+
4. Run the program with default arguments using the following command:
9379
```
9480
cmake --build . --target run
9581
```
9682

97-
98-
9983
## Running the Sample
10084

10185
### Application Parameters
10286

10387
The instructions given above run the sample executable with these arguments
104-
`-i <sample_dir>/content/cars_128x96.i420 -w 128 -h 96`.
88+
`-i ${CONTENTPATH}/cars_128x96.i420 -w 128 -h 96`.
10589

10690
In Linux, an additional '-hw' parameter will run on GPU if GPU stack components
10791
are found in your environment.
10892

109-
### Example of Output
93+
### Example Output
11094

11195
```
112-
Queue initialized on Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz
96+
Queue initialized on 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
11397
Implementation details:
114-
ApiVersion: 2.4
98+
99+
ApiVersion: 2.5
115100
Implementation type: SW
116-
AccelerationMode via: NA
117-
Path: /opt/intel/oneapi/vpl/2021.4.0/lib/libvplswref64.so.1
101+
AccelerationMode via: NA
102+
DeviceID: 0000
103+
Path: /opt/intel/oneapi/vpl/2021.6.0/lib/libvplswref64.so.1
118104
119-
Processing ../../content/cars_128x96.nv12 -> out.raw
105+
Processing /home/test/intel_innersource/frameworks.media.onevpl.dispatcher/examples/interop/dpcpp-blur/content/cars_128x96.i420 -> out.raw
120106
Processed 60 frames
121-
122107
```
123108

124-
You can find the output file ``out.raw`` in the build directory.
109+
You can find the 256x192 BGRA output file ``out.raw`` in the build directory.
125110

126111
You can display the output with a video player that supports raw streams such as
127112
FFplay. You can use the following command to display the output with FFplay:

Libraries/oneVPL/dpcpp-blur/content/cars_128x96.i420

Lines changed: 0 additions & 1 deletion
This file was deleted.

Libraries/oneVPL/dpcpp-blur/content/cars_128x96.nv12

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
{
22
"guid": "8E31124E-3F21-4A8F-A14A-950B7F008480",
33
"name": "DPCPP Blur",
4-
"categories": ["Toolkit/oneAPI Libraries/oneVPL"],
5-
"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",
15-
"env": [ ],
16-
"steps": [
17-
"mkdir build",
18-
"cd build",
19-
"cmake ..",
20-
"cmake --build .",
21-
"cmake --build . --target run"
22-
] }
23-
]
24-
}
4+
"categories": [ "Toolkit/oneAPI Libraries/oneVPL" ],
5+
"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",
6+
"dependencies": [ "vpl" ],
7+
"os": [ "linux" ],
8+
"languages": [ { "cpp": {} } ],
9+
"toolchain": [ "dpcpp" ],
10+
"builder": [ "cmake" ],
11+
"targetDevice": [ "CPU", "GPU" ]
2512
}

0 commit comments

Comments
 (0)