mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
0668f3f25a
MP3 streams consist of small frames, with each frame containing the audio data of a few hundred milliseconds. The actual duration of the encoded audio can among frames. Each frame consists of a 4-byte frame header, some optional extra information, and the audio data. The MP3 frame parser walks over the content of an MP3 stream, computes the duration of each frame from the frame header, and sums them up to the streams complete duration. The MP3 frame parser does not decode the actual audio data.
22 lines
539 B
Python
22 lines
539 B
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
MODULE = 'content'
|
|
|
|
EXPORTS += [
|
|
'MediaOmxDecoder.h',
|
|
'MediaOmxReader.h',
|
|
]
|
|
|
|
CPP_SOURCES += [
|
|
'MediaOmxDecoder.cpp',
|
|
'MediaOmxReader.cpp',
|
|
'MP3FrameParser.cpp',
|
|
'OmxDecoder.cpp',
|
|
'OMXCodecProxy.cpp',
|
|
]
|
|
|