Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6814 讨论

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

zac_2000
初学者
930 次查看

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 项奖励
5 回复数
Vladimir_Dudnik
930 次查看

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

Regards,
Vladimir

0 项奖励
zac_2000
初学者
930 次查看

Yes.The Image is YV12 PixelFormat.

0 项奖励
Vladimir_Dudnik
930 次查看

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

0 项奖励
zac_2000
初学者
930 次查看

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!

0 项奖励
Vladimir_Dudnik
930 次查看

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

0 项奖励
回复