RGB to NV12 performance in encoding h.264 in sample_encode

RGB to NV12 performance in encoding h.264 in sample_encode

I'm using SDK 3.0 beta 4. My PC is a Core i5-2500k. I've modified sample_encode to read from an avi containing raw RGB data and encode it to h.264. It's working and the output is correct. The good news is that the encode speed is great, the bad news is that the overall processing is not much faster than other encoding software, maybe because the processing is dominated by RGB toYUV420 conversion, primarily ippiRGBToYUV420_8u_P3R (profiler says 24% of time) and then ippiSwapChannels_8u_C3R (19%).

I'm quite surprised that just converting to YUV420 seems to be taking nearly as long as other encoders take to do the entire encode (from the same source file).So I'm wondering, does this make any sense, or must I be doing something wrong? Ifit seems like my code is likely to be working as expected, is there anything I can do to speed up the conversion?

Ryan

7 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.