Create Texture from dxt1 data

I would like to create a texture from a Mip maped dxt1 binary area that represent the dxt1 bits and bytes stores in a memory lockton in runtime from C++. How do i do that in a fast and efficient way?