sbGStreamerTranscodeAudioConfigurator.cpp File Reference
#include "sbGStreamerTranscodeAudioConfigurator.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 <nsCOMArray.h>
#include <nsComponentManagerUtils.h>
#include <nsNetUtil.h>
#include <nsArrayUtils.h>
#include <prlog.h>
#include <sbArrayUtils.h>
#include <sbMemoryUtils.h>
#include <sbStringUtils.h>
#include <sbTranscodeUtils.h>
#include <sbVariantUtils.h>
#include <sbFraction.h>
#include <sbPrefBranch.h>
#include <gst/gst.h>
#include <algorithm>
#include <functional>
#include <vector>
#include "sbGStreamerMediacoreUtils.h"
Include dependency graph for sbGStreamerTranscodeAudioConfigurator.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_INHERITED1 (sbGStreamerTranscodeAudioConfigurator, sbTranscodingConfigurator, sbIDeviceTranscodingConfigurator)
 
static nsresult MakeCapsFromAttributes (enum sbGstCapsMapType aType, const nsACString &aMimeType, nsIArray *aAttributes, GstCaps **aResultCaps)
 

Macro Definition Documentation

#define LOG (   args)    /* nothing */

Definition at line 95 of file sbGStreamerTranscodeAudioConfigurator.cpp.

#define TRACE (   args)    /* nothing */

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

Definition at line 94 of file sbGStreamerTranscodeAudioConfigurator.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 111 of file sbGStreamerTranscodeAudioConfigurator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Parameters
aType[in] type of caps we're converting
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 198 of file sbGStreamerTranscodeAudioConfigurator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: