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

colorconversion from yv12 to rgb24 efficiency problem

bendeguy
Beginner
438 Views

Hello,

I have to decode and convert MPEG4 YV12 stream to RGB24. After the decoding I have to give back the decoded data. Unfortunatelly I can't give back the data coming from GetFrame() immediately because of the pitch size. I have to copy the relevant data( similar to the FWVideoRender's soultion):

Ipp8u * p_d = p_dest;

int size = 3 * video_info_dest.clip_info.width;
for (int i = 0; i < video_info_dest.clip_info.height; i++) {
ippsCopy_8u(src, p_d, size);
src = src + pitch;
p_d = p_d + size;
}

For a 1228x1006 image it costs about 7ms, which is too much. Is it possible to change the colorspaceconverter to decode intoan RGB24 format which's pitch size equal to 3*width?

Thanks in advance:

Bendeguy

0 Kudos
3 Replies
bendeguy
Beginner
438 Views

Hi,

Meanwhile I recognized thiswas a "stupid" question. This is the problem which can be solved by changing ALIGN from 128 to 1. I wanted to delete this post but I get an error:

Permission Expired: Post Delete Permission Expired

The administrator(s) have configured this forum to have a time limit for deleting messages. If you still require a message to be deleted, please check with a forum moderator.
Thanks,
Bendeguy
0 Kudos
Vladimir_Dudnik
Employee
438 Views

Hello,

please don't mind, it can be useful info for other people

Regards,
Vladimir

0 Kudos
bendeguy
Beginner
438 Views

Hello,

For those who use NullVideoRenderer:

You have to change the ALIGN value to 1in the null_video_renderer.cpp.

Greetings,

Bendeguy

0 Kudos
Reply