From the point of defending against copyright violation, you can. However, patents and reverse engineering laws present separate barriers you could need to jump over (although this is no longer a problem for at least 3 of the 4 formats you mention, I believe).