tests: add dump frame fourcc option in decode test

it's better if we can guess dump format from extensions. ie .nv12 for NV12 format, . i420 for I420 format.