【发布时间】:2016-10-02 03:36:58
【问题描述】:
我使用sws_scale 将一组 RGB32 图像转换为 YUV420 格式。每张图像都与前一张非常相似,它们仅在矩形区域 Q 上有所不同。
我的问题是如何利用 Q 来加快转换过程?应在sws_scale 函数中添加一个附加参数。
sws_scale( ctx, in_plane, in_stride, sliceY, height, out_plane, out_stride, Q){
// parameter out_plane stores the YUV420 data of previous image
Instead of scanning the whole image, scan through rectangle Q{
Do conversion
}
}
【问题讨论】: