Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
6594 Discussions

Can i use ipp achieve a image overlay another image 's special region (The iamge is YV12)

zac_2000
Beginner
125 Views

The is Image 1

----------------------------------------

|AAAAAAAA |

| |

----------------------------------------

Image2

--------

|A|

--------

The Dest Image can be

----------------------------------------

|AAAAAAAA |

| |

----------------------------------------

It Can't paste image.I only use this;

Thanks in advance.

0 Kudos
5 Replies
Vladimir_Dudnik
Employee
125 Views

Do you want to copy one image (say some small sprite) into another image (say, bigger, for example background)?

Regards,
Vladimir

zac_2000
Beginner
125 Views

Yes.The Image is YV12 PixelFormat.

Vladimir_Dudnik
Employee
125 Views

We do not have such a special variant of IPP function, but you should be able to use just ordinary ippiCopy function, just need to determine correct sizes of data chunks

Vladimir

zac_2000
Beginner
125 Views

Y = 0.257*R' + 0.504*G' + 0.098*B' + 16
Cb = -0.148*R' - 0.291*G' + 0.439*B' + 128
Cr = 0.439*R' - 0.368*G' - 0.071*B' + 128

Image1 is only character'A' ( Color is Red) BackGroud color is Black.

I make Image2's correspounding position value is Image1's.

I found In Character'A' area, there is not only red, but some transparent.

I thinkthe wrong maybe the Cb,Cr use by 4 pixels.I Set the value is( -0.148*255 + 128, 0.439*255 + 128).

I use rgb565 is right,but itexhaust more time!

My English is poor, my description may be no clear!

Thanks in advance!

Vladimir_Dudnik
Employee
125 Views

We do not have copy function for RGB565 data, but if you use RGB24 it is possible to copy small image into arbitrary point of another image.

Vladimir

Reply