As mentioned some CPAP machines have a power cord available to run on 12vdc. You may need to install a cigarette lighter style receptacle to plug into.
If the unit is 12vdc then it doesn't make sense to convert 12vdc to 120vac (with an inverter) only to transform and rectify back to 12vdc (with CPAP power supply) you will be wasting some power.
What ever you decide a big factor on how battery (amp/hrs) you will use is if you need to use the humidifier. The heater normally at least double the current draw (depending on setting).
My CPAP power specs are (ResMed AirSense 10):
- 90W power supply unit
- AC input range: 100–240V, 50–60Hz 1.0–1.5A, Class II
- 115V, 400Hz 1.5A, Class II (nominal for aircraft use)
- DC output: 24V 3.75A
- Typical power consumption: 53W (57VA)
- Peak power consumption: 104W (108VA)
For my unit they have a dc to dc converter (12vdc to 24vdc, ResMed DC Power Converter for AirSense ™ 10 Series CPAP Machines) for about $85, hope this helps.