mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-30 19:17:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
193
media/omx-plugin/lib/ics/libstagefright/libstagefright.cpp
Normal file
193
media/omx-plugin/lib/ics/libstagefright/libstagefright.cpp
Normal file
|
|
@ -0,0 +1,193 @@
|
|||
/* -*- 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/. */
|
||||
#include "mozilla/Types.h"
|
||||
#define STAGEFRIGHT_EXPORT __attribute__ ((visibility ("default")))
|
||||
#include "stagefright/ColorConverter.h"
|
||||
#include "stagefright/DataSource.h"
|
||||
#include "media/stagefright/MediaBuffer.h"
|
||||
#include "stagefright/MediaExtractor.h"
|
||||
#include "media/stagefright/MediaSource.h"
|
||||
#include "stagefright/MetaData.h"
|
||||
#include "media/stagefright/openmax/OMX_Types.h"
|
||||
#include "media/stagefright/openmax/OMX_Index.h"
|
||||
#include "media/stagefright/openmax/OMX_IVCommon.h"
|
||||
#include "media/stagefright/openmax/OMX_Video.h"
|
||||
#include "media/stagefright/openmax/OMX_Core.h"
|
||||
#include "stagefright/OMXCodec.h"
|
||||
#include "stagefright/OMXClient.h"
|
||||
|
||||
namespace android {
|
||||
MOZ_EXPORT void
|
||||
MediaBuffer::release()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT size_t
|
||||
MediaBuffer::range_offset() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT size_t
|
||||
MediaBuffer::range_length() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT sp<MetaData>
|
||||
MediaBuffer::meta_data()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT void*
|
||||
MediaBuffer::data() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT size_t
|
||||
MediaBuffer::size() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool
|
||||
MetaData::findInt32(uint32_t key, int32_t *value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool
|
||||
MetaData::setInt32(uint32_t, int32_t)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool
|
||||
MetaData::findInt64(uint32_t key, int64_t *value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool
|
||||
MetaData::findPointer(uint32_t key, void **value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool
|
||||
MetaData::findCString(uint32_t key, const char **value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool
|
||||
MetaData::findRect(unsigned int key, int *cropLeft, int *cropTop,
|
||||
int *cropRight, int *cropBottom)
|
||||
{
|
||||
abort();
|
||||
}
|
||||
|
||||
MOZ_EXPORT MediaSource::ReadOptions::ReadOptions()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT void
|
||||
MediaSource::ReadOptions::setSeekTo(int64_t time_us, SeekMode mode)
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT sp<DataSource> DataSource::CreateFromURI(
|
||||
const char *uri,
|
||||
const KeyedVector<String8, String8> *headers) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool
|
||||
DataSource::getUInt16(off64_t offset, uint16_t *x)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
MOZ_EXPORT status_t
|
||||
DataSource::getSize(off64_t *size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT String8
|
||||
DataSource::getMIMEType() const
|
||||
{
|
||||
return String8();
|
||||
}
|
||||
|
||||
MOZ_EXPORT void
|
||||
DataSource::RegisterDefaultSniffers()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT sp<MediaExtractor>
|
||||
MediaExtractor::Create(const sp<DataSource> &source, const char *mime)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT sp<MediaSource>
|
||||
OMXCodec::Create(
|
||||
const sp<IOMX> &omx,
|
||||
const sp<MetaData> &meta, bool createEncoder,
|
||||
const sp<MediaSource> &source,
|
||||
const char *matchComponentName,
|
||||
uint32_t flags,
|
||||
const sp<ANativeWindow> &nativeWindow)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT OMXClient::OMXClient()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT status_t OMXClient::connect()
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
|
||||
MOZ_EXPORT void OMXClient::disconnect()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT
|
||||
ColorConverter::ColorConverter(OMX_COLOR_FORMATTYPE, OMX_COLOR_FORMATTYPE) { }
|
||||
|
||||
MOZ_EXPORT
|
||||
ColorConverter::~ColorConverter() { }
|
||||
|
||||
MOZ_EXPORT bool
|
||||
ColorConverter::isValid() const { return false; }
|
||||
|
||||
MOZ_EXPORT status_t
|
||||
ColorConverter::convert(const void *srcBits,
|
||||
size_t srcWidth, size_t srcHeight,
|
||||
size_t srcCropLeft, size_t srcCropTop,
|
||||
size_t srcCropRight, size_t srcCropBottom,
|
||||
void *dstBits,
|
||||
size_t dstWidth, size_t dstHeight,
|
||||
size_t dstCropLeft, size_t dstCropTop,
|
||||
size_t dstCropRight, size_t dstCropBottom)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZ_EXPORT status_t QueryCodecs(const sp<IOMX> &omx,
|
||||
const char *mimeType, bool queryDecoders,
|
||||
Vector<CodecCapabilities> *results)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
33
media/omx-plugin/lib/ics/libstagefright/moz.build
Normal file
33
media/omx-plugin/lib/ics/libstagefright/moz.build
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# -*- Mode: python; 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/.
|
||||
DIST_INSTALL = False
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
|
||||
SOURCES += [
|
||||
'libstagefright.cpp',
|
||||
]
|
||||
# Some codec-related code uses multi-character constants; allow this.
|
||||
# XXX: could instead use the FOURCC macro to define these constants.
|
||||
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
|
||||
SOURCES['libstagefright.cpp'].flags += ['-Wno-error=multichar']
|
||||
|
||||
SharedLibrary('stagefright')
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/media/omx-plugin/include/ics',
|
||||
'/media/omx-plugin/include/ics/media/stagefright/openmax',
|
||||
]
|
||||
|
||||
USE_LIBS += [
|
||||
'/media/omx-plugin/lib/ics/libutils/utils',
|
||||
]
|
||||
|
||||
# Don't use STL wrappers; this isn't Gecko code
|
||||
DISABLE_STL_WRAPPING = True
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
|
||||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wno-shadow']
|
||||
84
media/omx-plugin/lib/ics/libutils/libutils.cpp
Normal file
84
media/omx-plugin/lib/ics/libutils/libutils.cpp
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
/* -*- 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/. */
|
||||
#include "mozilla/Types.h"
|
||||
#include "utils/RefBase.h"
|
||||
#include "utils/String16.h"
|
||||
#include "utils/String8.h"
|
||||
#include "utils/Vector.h"
|
||||
|
||||
namespace android {
|
||||
MOZ_EXPORT RefBase::RefBase() : mRefs(0)
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT RefBase::~RefBase()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT void RefBase::incStrong(const void *id) const
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT void RefBase::decStrong(const void *id) const
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT void RefBase::onFirstRef()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT void RefBase::onLastStrongRef(const void* id)
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool RefBase::onIncStrongAttempted(uint32_t flags, const void* id)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
MOZ_EXPORT void RefBase::onLastWeakRef(void const* id)
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT String16::String16(char const*)
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT String16::~String16()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT String8::String8()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT String8::String8(const String8 &)
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT String8::~String8()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT VectorImpl::VectorImpl(size_t, uint32_t)
|
||||
: mFlags(0), mItemSize(0)
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT VectorImpl::VectorImpl(const VectorImpl &)
|
||||
: mFlags(0), mItemSize(0)
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT VectorImpl::~VectorImpl()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT void VectorImpl::finish_vector()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
25
media/omx-plugin/lib/ics/libutils/moz.build
Normal file
25
media/omx-plugin/lib/ics/libutils/moz.build
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# -*- Mode: python; 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/.
|
||||
DIST_INSTALL = False
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
|
||||
SOURCES += [
|
||||
'libutils.cpp',
|
||||
]
|
||||
|
||||
SharedLibrary('utils')
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/media/omx-plugin/include/ics',
|
||||
'/media/omx-plugin/include/ics/media/stagefright/openmax',
|
||||
]
|
||||
|
||||
# Don't use STL wrappers; this isn't Gecko code
|
||||
DISABLE_STL_WRAPPING = True
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
|
||||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wno-shadow']
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
/* -*- 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/. */
|
||||
#include "mozilla/Types.h"
|
||||
#include "I420ColorConverter.h"
|
||||
|
||||
MOZ_EXPORT
|
||||
I420ColorConverter::I420ColorConverter()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT
|
||||
I420ColorConverter::~I420ColorConverter()
|
||||
{
|
||||
}
|
||||
|
||||
MOZ_EXPORT bool
|
||||
I420ColorConverter::isLoaded()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
21
media/omx-plugin/lib/ics/libvideoeditorplayer/moz.build
Normal file
21
media/omx-plugin/lib/ics/libvideoeditorplayer/moz.build
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# -*- Mode: python; 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/.
|
||||
DIST_INSTALL = False
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
|
||||
SOURCES += [
|
||||
'libvideoeditorplayer.cpp',
|
||||
]
|
||||
|
||||
SharedLibrary('videoeditorplayer')
|
||||
|
||||
# Don't use STL wrappers; this isn't Gecko code
|
||||
DISABLE_STL_WRAPPING = True
|
||||
NO_VISIBILITY_FLAGS = True
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'/media/omx-plugin/include/ics',
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue