#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"
Go to the source code of this file.
#define LOG |
( |
|
args | ) |
/* nothing */ |
#define TRACE |
( |
|
args | ) |
/* nothing */ |
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
-
aRange | the range to look at |
aTarget | the 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.
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.