(self, comptype, compname)
| 540 | return self._nframeswritten |
| 541 | |
| 542 | def setcomptype(self, comptype, compname): |
| 543 | if self._datawritten: |
| 544 | raise Error('cannot change parameters after starting to write') |
| 545 | if comptype not in ('NONE',): |
| 546 | raise Error('unsupported compression type') |
| 547 | self._comptype = comptype |
| 548 | self._compname = compname |
| 549 | |
| 550 | def setformat(self, format): |
| 551 | if self._datawritten: |