+1, once again.
Raw data is just a collection of 14-bit values (think of them as numbers ranging from 0 to 2^14-1) each representing relative amount of light (think of this as a linear count of photons) collected by one of the photodiodes on the sensor.
These photodiodes are arranged in a RGGB (as proposed by Bayer first) square pattern, and each of them can collect light only in R, G or B channel.
Simplifying things a lot, if your sensor has N pixels, it means that it has 4*N photodiodes. Demosaic methods have the task of transforming this 4*N-long 1-dimensional array of data into an N-long 3-dimensional (R,G,B) array. Then, this resulting data is also tone mapped according to some sort of gamma(*), and color-coded according to some CS (still simplifying here). Finally, it can be saved as, say, JPEG (or, say, MPEG if we are talking video).
So if you are working with Raw data, demosaic has not yet been performed and you are presented with bare numbers representing amount of light collected on sensor (precisely “raw data”, that is).
Only if you work with non-Raw data then you know that color information has already been elaborated and coded according to some predefined CS. Then you have to take this into account in NLE such as DVR in order to transform CS from input to working CS, all the way to output CS.
Don’t be fooled by the fact that there are different formats of Raw files: these are just different formats of the container of the data. Raw data is raw data, it is always the same regardless of how it is stored, i.e. it has always the same meaning and once you crack open the container you are always presented with 14-bit series of photodiodes reads.
HTH
PS: may be worth playing with pure raw data to get acquaintance with it: found
this, haven’t tried, but seems to work. Personally I worked a bit on raw data in PixInSight, cfr for instance my report
here.
(*) Human perception is nonlinear (roughly logarithmic) and such that two perceived light *additive* gains are equivalent only if photon count is *multiplied* by the same amplifying coefficient — e.g. you need to pass from 2 to 4 photons in order to get the same gain that you obtained in passing from 1 to 2 photons.