[x265] Some suggestions on x265 BitCost class

Ximing Cheng chengximing1989 at gmail.com
Thu Oct 8 08:26:49 CEST 2015


In the x265 BitCost class, s_bitsizes and s_costs[qp] are malloc by the
new/delete operator, may change these into X265_MALLOC/X265_FREE?

May s_bitsizes changes into s_bitsizes = new float[4 * BC_MAX_MV + 1] + 2 *
BC_MAX_MV; in BitCost::CalculateLogs() and delete[] (s_bitsizes - 2 *
BC_MAX_MV); in BitCost::destroy()  so that in inline uint32_t bitcost(const
MV& mv) const and static inline uint32_t bitcost(const MV& mv, const MV&
mvp), we can remove the abs operation.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20151008/e618030f/attachment.html>


More information about the x265-devel mailing list