Video Processing (VPP) Sample
Video Processing (VPP) Sample
Video Processing (VPP) Sample
Overview
VPP Sample works with Intel® Media Software Development Kit 2018 (hereinafter referred to as "SDK").
It demonstrates how to use the SDK API to create a simple console application that performs video processing of raw
video sequences.
Features
VPP Sample supports the following video formats:
Format type
Hardware Requirements
See <install-folder>\Media_Samples_Guide.pdf.
Software Requirements
See <install-folder>\Media_Samples_Guide.pdf.
-gpu_copy Specify GPU copy mode. This option triggers using of InitEX instead of Init.
-sw width width of src video (def: 352)
-sh height height of src video (def: 288)
-scrX x cropX of src video (def: 0)
-scrY y cropY of src video (def: 0)
-scrW w cropW of src video (def: width)
-scrH h cropH of src video (def: height)
-sf frameRate frame rate of src video (def: 30.0)
-scc format format (FourCC) of src video (def: nv12. support nv12|yv12|yuy2|rgb3|rgb4|imc3|yuv400|
yuv411|yuv422h|yuv422v|yuv444|uyvy|ayuv|y210|y410)
-sbitshift 0|1 shift data to right or keep it the same way as in Microsoft's P010
-sbitdepthluma value shift luma channel to right to "16 - value" bytes
-sbitdepthchroma value shift chroma channel to right to "16 - value" bytes
-spic value picture structure of src video:
• -1 - unknown
• 0 - interlaced top field first
• 1 - progressive (default)
• 2 - interlaced bottom field first
• 3 - single field
-composite Composition of several input files in one output. The location of substreams on the
<ParametersFile> primary stream is described in the parameter file. The syntax of the parameters file is:
-di_mode (mode) set type of deinterlace algorithm 8 - reverse telecine for a selected telecine pattern (use
-tc_pattern). For PTIR plug-in 2 - advanced or motion adaptive (default) 1 - simple or
BOB
-deinterlace (type) enable deinterlace algorithm (alternative way: -spic 0 -dpic 1) type is tff (default) or bff
-rotate (angle) enable rotation. Supported angles: 0, 90, 180, 270.
-scaling_mode (mode) specify type of scaling to be used for resize.
-denoise (level) enable denoise algorithm. Level is optional range of noise level is [0, 100]
-detail (level) enable detail enhancement algorithm. Level is optional range of detail level is [0, 100]
-pa_hue hue procamp hue property. range [-180.0, 180.0] (def: 0.0)
-pa_sat saturation procamp satursation property. range [ 0.0, 10.0] (def: 1.0)
-pa_con contrast procamp contrast property. range [ 0.0, 10.0] (def: 1.0)
-pa_bri brightness procamp brightness property. range [-100.0, 100.0] (def: 0.0)
-gamut:compression enable gamut compression algorithm (xvYCC->sRGB)
-gamut:bt709 enable BT.709 matrix transform (RGB->YUV conversion)(def: BT.601)
-frc:advanced enable advanced FRC algorithm (based on PTS)
-frc:interp enable FRC based on frame interpolation algorithm
-tcc:red enable color saturation algorithm (R component)
-tcc:green enable color saturation algorithm (G component)
| Video Processing (VPP) Sample | 4
-chroma_siting (vmode (vmode hmode)] - specify chroma siting mode for VPP color conversion, allowed values:
hmode) vtop|vcen|vbot hleft|hcen
-mctf (Strength) enables MCTF. Strength is an optional value; it is in range [0...20] value 0 makes MCTF
operates in auto mode; values [1...20] makes MCTF operates with fixed-strength mode;
In fixed-strength mode, MCTF strength can be adjusted at framelevel; If no Strength is
given, MCTF operates in auto mode.
sample_vpp –lib sw -sw 352 -sh 144 -scc rgb4 -dw 320 -dh 240 -dcc nv12
-denoise 32 -istab -i input.rgb -o output.nv12
Known Limitations
• Scene change detection is not supported (-vanalysis option not effective) with platform specific SDK libraries for
Intel® HD Graphics 3000/2000 and later, also unsupported in software SDK libraries starting with API version
1.6.
• RGB3 (RGB 24-bit) input format is unsupported despite the fact that sample code and sample binary expose it as
supported.
Legal Information
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL PRODUCTS.
NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL
PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS
AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER
AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR
USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A
| Video Processing (VPP) Sample | 6