I could not find a sample code for this function. I notice some one asked on the clarification on the pHistoryWeight paramters:
pHistoryWeight contains the history weight for every block in the picture, the weight is used for blending in case of static content:
destination_pixel = ((previous_picture_pixel - current_picture_pixel) * history + current_picture_pixel * 256 + 128) / 256;
If theres no previous picture (the first picture in the sequence is being processed), the pHistoryWeight array is uniformly filled by the function with the value of pInParam->HistoryWeight, and is further updated inside the function, with no interference required from the user
Hope it can help.
The size of the array should be not less than:
((srcRoiSize.width + pInParam->BlockWidth - 1)/ pInParam->BlockWidth)*(( srcRoiSize.height + pInParam->BlockHeight - 1)/ pInParam->BlockHeight)