19
|
1 |
/**
|
|
2 |
* src\adaptation\XAStreamInformationItfAdaptation.c
|
|
3 |
* Part of OpenMAX AL Implementation
|
|
4 |
* Copyright (c) 2009 Nokia Inc.
|
|
5 |
*
|
|
6 |
* This file contains implementation of XAStreamInformationItfAdaptation
|
|
7 |
**/
|
|
8 |
|
|
9 |
#include "xadebug.h"
|
|
10 |
#include "xathreadsafety.h"
|
|
11 |
#include "xaadaptationgst.h"
|
|
12 |
#include "xamediaplayeradaptctx.h"
|
|
13 |
#include "xastreaminformationitfadaptation.h"
|
|
14 |
#include "xaplayitfadaptation.h"
|
|
15 |
|
|
16 |
/* local functions */
|
|
17 |
XAresult GetDomainTypeFromCodecBinSrcPads(
|
|
18 |
GList *sourcePads,
|
|
19 |
XAuint32 containerType,
|
|
20 |
XAuint32 streamIndex,
|
|
21 |
XAuint32 *domain);
|
|
22 |
|
|
23 |
XAresult GetAudioStreamInfoFromPads(
|
|
24 |
GstPad *srcPad,
|
|
25 |
XAuint32 *channels,
|
|
26 |
XAuint32 *sampleRate,
|
|
27 |
XAuint32 *bitRate);
|
|
28 |
|
|
29 |
XAresult GetVideoStreamInfoFromPads(
|
|
30 |
GstPad *srcPad,
|
|
31 |
XAuint32 *width,
|
|
32 |
XAuint32 *height,
|
|
33 |
XAuint32 *frameRate,
|
|
34 |
XAuint32 *bitRate);
|
|
35 |
|
|
36 |
XAresult GetImageStreamInfoFromPads(
|
|
37 |
GstPad *srcPad,
|
|
38 |
XAuint32 *width,
|
|
39 |
XAuint32 *height);
|
|
40 |
|
|
41 |
/*
|
|
42 |
* XAStreamInformationItfAdapt_QueryMediaContainerInformation(
|
|
43 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
44 |
* XAMediaContainerInformation *info);
|
|
45 |
* Description: Obtains media container information
|
|
46 |
*/
|
|
47 |
XAresult XAStreamInformationItfAdapt_QueryMediaContainerInformation(
|
|
48 |
XAAdaptationBaseCtx *adaptCtx,
|
|
49 |
XAuint32 *containerType,
|
|
50 |
XAmillisecond *mediaDuration,
|
|
51 |
XAuint32 *numStreams)
|
|
52 |
{
|
|
53 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
54 |
XADataSource *xaDataSource = NULL;
|
|
55 |
GstElement *codecbin = NULL;
|
|
56 |
|
|
57 |
DEBUG_API("->XAStreamInformationItfAdapt_QueryMediaContainerInformation");
|
|
58 |
/* Both Media Player and Metadata Extractor objec uses the same ctxId */
|
|
59 |
if( !adaptCtx ||
|
|
60 |
(adaptCtx->ctxId != XAMediaPlayerAdaptation) )
|
|
61 |
/* !((adaptCtx->ctxId == XAMediaPlayerAdaptation) ||
|
|
62 |
(adaptCtx->ctxId == XAMDAdaptation) ) )
|
|
63 |
*/
|
|
64 |
{
|
|
65 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
66 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryMediaContainerInformation");
|
|
67 |
return XA_RESULT_PARAMETER_INVALID;
|
|
68 |
}
|
|
69 |
|
|
70 |
/* Get media container type */
|
|
71 |
DEBUG_INFO_A2("Adaptation Context- ID is [%u] Extended ID[%u]",
|
|
72 |
(unsigned int)adaptCtx->ctxId,
|
|
73 |
(unsigned int)((XAMediaPlayerAdaptationCtx*) adaptCtx)->extendedCtxId);
|
|
74 |
|
|
75 |
/* Initialize to unspecified */
|
|
76 |
*containerType = XA_CONTAINERTYPE_UNSPECIFIED;
|
|
77 |
xaDataSource = ((XAMediaPlayerAdaptationCtx*) adaptCtx)->xaSource;
|
|
78 |
/* DEBUG_INFO("Obtained handle to xaDataSource");*/
|
|
79 |
if ( xaDataSource &&
|
|
80 |
xaDataSource->pFormat &&
|
|
81 |
( (*(XAuint32*)xaDataSource->pFormat ) == XA_DATAFORMAT_MIME) )
|
|
82 |
{
|
|
83 |
*containerType = ((XADataFormat_MIME*)(xaDataSource->pFormat))->containerType;
|
|
84 |
DEBUG_INFO_A1("Container type obtained from xaDataSource->pFormat is [%u]", (unsigned int)(*containerType));
|
|
85 |
}
|
|
86 |
else
|
|
87 |
{
|
|
88 |
DEBUG_INFO("Container type unspecified");
|
|
89 |
}
|
|
90 |
|
|
91 |
/* Get media duration */
|
|
92 |
ret = XAPlayItfAdaptGST_GetDuration((XAAdaptationGstCtx*)adaptCtx, mediaDuration);
|
|
93 |
if ( ret != XA_RESULT_SUCCESS )
|
|
94 |
return ret;
|
|
95 |
|
|
96 |
/* Determine number of streams */
|
|
97 |
codecbin = ((XAMediaPlayerAdaptationCtx*) adaptCtx)->codecbin;
|
|
98 |
if ( codecbin == NULL )
|
|
99 |
{
|
|
100 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
101 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryMediaContainerInformation");
|
|
102 |
return XA_RESULT_INTERNAL_ERROR;
|
|
103 |
}
|
|
104 |
*numStreams = codecbin->numsrcpads;
|
|
105 |
|
|
106 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryMediaContainerInformation");
|
|
107 |
return XA_RESULT_SUCCESS;
|
|
108 |
}
|
|
109 |
|
|
110 |
/*
|
|
111 |
* XAresult XAStreamInformationItfAdapt_QueryStreamType(
|
|
112 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
113 |
* XAuint32 streamIndex,
|
|
114 |
* XAuint32 *domain)
|
|
115 |
* Description: Obtains stream type information
|
|
116 |
*/
|
|
117 |
XAresult XAStreamInformationItfAdapt_QueryStreamType(
|
|
118 |
XAAdaptationBaseCtx *adaptCtx,
|
|
119 |
XAuint32 streamIndex,
|
|
120 |
XAuint32 *domain)
|
|
121 |
{
|
|
122 |
XAresult ret;
|
|
123 |
XAuint32 containerType;
|
|
124 |
XAmillisecond mediaDuration;
|
|
125 |
XAuint32 numStreams;
|
|
126 |
XADataSource *xaDataSource = NULL;
|
|
127 |
|
|
128 |
|
|
129 |
DEBUG_API("->XAStreamInformationItfAdapt_QueryStreamType");
|
|
130 |
|
|
131 |
ret = XAStreamInformationItfAdapt_QueryMediaContainerInformation(
|
|
132 |
adaptCtx, &containerType, &mediaDuration, &numStreams);
|
|
133 |
if (ret != XA_RESULT_SUCCESS)
|
|
134 |
{
|
|
135 |
DEBUG_ERR_A1("XA_RESULT_[0x%x]", (unsigned int)ret);
|
|
136 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamType");
|
|
137 |
return ret;
|
|
138 |
}
|
|
139 |
|
|
140 |
/* validate stream index */
|
|
141 |
if ( streamIndex > numStreams )
|
|
142 |
{
|
|
143 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
144 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamType");
|
|
145 |
return XA_RESULT_PARAMETER_INVALID;
|
|
146 |
}
|
|
147 |
|
|
148 |
/* if format type is raw image */
|
|
149 |
xaDataSource = ((XAMediaPlayerAdaptationCtx*) adaptCtx)->xaSource;
|
|
150 |
if( xaDataSource->pFormat &&
|
|
151 |
( (*(XAuint32*)xaDataSource->pFormat ) == XA_DATAFORMAT_RAWIMAGE) )
|
|
152 |
{
|
|
153 |
*domain = XA_DOMAINTYPE_IMAGE;
|
|
154 |
return XA_RESULT_SUCCESS;
|
|
155 |
}
|
|
156 |
else
|
|
157 |
{
|
|
158 |
GstElement *codecbin = ((XAMediaPlayerAdaptationCtx*) adaptCtx)->codecbin;
|
|
159 |
if ( codecbin == NULL )
|
|
160 |
{
|
|
161 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
162 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamType");
|
|
163 |
return XA_RESULT_INTERNAL_ERROR;
|
|
164 |
}
|
|
165 |
|
|
166 |
GST_OBJECT_LOCK( codecbin );
|
|
167 |
ret = GetDomainTypeFromCodecBinSrcPads(
|
|
168 |
codecbin->srcpads,
|
|
169 |
containerType,
|
|
170 |
streamIndex,
|
|
171 |
domain);
|
|
172 |
GST_OBJECT_UNLOCK( codecbin );
|
|
173 |
}
|
|
174 |
|
|
175 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamType");
|
|
176 |
return ret;
|
|
177 |
}
|
|
178 |
|
|
179 |
/*
|
|
180 |
* XAresult XAStreamInformationItfAdapt_QueryStreamInformation(
|
|
181 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
182 |
* XAuint32 streamIndex,
|
|
183 |
* void * info)
|
|
184 |
* Description: Obtains stream information
|
|
185 |
*/
|
|
186 |
XAresult XAStreamInformationItfAdapt_QueryStreamInformation(
|
|
187 |
XAAdaptationBaseCtx *adaptCtx,
|
|
188 |
XAuint32 streamIndex,
|
|
189 |
void * info)
|
|
190 |
{
|
|
191 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
192 |
XAuint32 domain;
|
|
193 |
XAuint32 codecId = 0;
|
|
194 |
XAuint32 channels;
|
|
195 |
XAmilliHertz sampleRate;
|
|
196 |
XAuint32 bitRate;
|
|
197 |
XAmillisecond duration;
|
|
198 |
XAuint32 width;
|
|
199 |
XAuint32 height;
|
|
200 |
XAuint32 frameRate;
|
|
201 |
/*TODO fix this call below in capabilitymgr*/
|
|
202 |
/*XACapsType filter;*/
|
|
203 |
GstElement *codecbin = NULL;
|
|
204 |
|
|
205 |
DEBUG_API("->XAStreamInformationItfAdapt_QueryStreamInformation");
|
|
206 |
|
|
207 |
/* stream index is validated in XAStreamInformationItfAdapt_QueryStreamType */
|
|
208 |
ret = XAStreamInformationItfAdapt_QueryStreamType(
|
|
209 |
adaptCtx, streamIndex, &domain);
|
|
210 |
|
|
211 |
if (ret != XA_RESULT_SUCCESS)
|
|
212 |
{
|
|
213 |
DEBUG_ERR_A1("XA_RESULT_[0x%x]", (unsigned int)ret);
|
|
214 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamInformation");
|
|
215 |
return ret;
|
|
216 |
}
|
|
217 |
if ( domain == XA_DOMAINTYPE_UNKNOWN )
|
|
218 |
{
|
|
219 |
DEBUG_ERR("XA_RESULT_CONTENT_UNSUPPORTED");
|
|
220 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamInformation");
|
|
221 |
return XA_RESULT_CONTENT_UNSUPPORTED;
|
|
222 |
}
|
|
223 |
|
|
224 |
codecbin = ((XAMediaPlayerAdaptationCtx*) adaptCtx)->codecbin;
|
|
225 |
if ( codecbin == NULL )
|
|
226 |
{
|
|
227 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
228 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamInformation");
|
|
229 |
return XA_RESULT_INTERNAL_ERROR;
|
|
230 |
}
|
|
231 |
|
|
232 |
/* For midi none of the properties can be queried from gstreamer */
|
|
233 |
if ( domain != XA_DOMAINTYPE_MIDI )
|
|
234 |
{
|
|
235 |
GstPad* srcPad = NULL;
|
|
236 |
gchar* codecbinFactoryName = NULL;
|
|
237 |
|
|
238 |
GST_OBJECT_LOCK( codecbin );
|
|
239 |
srcPad = (GstPad*) g_list_nth_data(codecbin->srcpads, (streamIndex -1 ));
|
|
240 |
DEBUG_INFO_A1("Obtaining SrcPad%u from Decode bin", (unsigned int)(streamIndex-1));
|
|
241 |
if (srcPad == NULL)
|
|
242 |
{
|
|
243 |
GST_OBJECT_UNLOCK( codecbin );
|
|
244 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
245 |
DEBUG_API("-<QueryStreamInformation");
|
|
246 |
return XA_RESULT_INTERNAL_ERROR;
|
|
247 |
}
|
|
248 |
switch (domain)
|
|
249 |
{
|
|
250 |
/*TODO fix this call below in capabilitymgr*/
|
|
251 |
/*case XA_DOMAINTYPE_AUDIO:
|
|
252 |
filter = XACAP_AUDIO;
|
|
253 |
break;
|
|
254 |
case XA_DOMAINTYPE_VIDEO:
|
|
255 |
filter = XACAP_VIDEO;
|
|
256 |
break;
|
|
257 |
case XA_DOMAINTYPE_IMAGE:
|
|
258 |
filter = XACAP_IMAGE;
|
|
259 |
break;*/
|
|
260 |
};
|
|
261 |
|
|
262 |
codecbinFactoryName = gst_element_get_name(gst_element_get_factory (codecbin));
|
|
263 |
/* decode bin has the sink pads ghosted from targetPad.
|
|
264 |
So retreive the name of the original decoder element*/
|
|
265 |
if ( strcmp(codecbinFactoryName, "decodebin") == 0 )
|
|
266 |
{
|
|
267 |
GstPad* targetPad = NULL;
|
|
268 |
gchar* decoderElementName = NULL; /* for retreiving codec id*/
|
|
269 |
|
|
270 |
DEBUG_INFO("Decodebin: Obtaining target pad of SrcPad");
|
|
271 |
targetPad = gst_ghost_pad_get_target ((GstGhostPad*)srcPad);
|
|
272 |
decoderElementName = gst_element_get_name(gst_element_get_factory (gst_pad_get_parent_element(targetPad)));
|
|
273 |
/*TODO fix this call below in capabilitymgr*/
|
|
274 |
/*
|
|
275 |
ret = XAStaticCapsAdapt_GetCodecIDByPluginName(
|
|
276 |
filter,
|
|
277 |
(XAchar*)decoderElementName,
|
|
278 |
&codecId);
|
|
279 |
*/
|
|
280 |
gst_object_unref(targetPad);
|
|
281 |
g_free(decoderElementName);
|
|
282 |
}
|
|
283 |
else /* for identity, audioparse and videoparse elements */
|
|
284 |
{
|
|
285 |
DEBUG_INFO("Not decode bin, but a passthru element");
|
|
286 |
/*TODO fix this call below in capabilitymgr*/
|
|
287 |
/* ret = XAStaticCapsAdapt_GetCodecIDByPluginName(
|
|
288 |
filter,
|
|
289 |
(XAchar*)codecbinFactoryName,
|
|
290 |
&codecId);*/
|
|
291 |
}
|
|
292 |
g_free(codecbinFactoryName);
|
|
293 |
if ( ret == XA_RESULT_SUCCESS )
|
|
294 |
{
|
|
295 |
/* retreive srcPad properties before releasing lock on codecbin */
|
|
296 |
switch(domain)
|
|
297 |
{
|
|
298 |
case XA_DOMAINTYPE_AUDIO:
|
|
299 |
DEBUG_INFO("Getting Audio Stream Info from SrcPad");
|
|
300 |
ret = GetAudioStreamInfoFromPads(
|
|
301 |
srcPad,
|
|
302 |
&channels,
|
|
303 |
&sampleRate,
|
|
304 |
&bitRate);
|
|
305 |
break;
|
|
306 |
case XA_DOMAINTYPE_VIDEO:
|
|
307 |
DEBUG_INFO("Getting Video Stream Info from SrcPad");
|
|
308 |
ret = GetVideoStreamInfoFromPads(
|
|
309 |
srcPad,
|
|
310 |
&width,
|
|
311 |
&height,
|
|
312 |
&frameRate,
|
|
313 |
&bitRate);
|
|
314 |
break;
|
|
315 |
case XA_DOMAINTYPE_IMAGE:
|
|
316 |
DEBUG_INFO("Getting Image Stream Info from SrcPad");
|
|
317 |
ret = GetImageStreamInfoFromPads(
|
|
318 |
srcPad,
|
|
319 |
&width,
|
|
320 |
&height
|
|
321 |
);
|
|
322 |
break;
|
|
323 |
default:
|
|
324 |
break;
|
|
325 |
};
|
|
326 |
}
|
|
327 |
/* Now unlock the bin */
|
|
328 |
GST_OBJECT_UNLOCK( codecbin );
|
|
329 |
} /*if ( domain != XA_DOMAIN_TYPE_MIDI )*/
|
|
330 |
|
|
331 |
if ( ret == XA_RESULT_SUCCESS)
|
|
332 |
{
|
|
333 |
DEBUG_INFO("Getting media duration");
|
|
334 |
ret = XAPlayItfAdaptGST_GetDuration((XAAdaptationGstCtx*)adaptCtx, &duration);
|
|
335 |
}
|
|
336 |
|
|
337 |
/* Now assign properties to data structure */
|
|
338 |
if ( ret == XA_RESULT_SUCCESS)
|
|
339 |
{
|
|
340 |
switch(domain)
|
|
341 |
{
|
|
342 |
case XA_DOMAINTYPE_AUDIO:
|
|
343 |
{
|
|
344 |
XAAudioStreamInformation* streamInfo = (XAAudioStreamInformation*)info;
|
|
345 |
DEBUG_INFO("Assigning values for XAAudioStreamInformation");
|
|
346 |
streamInfo->codecId = codecId;
|
|
347 |
streamInfo->channels = channels;
|
|
348 |
streamInfo->sampleRate = sampleRate;
|
|
349 |
streamInfo->bitRate = bitRate;
|
|
350 |
streamInfo->langCountry[0] = '\0';
|
|
351 |
streamInfo->duration = duration;
|
|
352 |
}
|
|
353 |
break;
|
|
354 |
case XA_DOMAINTYPE_MIDI:
|
|
355 |
{
|
|
356 |
XAMIDIStreamInformation* streamInfo = (XAMIDIStreamInformation*)info;
|
|
357 |
DEBUG_INFO("Assigning values for XAMIDIStreamInformation");
|
|
358 |
/*currently there is no way to get these information from gstreamer*/
|
|
359 |
streamInfo->channels = XA_MIDI_UNKNOWN;
|
|
360 |
streamInfo->tracks = XA_MIDI_UNKNOWN;
|
|
361 |
streamInfo->bankType = XA_MIDIBANK_DEVICE;
|
|
362 |
/*streamInfo->bitRate = 0;*/
|
|
363 |
streamInfo->langCountry[0] = '\0';
|
|
364 |
streamInfo->duration = duration;
|
|
365 |
}
|
|
366 |
break;
|
|
367 |
case XA_DOMAINTYPE_VIDEO:
|
|
368 |
{
|
|
369 |
XAVideoStreamInformation* streamInfo = (XAVideoStreamInformation*)info;
|
|
370 |
DEBUG_INFO("Assigning values for XAVideoStreamInformation");
|
|
371 |
streamInfo->codecId = codecId;
|
|
372 |
streamInfo->width = width;
|
|
373 |
streamInfo->height = height;
|
|
374 |
streamInfo->bitRate = bitRate;
|
|
375 |
streamInfo->duration = duration;
|
|
376 |
}
|
|
377 |
break;
|
|
378 |
case XA_DOMAINTYPE_IMAGE:
|
|
379 |
{
|
|
380 |
XAImageStreamInformation* streamInfo = (XAImageStreamInformation*)info;
|
|
381 |
DEBUG_INFO("Assigning values for XAImageStreamInformation");
|
|
382 |
streamInfo->codecId = codecId;
|
|
383 |
streamInfo->width = width;
|
|
384 |
streamInfo->height = height;
|
|
385 |
streamInfo->presentationDuration = duration;
|
|
386 |
}
|
|
387 |
break;
|
|
388 |
default:
|
|
389 |
break;
|
|
390 |
};
|
|
391 |
} /*if ( ret == XA_RESULT_SUCCESS)*/
|
|
392 |
|
|
393 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamInformation");
|
|
394 |
return ret;
|
|
395 |
}
|
|
396 |
|
|
397 |
/*
|
|
398 |
* XAresult XAStreamInformationItfAdapt_QueryStreamName(
|
|
399 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
400 |
* XAuint32 streamIndex,
|
|
401 |
* XAuint16 * pNameSize,
|
|
402 |
* XAchar * pName)
|
|
403 |
* Description: Obtains stream name
|
|
404 |
*/
|
|
405 |
XAresult XAStreamInformationItfAdapt_QueryStreamName(
|
|
406 |
XAAdaptationBaseCtx *adaptCtx,
|
|
407 |
XAuint32 streamIndex,
|
|
408 |
XAuint16 * pNameSize,
|
|
409 |
XAchar * pName)
|
|
410 |
{
|
|
411 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
412 |
XAuint32 numStreams;
|
|
413 |
GstElement *codecbin = NULL;
|
|
414 |
|
|
415 |
DEBUG_API("->XAStreamInformationItfAdapt_QueryStreamName");
|
|
416 |
/* Both Media Player and Metadata Extractor objec uses the same ctxId */
|
|
417 |
if( !adaptCtx ||
|
|
418 |
(adaptCtx->ctxId != XAMediaPlayerAdaptation) )
|
|
419 |
{
|
|
420 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
421 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamName");
|
|
422 |
return XA_RESULT_PARAMETER_INVALID;
|
|
423 |
}
|
|
424 |
|
|
425 |
/* validate stream index */
|
|
426 |
codecbin = ((XAMediaPlayerAdaptationCtx*) adaptCtx)->codecbin;
|
|
427 |
if ( codecbin == NULL )
|
|
428 |
{
|
|
429 |
DEBUG_INFO("Unable to get codec bin");
|
|
430 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
431 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamName");
|
|
432 |
return XA_RESULT_INTERNAL_ERROR;
|
|
433 |
}
|
|
434 |
numStreams = codecbin->numsrcpads;
|
|
435 |
|
|
436 |
/* validate stream index */
|
|
437 |
if ( streamIndex > numStreams )
|
|
438 |
{
|
|
439 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
440 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamName");
|
|
441 |
return XA_RESULT_PARAMETER_INVALID;
|
|
442 |
}
|
|
443 |
|
|
444 |
/* TODO there is no straight way to retreive stream name from gstreamer*/
|
|
445 |
/*XAuint16 inputNameSize = *pNameSize;*/
|
|
446 |
*pNameSize = 0; /* Replace this with actual size*/
|
|
447 |
if ( pName )
|
|
448 |
{
|
|
449 |
/* TODO copy stream name into pName taking into account inputNameSize */
|
|
450 |
}
|
|
451 |
|
|
452 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryStreamName");
|
|
453 |
return ret;
|
|
454 |
}
|
|
455 |
|
|
456 |
/*
|
|
457 |
* XAresult XAStreamInformationItfAdapt_QueryActiveStreams(
|
|
458 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
459 |
* XAuint32 *numStreams,
|
|
460 |
* XAboolean *activeStreams);
|
|
461 |
* Description: Obtains active stream information
|
|
462 |
*/
|
|
463 |
XAresult XAStreamInformationItfAdapt_QueryActiveStreams(
|
|
464 |
XAAdaptationBaseCtx *adaptCtx,
|
|
465 |
XAuint32 *numStreams,
|
|
466 |
XAboolean *activeStreams)
|
|
467 |
{
|
|
468 |
XAuint32 inputNumStreams;
|
|
469 |
GstElement *codecbin;
|
|
470 |
|
|
471 |
DEBUG_API("->XAStreamInformationItfAdapt_QueryActiveStreams");
|
|
472 |
|
|
473 |
/* Both Media Player and Metadata Extractor objec uses the same ctxId */
|
|
474 |
if( !adaptCtx ||
|
|
475 |
(adaptCtx->ctxId != XAMediaPlayerAdaptation) )
|
|
476 |
{
|
|
477 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
478 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryActiveStreams");
|
|
479 |
return XA_RESULT_PARAMETER_INVALID;
|
|
480 |
}
|
|
481 |
|
|
482 |
if( adaptCtx->ctxId == XAMDAdaptation)
|
|
483 |
{
|
|
484 |
DEBUG_ERR("XA_RESULT_PRECONDITIONS_VIOLATED");
|
|
485 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryActiveStreams");
|
|
486 |
return XA_RESULT_PRECONDITIONS_VIOLATED;
|
|
487 |
}
|
|
488 |
|
|
489 |
inputNumStreams = *numStreams;
|
|
490 |
|
|
491 |
/* Determine number of streams */
|
|
492 |
codecbin = ((XAMediaPlayerAdaptationCtx*) adaptCtx)->codecbin;
|
|
493 |
if ( codecbin == NULL )
|
|
494 |
{
|
|
495 |
DEBUG_INFO("Unable to get codec bin");
|
|
496 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
497 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryActiveStreams");
|
|
498 |
return XA_RESULT_INTERNAL_ERROR;
|
|
499 |
}
|
|
500 |
*numStreams = codecbin->numsrcpads;
|
|
501 |
|
|
502 |
if ( activeStreams )
|
|
503 |
{
|
|
504 |
XAuint32 loopIndex;
|
|
505 |
if (inputNumStreams < *numStreams )
|
|
506 |
{
|
|
507 |
DEBUG_INFO("numStreams param value is smaller than number of streams");
|
|
508 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
509 |
DEBUG_API("-<XAStreamInformationItfAdapt_QueryActiveStreams");
|
|
510 |
return XA_RESULT_PARAMETER_INVALID;
|
|
511 |
}
|
|
512 |
for (loopIndex = 0; loopIndex < *numStreams; loopIndex++)
|
|
513 |
{
|
|
514 |
/* TODO currently gstreamer doesn't allow multiple dynamic streams
|
|
515 |
* all streams are active streams */
|
|
516 |
activeStreams[loopIndex] = XA_BOOLEAN_TRUE;
|
|
517 |
}
|
|
518 |
}
|
|
519 |
|
|
520 |
DEBUG_API("->XAStreamInformationItfAdapt_QueryActiveStreams");
|
|
521 |
return XA_RESULT_SUCCESS;
|
|
522 |
}
|
|
523 |
|
|
524 |
XAresult XAStreamInformationItfAdapt_SetActiveStream(
|
|
525 |
XAAdaptationBaseCtx *adaptCtx,
|
|
526 |
XAuint32 streamNum,
|
|
527 |
XAboolean active,
|
|
528 |
XAboolean commitNow)
|
|
529 |
{
|
|
530 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
531 |
XAuint32 numStreams;
|
|
532 |
GstElement *codecbin;
|
|
533 |
|
|
534 |
DEBUG_API("->XAStreamInformationItfAdapt_SetActiveStream");
|
|
535 |
|
|
536 |
/* Both Media Player and Metadata Extractor objec uses the same ctxId */
|
|
537 |
if( !adaptCtx ||
|
|
538 |
(adaptCtx->ctxId != XAMediaPlayerAdaptation) )
|
|
539 |
{
|
|
540 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
541 |
DEBUG_API("-<XAStreamInformationItfAdapt_SetActiveStream");
|
|
542 |
return XA_RESULT_PARAMETER_INVALID;
|
|
543 |
}
|
|
544 |
|
|
545 |
if( adaptCtx->ctxId == XAMDAdaptation)
|
|
546 |
{
|
|
547 |
DEBUG_ERR("XA_RESULT_PRECONDITIONS_VIOLATED");
|
|
548 |
DEBUG_API("-<XAStreamInformationItfAdapt_SetActiveStream");
|
|
549 |
return XA_RESULT_PRECONDITIONS_VIOLATED;
|
|
550 |
}
|
|
551 |
|
|
552 |
/* Determine number of streams */
|
|
553 |
codecbin = ((XAMediaPlayerAdaptationCtx*) adaptCtx)->codecbin;
|
|
554 |
if ( codecbin == NULL )
|
|
555 |
{
|
|
556 |
DEBUG_INFO("Unable to get codec bin");
|
|
557 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
558 |
DEBUG_API("-<XAStreamInformationItfAdapt_SetActiveStream");
|
|
559 |
return XA_RESULT_INTERNAL_ERROR;
|
|
560 |
}
|
|
561 |
numStreams = codecbin->numsrcpads;
|
|
562 |
|
|
563 |
/* validate stream index */
|
|
564 |
if ( streamNum > numStreams )
|
|
565 |
{
|
|
566 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
567 |
DEBUG_API("-<XAStreamInformationItfAdapt_SetActiveStream");
|
|
568 |
return XA_RESULT_PARAMETER_INVALID;
|
|
569 |
}
|
|
570 |
|
|
571 |
ret = XA_RESULT_FEATURE_UNSUPPORTED;
|
|
572 |
|
|
573 |
DEBUG_API("->XAStreamInformationItfAdapt_SetActiveStream");
|
|
574 |
return ret;
|
|
575 |
}
|
|
576 |
|
|
577 |
/* local functions */
|
|
578 |
|
|
579 |
XAresult GetDomainTypeFromCodecBinSrcPads(
|
|
580 |
GList *sourcePads,
|
|
581 |
XAuint32 containerType,
|
|
582 |
XAuint32 streamIndex,
|
|
583 |
XAuint32 *domain)
|
|
584 |
{
|
|
585 |
GstPad* srcPad;
|
|
586 |
GstCaps* negotiatedCaps;
|
|
587 |
const GstStructure* gstStruct;
|
|
588 |
const gchar *mime;
|
|
589 |
|
|
590 |
DEBUG_API("->GetDomainTypeFromCodecBinSrcPads");
|
|
591 |
|
|
592 |
|
|
593 |
srcPad = (GstPad*) g_list_nth_data(sourcePads, (streamIndex -1 ));
|
|
594 |
if (srcPad == NULL)
|
|
595 |
{
|
|
596 |
DEBUG_INFO_A1("Error obtaining SrcPad%u", (unsigned int)streamIndex);
|
|
597 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
598 |
DEBUG_API("-<GetDomainTypeFromCodecBinSrcPads");
|
|
599 |
return XA_RESULT_INTERNAL_ERROR;
|
|
600 |
}
|
|
601 |
DEBUG_INFO_A1("Obtained SrcPad%u from SrcPads list", (unsigned int)(streamIndex-1));
|
|
602 |
|
|
603 |
negotiatedCaps = gst_pad_get_negotiated_caps(srcPad);
|
|
604 |
if ( negotiatedCaps == NULL )
|
|
605 |
{
|
|
606 |
DEBUG_INFO("Obtaining allowed caps from SrcPad.");
|
|
607 |
negotiatedCaps = gst_pad_get_allowed_caps (srcPad);
|
|
608 |
}
|
|
609 |
|
|
610 |
if ( negotiatedCaps == NULL )
|
|
611 |
{
|
|
612 |
DEBUG_INFO("Unable to obtain negotiated and allowed caps from SrcPad");
|
|
613 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
614 |
DEBUG_API("-<GetDomainTypeFromCodecBinSrcPads");
|
|
615 |
return XA_RESULT_INTERNAL_ERROR;
|
|
616 |
}
|
|
617 |
|
|
618 |
DEBUG_INFO("Obtained negotiated/allowed GstCaps from SrcPad");
|
|
619 |
|
|
620 |
gstStruct = gst_caps_get_structure (negotiatedCaps, 0);
|
|
621 |
if ( gstStruct == NULL )
|
|
622 |
{
|
|
623 |
gst_object_unref (negotiatedCaps);
|
|
624 |
DEBUG_INFO("Error getting GstStructure from GstCaps");
|
|
625 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
626 |
DEBUG_API("-<GetDomainTypeFromCodecBinSrcPads");
|
|
627 |
return XA_RESULT_INTERNAL_ERROR;
|
|
628 |
}
|
|
629 |
DEBUG_INFO("Obtained GstStructure from GstCaps");
|
|
630 |
|
|
631 |
mime = gst_structure_get_name (gstStruct);
|
|
632 |
|
|
633 |
DEBUG_INFO_A1("MimeType associated with SrcPad is [%s]", mime);
|
|
634 |
|
|
635 |
*domain = XA_DOMAINTYPE_UNKNOWN;
|
|
636 |
if (strncmp (mime, "audio", 5) == 0)
|
|
637 |
{
|
|
638 |
gchar* elementFactoryName = NULL;
|
|
639 |
|
|
640 |
*domain = XA_DOMAINTYPE_AUDIO;
|
|
641 |
|
|
642 |
/*check if it is midi or not by checking the sink pad's mime-type*/
|
|
643 |
/* this should done by checking the sinkpad's mime-type of parent element */
|
|
644 |
elementFactoryName = gst_element_get_name(gst_element_get_factory (gst_pad_get_parent_element(srcPad)));
|
|
645 |
|
|
646 |
/*printf("Element factory name [%s]\n", elementFactoryName);*/
|
|
647 |
|
|
648 |
/* decode bin has the sink pads ghosted from targetPad.
|
|
649 |
So retreive the name of the original decoder element*/
|
|
650 |
if ( strcmp(elementFactoryName, "decodebin") == 0 )
|
|
651 |
{
|
|
652 |
GstPad* targetPad = NULL;
|
|
653 |
gchar* decoderElementName = NULL;
|
|
654 |
|
|
655 |
DEBUG_INFO("Decodebin: Obtaining target pad of SrcPad");
|
|
656 |
targetPad = gst_ghost_pad_get_target ((GstGhostPad*)srcPad);
|
|
657 |
|
|
658 |
decoderElementName = gst_element_get_name (gst_element_get_factory (gst_pad_get_parent_element (targetPad)));
|
|
659 |
/* better solution would be to get mime-type from decoder and decide based on that */
|
|
660 |
/* currently we cannot retrieive sinkpad's caps. Perhaps a bug in gstreamer. We need */
|
|
661 |
/* to revisit this when we move to newer version of gstreamer */
|
|
662 |
if ( strcmp(decoderElementName, "wildmidi") == 0 )
|
|
663 |
{
|
|
664 |
*domain = XA_DOMAINTYPE_MIDI;
|
|
665 |
}
|
|
666 |
g_free(decoderElementName);
|
|
667 |
gst_object_unref(targetPad);
|
|
668 |
}
|
|
669 |
g_free(elementFactoryName);
|
|
670 |
|
|
671 |
}
|
|
672 |
else if (strncmp (mime, "video", 5) == 0)
|
|
673 |
{
|
|
674 |
switch(containerType)
|
|
675 |
{
|
|
676 |
case XA_CONTAINERTYPE_BMP:
|
|
677 |
case XA_CONTAINERTYPE_JPG:
|
|
678 |
case XA_CONTAINERTYPE_JPG2000:
|
|
679 |
*domain = XA_DOMAINTYPE_IMAGE;
|
|
680 |
break;
|
|
681 |
default:
|
|
682 |
*domain = XA_DOMAINTYPE_VIDEO;
|
|
683 |
break;
|
|
684 |
};
|
|
685 |
}
|
|
686 |
/* TODO find out why this causes assertion failure */
|
|
687 |
/*gst_object_unref (negotiatedCaps);*/
|
|
688 |
|
|
689 |
DEBUG_API("-<GetDomainTypeFromCodecBinSrcPads");
|
|
690 |
|
|
691 |
return XA_RESULT_SUCCESS;
|
|
692 |
}
|
|
693 |
|
|
694 |
XAresult GetAudioStreamInfoFromPads(
|
|
695 |
GstPad *srcPad,
|
|
696 |
XAuint32 *channels,
|
|
697 |
XAuint32 *sampleRate,
|
|
698 |
XAuint32 *bitRate)
|
|
699 |
{
|
|
700 |
GstCaps* negotiatedCaps;
|
|
701 |
const GstStructure* gstStruct;
|
|
702 |
gint negotiated_sampleRate;
|
|
703 |
gint negotiated_channels;
|
|
704 |
gint negotiated_bitRate;
|
|
705 |
|
|
706 |
DEBUG_API("->GetAudioStreamInfoFromPads");
|
|
707 |
|
|
708 |
negotiatedCaps = gst_pad_get_negotiated_caps(srcPad);
|
|
709 |
if ( negotiatedCaps == NULL )
|
|
710 |
{
|
|
711 |
DEBUG_INFO("Obtaining allowed caps from SrcPad.");
|
|
712 |
negotiatedCaps = gst_pad_get_allowed_caps (srcPad);
|
|
713 |
}
|
|
714 |
|
|
715 |
if ( negotiatedCaps == NULL )
|
|
716 |
{
|
|
717 |
DEBUG_INFO("Unable to obtain negotiated and allowed caps from SrcPad");
|
|
718 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
719 |
DEBUG_API("-<GetAudioStreamInfoFromPads");
|
|
720 |
return XA_RESULT_INTERNAL_ERROR;
|
|
721 |
}
|
|
722 |
|
|
723 |
DEBUG_INFO("Obtained negotiated/allowed GstCaps from SrcPad");
|
|
724 |
|
|
725 |
gstStruct = gst_caps_get_structure (negotiatedCaps, 0);
|
|
726 |
if ( gstStruct == NULL )
|
|
727 |
{
|
|
728 |
gst_object_unref (negotiatedCaps);
|
|
729 |
DEBUG_INFO("Error getting GstStructure from GstCaps");
|
|
730 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
731 |
DEBUG_API("-<GetAudioStreamInfoFromPads");
|
|
732 |
return XA_RESULT_INTERNAL_ERROR;
|
|
733 |
}
|
|
734 |
DEBUG_INFO("Obtained GstStructure from GstCaps");
|
|
735 |
|
|
736 |
*channels = 0;
|
|
737 |
*sampleRate = 0;
|
|
738 |
*bitRate = 0;
|
|
739 |
|
|
740 |
gst_structure_get_int (gstStruct, "channels", &negotiated_channels);
|
|
741 |
gst_structure_get_int (gstStruct, "rate", &negotiated_sampleRate);
|
|
742 |
gst_structure_get_int (gstStruct, "bitrate", &negotiated_bitRate);
|
|
743 |
|
|
744 |
*channels = negotiated_channels;
|
|
745 |
*sampleRate = (XAmilliHertz) negotiated_sampleRate * 1000;
|
|
746 |
*bitRate = negotiated_bitRate;
|
|
747 |
|
|
748 |
DEBUG_INFO_A1("channels[%u]", (unsigned int)*channels);
|
|
749 |
DEBUG_INFO_A1("sampleRate[%u]", (unsigned int)*sampleRate);
|
|
750 |
DEBUG_INFO_A1("bitRate[%u]", (unsigned int)*bitRate);
|
|
751 |
/* TODO find out why this is causing assertion failure
|
|
752 |
gst_object_unref (negotiatedCaps);*/
|
|
753 |
|
|
754 |
DEBUG_API("-<GetAudioStreamInfoFromPads");
|
|
755 |
|
|
756 |
return XA_RESULT_SUCCESS;
|
|
757 |
}
|
|
758 |
|
|
759 |
XAresult GetVideoStreamInfoFromPads(
|
|
760 |
GstPad *srcPad,
|
|
761 |
XAuint32 *width,
|
|
762 |
XAuint32 *height,
|
|
763 |
XAuint32 *frameRate,
|
|
764 |
XAuint32 *bitRate)
|
|
765 |
{
|
|
766 |
GstCaps* negotiatedCaps;
|
|
767 |
const GstStructure* gstStruct;
|
|
768 |
gint negotiated_width;
|
|
769 |
gint negotiated_height;
|
|
770 |
gint negotiated_frameRate_numerator;
|
|
771 |
gint negotiated_frameRate_denominator;
|
|
772 |
gint negotiated_bitRate;
|
|
773 |
|
|
774 |
DEBUG_API("->GetVideoStreamInfoFromPads");
|
|
775 |
|
|
776 |
negotiatedCaps = gst_pad_get_negotiated_caps(srcPad);
|
|
777 |
if ( negotiatedCaps == NULL )
|
|
778 |
{
|
|
779 |
DEBUG_INFO("Obtaining allowed caps from SrcPad.");
|
|
780 |
negotiatedCaps = gst_pad_get_allowed_caps (srcPad);
|
|
781 |
}
|
|
782 |
|
|
783 |
if ( negotiatedCaps == NULL )
|
|
784 |
{
|
|
785 |
DEBUG_INFO("Unable to obtain negotiated and allowed caps from SrcPad");
|
|
786 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
787 |
DEBUG_API("-<GetVideoStreamInfoFromPads");
|
|
788 |
return XA_RESULT_INTERNAL_ERROR;
|
|
789 |
}
|
|
790 |
|
|
791 |
DEBUG_INFO("Obtained negotiated/allowed GstCaps from SrcPad");
|
|
792 |
|
|
793 |
gstStruct = gst_caps_get_structure (negotiatedCaps, 0);
|
|
794 |
if ( gstStruct == NULL )
|
|
795 |
{
|
|
796 |
gst_object_unref (negotiatedCaps);
|
|
797 |
DEBUG_INFO("Error getting GstStructure from GstCaps");
|
|
798 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
799 |
DEBUG_API("-<GetVideoStreamInfoFromPads");
|
|
800 |
return XA_RESULT_INTERNAL_ERROR;
|
|
801 |
}
|
|
802 |
DEBUG_INFO("Obtained GstStructure from GstCaps");
|
|
803 |
|
|
804 |
*width = 0;
|
|
805 |
*height = 0;
|
|
806 |
*frameRate = 0;
|
|
807 |
*bitRate = 0;
|
|
808 |
|
|
809 |
gst_structure_get_int (gstStruct, "width", &negotiated_width);
|
|
810 |
gst_structure_get_int (gstStruct, "height", &negotiated_height);
|
|
811 |
gst_structure_get_fraction (gstStruct, "framerate",
|
|
812 |
&negotiated_frameRate_numerator,
|
|
813 |
&negotiated_frameRate_denominator);
|
|
814 |
gst_structure_get_int (gstStruct, "bitrate", &negotiated_bitRate);
|
|
815 |
|
|
816 |
*width = negotiated_width;
|
|
817 |
*height = negotiated_height;
|
|
818 |
*bitRate = negotiated_bitRate;
|
|
819 |
|
|
820 |
DEBUG_INFO_A1("width[%u]", (unsigned int)*width);
|
|
821 |
DEBUG_INFO_A1("height[%u]", (unsigned int)*height);
|
|
822 |
DEBUG_INFO_A2("framerate[%u/%u]", (unsigned int)negotiated_frameRate_numerator, (unsigned int)negotiated_frameRate_denominator);
|
|
823 |
DEBUG_INFO_A1("bitrate[%u]", (unsigned int)*bitRate);
|
|
824 |
/* TODO find out why this is causing assertion failure
|
|
825 |
gst_object_unref (negotiatedCaps);*/
|
|
826 |
|
|
827 |
DEBUG_API("-<GetVideoStreamInfoFromPads");
|
|
828 |
|
|
829 |
return XA_RESULT_SUCCESS;
|
|
830 |
}
|
|
831 |
|
|
832 |
|
|
833 |
XAresult GetImageStreamInfoFromPads(
|
|
834 |
GstPad *srcPad,
|
|
835 |
XAuint32 *width,
|
|
836 |
XAuint32 *height)
|
|
837 |
{
|
|
838 |
GstCaps* negotiatedCaps;
|
|
839 |
const GstStructure* gstStruct;
|
|
840 |
gint negotiated_width;
|
|
841 |
gint negotiated_height;
|
|
842 |
|
|
843 |
DEBUG_API("->GetImageStreamInfoFromPads");
|
|
844 |
|
|
845 |
negotiatedCaps = gst_pad_get_negotiated_caps(srcPad);
|
|
846 |
if ( negotiatedCaps == NULL )
|
|
847 |
{
|
|
848 |
DEBUG_INFO("Obtaining allowed caps from SrcPad.");
|
|
849 |
negotiatedCaps = gst_pad_get_allowed_caps (srcPad);
|
|
850 |
}
|
|
851 |
|
|
852 |
if ( negotiatedCaps == NULL )
|
|
853 |
{
|
|
854 |
DEBUG_INFO("Unable to obtain negotiated and allowed caps from SrcPad");
|
|
855 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
856 |
DEBUG_API("-<GetImageStreamInfoFromPads");
|
|
857 |
return XA_RESULT_INTERNAL_ERROR;
|
|
858 |
}
|
|
859 |
|
|
860 |
DEBUG_INFO("Obtained negotiated/allowed GstCaps from SrcPad");
|
|
861 |
|
|
862 |
gstStruct = gst_caps_get_structure (negotiatedCaps, 0);
|
|
863 |
if ( gstStruct == NULL )
|
|
864 |
{
|
|
865 |
gst_object_unref (negotiatedCaps);
|
|
866 |
DEBUG_INFO("Error getting GstStructure from GstCaps");
|
|
867 |
DEBUG_ERR("XA_RESULT_INTERNAL_ERROR");
|
|
868 |
DEBUG_API("-<GetImageStreamInfoFromPads");
|
|
869 |
return XA_RESULT_INTERNAL_ERROR;
|
|
870 |
}
|
|
871 |
DEBUG_INFO("Obtained GstStructure from GstCaps");
|
|
872 |
|
|
873 |
*width = 0;
|
|
874 |
*height = 0;
|
|
875 |
|
|
876 |
gst_structure_get_int (gstStruct, "width", &negotiated_width);
|
|
877 |
gst_structure_get_int (gstStruct, "height", &negotiated_height);
|
|
878 |
|
|
879 |
*width = negotiated_width;
|
|
880 |
*height = negotiated_height;
|
|
881 |
|
|
882 |
DEBUG_INFO_A1("width[%u]", (unsigned int)*width);
|
|
883 |
DEBUG_INFO_A1("height[%u]", (unsigned int)*height);
|
|
884 |
/* TODO find out why this is causing assertion failure
|
|
885 |
gst_object_unref (negotiatedCaps);*/
|
|
886 |
|
|
887 |
DEBUG_API("-<GetImageStreamInfoFromPads");
|
|
888 |
|
|
889 |
return XA_RESULT_SUCCESS;
|
|
890 |
}
|
|
891 |
|