<div dir="ltr">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?<div><br></div><div>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.</div><div><br></div><div>Thanks!</div></div>