sbGStreamerTranscode.cpp File Reference
#include "sbGStreamerTranscode.h"
#include <sbIGStreamerService.h>
#include <sbStringUtils.h>
#include <sbClassInfoUtils.h>
#include <sbTArrayStringEnumerator.h>
#include <sbMemoryUtils.h>
#include <nsServiceManagerUtils.h>
#include <nsThreadUtils.h>
#include <nsStringAPI.h>
#include <nsArrayUtils.h>
#include <nsNetUtil.h>
#include <nsIFile.h>
#include <nsIURI.h>
#include <nsIFileURL.h>
#include <nsIBinaryInputStream.h>
#include <gst/tag/tag.h>
#include <prlog.h>
Include dependency graph for sbGStreamerTranscode.cpp:

Go to the source code of this file.

Classes

struct  GSTNameMap
 

Macros

#define PROGRESS_INTERVAL   200 /* milliseconds */
 
#define LOG(args)   /* nothing */
 
#define TRACE(args)   /* nothing */
 

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS8 (sbGStreamerTranscode, nsIClassInfo, sbIGStreamerPipeline, sbITranscodeJob, sbIMediacoreEventTarget, sbIJobProgress, sbIJobProgressTime, sbIJobCancelable, nsITimerCallback) NS_IMPL_CI_INTERFACE_GETTER6(sbGStreamerTranscode
 
sbIJobCancelable NS_DECL_CLASSINFO (sbGStreamerTranscode)
 
 NS_IMPL_THREADSAFE_CI (sbGStreamerTranscode)
 

Variables

 sbIGStreamerPipeline
 
 sbITranscodeJob
 
 sbIMediacoreEventTarget
 
 sbIJobProgress
 
 sbIJobProgressTime
 
static struct GSTNameMap SupportedContainers []
 
static struct GSTNameMap SupportedAudioCodecs []
 

Macro Definition Documentation

#define LOG (   args)    /* nothing */

To log this class, set the following environment variable in a debug build: NSPR_LOG_MODULES=sbGStreamerTranscode:5 (or :3 for LOG messages only)

Definition at line 62 of file sbGStreamerTranscode.cpp.

#define PROGRESS_INTERVAL   200 /* milliseconds */

Definition at line 51 of file sbGStreamerTranscode.cpp.

#define TRACE (   args)    /* nothing */

Definition at line 63 of file sbGStreamerTranscode.cpp.

Function Documentation

sbIJobCancelable NS_DECL_CLASSINFO ( sbGStreamerTranscode  )
NS_IMPL_THREADSAFE_CI ( sbGStreamerTranscode  )

Variable Documentation

Definition at line 77 of file sbGStreamerTranscode.cpp.

Definition at line 77 of file sbGStreamerTranscode.cpp.

Definition at line 77 of file sbGStreamerTranscode.cpp.

Definition at line 77 of file sbGStreamerTranscode.cpp.

struct GSTNameMap SupportedAudioCodecs[]
static
Initial value:
= {
{"audio/x-vorbis", "audio/x-vorbis"},
{"audio/x-flac", "audio/x-flac"},
{"audio/x-ms-wma", "audio/x-wma, wmaversion=(int)2"},
{"audio/mpeg", "audio/mpeg, mpegversion=(int)1, layer=(int)3"},
{"audio/aac", "audio/mpeg, mpegversion=(int)4"},
}

Definition at line 885 of file sbGStreamerTranscode.cpp.

struct GSTNameMap SupportedContainers[]
static
Initial value:
= {
{"application/ogg", "application/ogg"},
{"audio/mpeg", "application/x-id3"},
{"video/x-ms-asf", "video/x-ms-asf"},
{"audio/x-wav", "audio/x-wav"},
{"video/mp4", "video/quicktime, variant=iso"},
{"video/3gpp", "video/quicktime, variant=(string)3gpp"}
}

Definition at line 843 of file sbGStreamerTranscode.cpp.