mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
902c13e3db
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',
|
|
]
|
|
|