- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The sample_vpp application is a good example of Composition. In that sample, ParseCompositionParfile() (in sample_vpp_parser.cpp and sample_vpp_utils.cpp) accepts PixelAlphaEnable as one of the inputs from the par file. So, if your input is in RGB colorspace and you provide the PixelAlphaEnable, that should enable the alpha blending in composition.
Here is how a sample par file looks like:
stream=/home/lmsdk/Videos/in_352_288.yuv
width=352
height=288
cropx=0
cropy=0
cropw=352
croph=288
dstx=0
dsty=0
dstw=352
dsth=288
fourcc=nv12
stream=/home/lmsdk/Videos/in_176_144.rgb
width=176
height=144
cropx=0
cropy=0
cropw=100
croph=100
dstx=0
dsty=0
dstw=100
dsth=100
fourcc=rgb4
PixelAlphaEnable=128
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As I have tried,if you want to use alpha channel in RGBA,two input source must all be RGBA,and set PixelAlphaEnable = 1
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page