All step fonctuns to get a raw file out of the OV7870

Hello everyone,
I love opensource community and I have a crazy project. I would like to understand the steps to get a raw file from the image sensor with the minimum functions.
I want to do that in order to reduce the cost of the microcontroler, and also to increase the number of frames per second. I have been reading about JP4 Raw pixel reorder.
It’s advantage is that you get an bayer image faster than if you would use a DNG encoder.

But I wonder, is there a way to make it even faster?
How do you get a .data RAW file from the OV7670.
Is there EXIF metadata?

Does someone knows the entire steps functions?

Thanks to you all!