Hi, ffmpeg development team: I'm a software developer of Lenovo Inc. I'm using ffmpeg in my video project for TS stream playing. While playing TS, cpu usage up to 90%, which in the image conversion process (YUV to RGB), cpu usageup to 25% -30%.
In my project, ffmpeg's image conversion call function yuv2rgb_c_32 in C file
/libffmpeg/libswscale/yuv2rgb.c
Here is source code:
YUV2RGBFUNC(yuv2rgb_c_32, uint32_t, 0)
LOADCHROMA(0);
PUTRGB(dst_1, py_1, 0);
PUTRGB(dst_2, py_2, 0);
LOADCHROMA(1);
PUTRGB(dst_2, py_2, 1);
PUTRGB(dst_1, py_1, 1);
LOADCHROMA(2);
PUTRGB(dst_1, py_1, 2);
PUTRGB(dst_2, py_2, 2);
LOADCHROMA(3);
PUTRGB(dst_2, py_2, 3);
PUTRGB(dst_1, py_1, 3);
ENDYUV2RGBLINE(8)
LOADCHROMA(0);
PUTRGB(dst_1, py_1, 0);
PUTRGB(dst_2, py_2, 0);
LOADCHROMA(1);
PUTRGB(dst_2, py_2, 1);
PUTRGB(dst_1, py_1, 1);
ENDYUV2RGBFUNC()
With your please, I would like to ask some questions.
a) Why the function writing by macro?
b) Whether the function can be optimized?
c) Has there some updates or new version?
d) Will ffmpeg have ARM platform specialized version or patch?
My hardware is Sumsang Pad GT-P5110 (1G dural core, 1G RAM, 32G SD card),
ffmpeg version is 0.11.1
I'm glad and eager for your reply, thank you very much.
Best regards
Regards,
李凯 Li Kai
System Innovation Lab
Lenovo, R&T
No.6 Shangdi West Road Haidian District, Beijing
[email protected]<mailto:[email protected]>
(TEL) +86 10-58861550
(FAX) +86 10-58863357
[说明: 说明: 说明: 说明: 说明: cid:[email protected]]
www.Lenovo.com<http://www.lenovo.com/>
<<inline: image001.png>>
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
