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

BMP TO YUV

ggrosselohmann
ビギナー
2,261件の閲覧回数

Hi,

we want to convertBMP Files to YUV Data.

This YUV Data we want to use as input for the umc video encoder from intel

to create a mpeg video.

What is the best way to do this?

Should we use the IJL encoder to create the YUV Data?

The IJL only creates YUV422 Data or? Can the encoder use this data to create a mpeg file?

Or do we need YUV420 Data?

We have already created a function for the conversion with IJL but the encoder do not like this data.
The function you can find attached.

It does not create a mpeg File. We always get the error message "Can't read next 0 source frame".

We have set thevideo width and heigth to the bitmap size and frames per second to 1.

Is the video width not the same as the picture width?

It would be great if anyone could help us

best regards,

Gerd Groelohmann

0 件の賞賛
3 返答(返信)
Vladimir_Dudnik
従業員
2,261件の閲覧回数

Hello Gerd,

You do not need to use JPEG compressor or decompressor to convert RGB data to YUV. All you need to call one of IPP color conversion routines, please take a look on IPP manual for the details (or see through IPP samples)

Regards,
Vladimir

ggrosselohmann
ビギナー
2,262件の閲覧回数

Hello Vladimir,

thanks for the advice.

We now use the function ippiRGBToYUV420_8u_P3R.

Can we directly encode this data with the umc_video_enc_con Project?

How can we post the DST Buffer to th p_dataIn (Type VideoData) Pointer ?

Or How can we get the sizes of the DST Buffers?

best regards,

Gerd

ggrosselohmann
ビギナー
2,262件の閲覧回数
Hi Vladimir,

I have done it by setting the planar data pointers and it works fine.

Thanks for your help

best regards,
Gerd
返信