Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

qcif yuv and cif yuv file

crazyhadoop
初学者
1,336 次查看
which one is the sample umc h.264encoder used to read and encode it into the format of h.264.
0 项奖励
3 回复数
Ying_H_Intel
主持人
1,336 次查看
Hi

Do you mean the sample code simpleencoder.cpp inGetting Started with Intel IPP Unified Media Classes Sample?

It provide parameters like below
int VideoWidth=352,VideoHeight=288,FrameNumber=200;

You may take it as cif YUV420. Theraw file foram is YUV420planar sampling structure, YUVYUVYUV......
(or you can get a input test files through runing simple_player.exe, which can decode h.264 stream, then write outa YUV file.)

But H.264 encoder doesn't limit the input YUV resolution. You may refer to the readme.htm inipp-samples\audio-video-codecs\application\umc_video_enc_con.
>If InputParFile not specified, at least options -w,-h should be specified and -o should be added before OutputEncodedFile.

Regards,
Ying H.

0 项奖励
crazyhadoop
初学者
1,336 次查看
Yes, when I encode a piece of cif_yuv file. I just got a 4k h.264. I just assigned the w and h 352 and 288.
and why the frame size in the sample is width * height *3/2 , why not width*height?
0 项奖励
Ying_H_Intel
主持人
1,336 次查看
Hello,

The sample take YUV4:2:0 plane as default yuv format , so the frame size is image width*image heipht *3 /2 if measured by byte.


if you cif_yuv file is YUV 444 plane format, then the size is image width*image heipht *3

Regards,
Ying H.
0 项奖励
回复