libva icon indicating copy to clipboard operation
libva copied to clipboard

gpu copy/transform of va surfaces

Open angelo-p opened this issue 4 years ago • 2 comments

Hello, Is it possible to gpu copy/transform the data of a NV12 va_surface to another RGBA va_surface that has been setup with external buffer attributes ?

I am new to libva API, and if this is possible, an example would be greatly appreciated. Thanks, Angelo

angelo-p avatar Aug 13 '20 15:08 angelo-p

@angelo-p , you should use VPP to do the color space covert, please refer to https://github.com/intel/libva-utils/blob/master/videoprocess/vppscaling_csc.cpp

XinfengZhang avatar Aug 17 '20 08:08 XinfengZhang

Thanks a lot for the pointer!, I'll take a look.

angelo-p avatar Aug 17 '20 13:08 angelo-p