Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Get VBR average frame size.

:param mpeg_size: Size of MPEG in bytes.
:type mpeg_size: int

:param frame_count: Count of frames in MPEG.
:type frame_count: int

:return: Average frame size.
:rtype: number

        def get_vbr_frame_size(mpeg_size, frame_count):
    """Get VBR average frame size.
    
    :param mpeg_size: Size of MPEG in bytes.
    :type mpeg_size: int
    
    :param frame_count: Count of frames in MPEG.
    :type frame_count: int
    
    :return: Average frame size.
    :rtype: number
    
    """
    return mpeg_size / frame_count
        


src/m/p/mpeg1audio-0.5.2/src/mpeg1audio/__init__.py   mpeg1audio(Download)
            frame_count = self._get_frame_count()
            mpeg_size = self._get_size()
            self.frame_size = headers.get_vbr_frame_size(mpeg_size, frame_count)
 
        return self._frame_size

src/m/p/mpeg1audio-HEAD/src/mpeg1audio/__init__.py   mpeg1audio(Download)
            frame_count = self._get_frame_count()
            mpeg_size = self._get_size()
            self.frame_size = headers.get_vbr_frame_size(mpeg_size, frame_count)
 
        return self._frame_size