Playback options hw or sw

I would like to have an option to set certain files to be decoded with hardware or software for compatibility or quality without having it globally set. Sometimes raw videos playback better with software than hardware and vise versa. So having the ability to flag it to play back with desired encoding would be nice.