mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
09833d259a
--HG-- rename : content/media/omx/MediaOmxDecoder.cpp => content/media/omx/MediaOmxCommonDecoder.cpp rename : content/media/omx/MediaOmxDecoder.h => content/media/omx/MediaOmxCommonDecoder.h rename : content/media/omx/MediaOmxReader.cpp => content/media/omx/MediaOmxCommonReader.cpp rename : content/media/omx/MediaOmxReader.h => content/media/omx/MediaOmxCommonReader.h
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
|
/* 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/. */
|
|
|
|
#ifndef MEDIA_OMX_COMMON_READER_H
|
|
#define MEDIA_OMX_COMMON_READER_H
|
|
|
|
#include "MediaDecoderReader.h"
|
|
|
|
#include <utils/RefBase.h>
|
|
|
|
#include "mozilla/dom/AudioChannelBinding.h"
|
|
|
|
namespace android {
|
|
struct MOZ_EXPORT MediaSource;
|
|
} // namespace android
|
|
|
|
namespace mozilla {
|
|
|
|
class AbstractMediaDecoder;
|
|
|
|
class MediaOmxCommonReader : public MediaDecoderReader
|
|
{
|
|
public:
|
|
MediaOmxCommonReader(AbstractMediaDecoder* aDecoder);
|
|
|
|
void SetAudioChannel(dom::AudioChannel aAudioChannel) {
|
|
mAudioChannel = aAudioChannel;
|
|
}
|
|
|
|
virtual android::sp<android::MediaSource> GetAudioOffloadTrack() = 0;
|
|
|
|
#ifdef MOZ_AUDIO_OFFLOAD
|
|
// Check whether it is possible to offload current audio track. This access
|
|
// canOffloadStream() from libStageFright Utils.cpp, which is not there in
|
|
// ANDROID_VERSION < 19
|
|
void CheckAudioOffload();
|
|
#endif
|
|
|
|
protected:
|
|
dom::AudioChannel mAudioChannel;
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // MEDIA_OMX_COMMON_READER_H
|