Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6815 Discusiones

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

zac_2000
Principiante
916 Vistas

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 Respuestas
Vladimir_Dudnik
Empleados
916 Vistas

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

Regards,
Vladimir

zac_2000
Principiante
916 Vistas

Yes.The Image is YV12 PixelFormat.

Vladimir_Dudnik
Empleados
916 Vistas

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
Principiante
916 Vistas

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
Empleados
916 Vistas

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

Responder