def __init__(self, filename, process_func=None, pix_fmt="rgb24",
                 use_cache=True, as_grey=False):

        self.filename = filename
        self.pix_fmt = pix_fmt
        self._initialize(use_cache)
        try:
            self.depth = _pix_fmt_dict[pix_fmt]
        except __HOLE__:
            raise ValueError("invalid pixel format")
        w, h = self._size
        self._stride = self.depth*w*h

        self._validate_process_func(process_func)
        self._as_grey(as_grey, process_func)
dataset/ETHPy150Open soft-matter/pims/pims/ffmpeg_reader.py/FFmpegVideoReader.__init__