add gamma coding based gap file encoder