hevc/sse: place functions at the right place