1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim:set ts=2 sw=2 sts=2 et cindent: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 5 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 #include "mozilla/Types.h" 7 #define STAGEFRIGHT_EXPORT __attribute__ ((visibility ("default"))) 8 #include "stagefright/ColorConverter.h" 9 #include "stagefright/DataSource.h" 10 #include "media/stagefright/MediaBuffer.h" 11 #include "stagefright/MediaExtractor.h" 12 #include "media/stagefright/MediaSource.h" 13 #include "stagefright/MetaData.h" 14 #include "media/stagefright/openmax/OMX_Types.h" 15 #include "media/stagefright/openmax/OMX_Index.h" 16 #include "media/stagefright/openmax/OMX_IVCommon.h" 17 #include "media/stagefright/openmax/OMX_Video.h" 18 #include "media/stagefright/openmax/OMX_Core.h" 19 #include "stagefright/OMXCodec.h" 20 #include "stagefright/OMXClient.h" 21 22 namespace android { 23 MOZ_EXPORT void 24 MediaBuffer::release() 25 { 26 } 27 28 MOZ_EXPORT size_t 29 MediaBuffer::range_offset() const 30 { 31 return 0; 32 } 33 34 MOZ_EXPORT size_t 35 MediaBuffer::range_length() const 36 { 37 return 0; 38 } 39 40 MOZ_EXPORT sp<MetaData> 41 MediaBuffer::meta_data() 42 { 43 return 0; 44 } 45 46 MOZ_EXPORT void* 47 MediaBuffer::data() const 48 { 49 return 0; 50 } 51 52 MOZ_EXPORT size_t 53 MediaBuffer::size() const 54 { 55 return 0; 56 } 57 58 MOZ_EXPORT bool 59 MetaData::findInt32(uint32_t key, int32_t *value) 60 { 61 return false; 62 } 63 64 MOZ_EXPORT bool 65 MetaData::setInt32(uint32_t, int32_t) 66 { 67 return false; 68 } 69 70 MOZ_EXPORT bool 71 MetaData::findInt64(uint32_t key, int64_t *value) 72 { 73 return false; 74 } 75 76 MOZ_EXPORT bool 77 MetaData::findPointer(uint32_t key, void **value) 78 { 79 return false; 80 } 81 82 MOZ_EXPORT bool 83 MetaData::findCString(uint32_t key, const char **value) 84 { 85 return false; 86 } 87 88 MOZ_EXPORT bool 89 MetaData::findRect(unsigned int key, int *cropLeft, int *cropTop, 90 int *cropRight, int *cropBottom) 91 { 92 abort(); 93 } 94 95 MOZ_EXPORT MediaSource::ReadOptions::ReadOptions() 96 { 97 } 98 99 MOZ_EXPORT void 100 MediaSource::ReadOptions::setSeekTo(int64_t time_us, SeekMode mode) 101 { 102 } 103 104 MOZ_EXPORT sp<DataSource> DataSource::CreateFromURI( 105 const char *uri, 106 const KeyedVector<String8, String8> *headers) { 107 return 0; 108 } 109 110 MOZ_EXPORT bool 111 DataSource::getUInt16(off64_t offset, uint16_t *x) 112 { 113 return false; 114 } 115 116 MOZ_EXPORT status_t 117 DataSource::getSize(off64_t *size) 118 { 119 return 0; 120 } 121 122 MOZ_EXPORT String8 123 DataSource::getMIMEType() const 124 { 125 return String8(); 126 } 127 128 MOZ_EXPORT void 129 DataSource::RegisterDefaultSniffers() 130 { 131 } 132 133 MOZ_EXPORT sp<MediaExtractor> 134 MediaExtractor::Create(const sp<DataSource> &source, const char *mime) 135 { 136 return 0; 137 } 138 139 MOZ_EXPORT sp<MediaSource> 140 OMXCodec::Create( 141 const sp<IOMX> &omx, 142 const sp<MetaData> &meta, bool createEncoder, 143 const sp<MediaSource> &source, 144 const char *matchComponentName, 145 uint32_t flags, 146 const sp<ANativeWindow> &nativeWindow) 147 { 148 return 0; 149 } 150 151 MOZ_EXPORT OMXClient::OMXClient() 152 { 153 } 154 155 MOZ_EXPORT status_t OMXClient::connect() 156 { 157 return OK; 158 } 159 160 MOZ_EXPORT void OMXClient::disconnect() 161 { 162 } 163 164 MOZ_EXPORT 165 ColorConverter::ColorConverter(OMX_COLOR_FORMATTYPE, OMX_COLOR_FORMATTYPE) { } 166 167 MOZ_EXPORT 168 ColorConverter::~ColorConverter() { } 169 170 MOZ_EXPORT bool 171 ColorConverter::isValid() const { return false; } 172 173 MOZ_EXPORT status_t 174 ColorConverter::convert(const void *srcBits, 175 size_t srcWidth, size_t srcHeight, 176 size_t srcCropLeft, size_t srcCropTop, 177 size_t srcCropRight, size_t srcCropBottom, 178 void *dstBits, 179 size_t dstWidth, size_t dstHeight, 180 size_t dstCropLeft, size_t dstCropTop, 181 size_t dstCropRight, size_t dstCropBottom) 182 { 183 return 0; 184 } 185 186 MOZ_EXPORT status_t QueryCodecs(const sp<IOMX> &omx, 187 const char *mimeType, bool queryDecoders, 188 Vector<CodecCapabilities> *results) 189 { 190 return 0; 191 } 192 193 } 194