Custom codec function parameters

Came across this post here that asks a simiar question: