sbGStreamerTranscodeDeviceConfigurator.cpp File Reference
#include "sbGStreamerTranscodeDeviceConfigurator.h"
#include <nsIArray.h>
#include <nsIFile.h>
#include <nsIFileURL.h>
#include <nsIMutableArray.h>
#include <nsIURI.h>
#include <nsIVariant.h>
#include <nsIWritablePropertyBag.h>
#include <nsIWritablePropertyBag2.h>
#include <sbIDevice.h>
#include <sbIDeviceCapabilities.h>
#include <sbIMediaFormatMutable.h>
#include <sbITranscodeError.h>
#include <sbITranscodeManager.h>
#include <sbITranscodeProfile.h>
#include <nsArrayUtils.h>
#include <nsCOMArray.h>
#include <nsComponentManagerUtils.h>
#include <nsNetUtil.h>
#include <prlog.h>
#include <sbArrayUtils.h>
#include <sbMemoryUtils.h>
#include <sbStringUtils.h>
#include <sbTranscodeUtils.h>
#include <sbVariantUtils.h>
#include <gst/gst.h>
#include <math.h>
#include <algorithm>
#include <functional>
#include <vector>
#include "sbGStreamerMediacoreUtils.h"
Include dependency graph for sbGStreamerTranscodeDeviceConfigurator.cpp:

Go to the source code of this file.

Macros

#define TRACE(args)   /* nothing */
 
#define LOG(args)   /* nothing */
 

Functions

static nsresult GetDevCapRangeUpper (sbIDevCapRange *aRange, PRInt32 aTarget, PRInt32 *_retval)
 
 NS_IMPL_ISUPPORTS_INHERITED2 (sbGStreamerTranscodeDeviceConfigurator, sbTranscodingConfigurator, sbIDeviceTranscodingConfigurator, sbPIGstTranscodingConfigurator)
 
nsresult MakeCapsFromAttributes (enum sbGstCapsMapType aType, const nsACString &aMimeType, nsIArray *aAttributes, GstCaps **aResultCaps)
 

Macro Definition Documentation

#define LOG (   args)    /* nothing */

Definition at line 99 of file sbGStreamerTranscodeDeviceConfigurator.cpp.

#define TRACE (   args)    /* nothing */

To log this module, set the following environment variable: NSPR_LOG_MODULES=sbGStreamerTranscodeDeviceConfigurator:5

Definition at line 98 of file sbGStreamerTranscodeDeviceConfigurator.cpp.

Function Documentation

static nsresult GetDevCapRangeUpper ( sbIDevCapRange aRange,
PRInt32  aTarget,
PRInt32 *  _retval 
)
static

Get a value in a sbIDevCapRange that is no smaller than the given target value, unless it's larger than the maximum (in which case return that)

Parameters
aRangethe range to look at
aTargetthe value we want
Returns
a value in range that's no smaller than the target; or, the maximum in the range and throw NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA

Definition at line 115 of file sbGStreamerTranscodeDeviceConfigurator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult MakeCapsFromAttributes ( enum sbGstCapsMapType  aType,
const nsACString &  aMimeType,
nsIArray *  aAttributes,
GstCaps **  aResultCaps 
)

make a GstCaps structure from a caps name and an array of attributes

Parameters
aMimeType[in] the name (e.g. "audio/x-pcm-int")
aAttributes[in] the attributes
aResultCaps[out] the generated GstCaps, with an outstanding refcount

Definition at line 202 of file sbGStreamerTranscodeDeviceConfigurator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: