def _set_cinema_params(self, cinema_mode, fps):
if re.match("<STR_LIT>", version.openjpeg_version) is not None:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>msg = msg.format(version=version.openjpeg_version)<EOL>raise IOError(msg)<EOL><DEDENT>self._cparams.tcp_mct = <NUM_LIT:1><EOL>if cinema_mode == '<STR_LIT>':<EOL><INDENT>if fps not in [<NUM_LIT>, <NUM_LIT>]:<EOL><INDENT>msg = '<STR_LIT>'<EOL>raise IOError(msg)<EOL><DEDENT>if fps == <NUM_LIT>:<EOL><INDENT>self._cparams.rsiz = core.OPJ_PROFILE_CINEMA_2K<EOL>self._cparams.max_comp_size = core.OPJ_CINEMA_24_COMP<EOL>self._cparams.max_cs_size = core.OPJ_CINEMA_24_CS<EOL><DEDENT>else:<EOL><INDENT>self._cparams.rsiz = core.OPJ_PROFILE_CINEMA_2K<EOL>self._cparams.max_comp_size = core.OPJ_CINEMA_48_COMP<EOL>self._cparams.max_cs_size = core.OPJ_CINEMA_48_CS<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._cparams.rsiz = core.OPJ_PROFILE_CINEMA_4K<EOL><DEDENT>
Populate compression parameters structure for cinema2K.

        Parameters
        ----------
        params : ctypes struct
            Corresponds to compression parameters structure used by the
            library.
        cinema_mode : {'cinema2k', 'cinema4k}
            Use either Cinema2K or Cinema4K profile.
        fps : {24, 48}
            Frames per second.