summaryrefslogtreecommitdiffstats
path: root/media/omx-plugin/lib/ics/libstagefright/libstagefright.cpp
blob: a998c4a569f97480fe768803b8fca702af8a7a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
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;
}

}