sbGStreamerTranscode Class Reference

#include <sbGStreamerTranscode.h>

Inheritance diagram for sbGStreamerTranscode:
Collaboration diagram for sbGStreamerTranscode:

Public Member Functions

sbGStreamerTranscode ()
virtual nsresult BuildPipeline ()
NS_IMETHOD PlayPipeline ()
NS_IMETHOD StopPipeline ()
- Public Member Functions inherited from sbGStreamerPipeline
sbGStreamerPipeline ()
virtual ~sbGStreamerPipeline ()
virtual void HandleMessage (GstMessage *message)
virtual PRBool HandleSynchronousMessage (GstMessage *message)
nsresult InitGStreamer ()
- Public Member Functions inherited from sbGStreamerMessageHandler
virtual ~sbGStreamerMessageHandler ()
- Public Member Functions inherited from sbIGStreamerPipeline
void stopPipeline ()
void pausePipeline ()
void playPipeline ()
- Public Member Functions inherited from sbIMediacoreEventTarget
void addListener (in sbIMediacoreEventListener aListener)
void removeListener (in sbIMediacoreEventListener aListener)
boolean dispatchEvent (in sbIMediacoreEvent aEvent, [optional] in boolean aAsync)
- Public Member Functions inherited from sbITranscodeJob
PRInt32 vote (in sbIMediaItem aMediaItem, in sbITranscodeProfile aProfile)
 Vote to be the handler returned for the given url. More...
PRInt64 estimateOutputSize (in PRInt32 inputDuration)
 Conservatively estimate the output size in bytes, given an input duration in milliseconds, and the currently-set profile. More...
void transcode ()
 Start the transcoding operation. More...
- Public Member Functions inherited from sbIJobProgress
nsIStringEnumerator getErrorMessages ()
 Enumerate all the errors encountered during the job. More...
void addJobProgressListener (in sbIJobProgressListener aListener)
 Add a listener to be notified when significant job progress has been made. More...
void removeJobProgressListener (in sbIJobProgressListener aListener)
 Remove a previously added listener. More...
- Public Member Functions inherited from sbIJobCancelable
void cancel ()
 Attempt to cancel the job Throws NS_ERROR_FAILURE if canceling fails. More...

Additional Inherited Members

- Public Attributes inherited from sbITranscodeJob
attribute sbIPropertyArray metadata
 An array of metadata properties. More...
attribute nsIInputStream metadataImage
 An input stream for the encoded image. More...
attribute AString sourceURI
 The source URI to transcode from. More...
attribute AString destURI
 The destination URI to transcode to. More...
attribute sbITranscodeProfile profile
 The encoding profile to use. More...
readonly attribute nsIArray availableProfiles
 Get an array of all sbITranscodeProfiles that can be used with this job. More...
- Public Attributes inherited from sbIJobProgressTime
readonly attribute unsigned long elapsedTime
 Time elapsed while working on this job, in milliseconds. More...
readonly attribute unsigned long remainingTime
 Estimated time remaining for this job to complete, in milliseconds. May be -1 if the remaining time is indeterminate. More...
- Public Attributes inherited from sbIJobProgress
const unsigned short STATUS_FAILED = 0x00
 Constant indicating that the job has completed with errors. More...
const unsigned short STATUS_SUCCEEDED = 0x10
 Constant indicating that the job has completed. More...
const unsigned short STATUS_RUNNING = 0x20
 Constant indicating that the job is active. More...
readonly attribute unsigned short status
 Current status of the job. More...
readonly attribute boolean blocked
 If true, progress of job is blocked (e.g., due to locked resource). More...
readonly attribute AString statusText
 Localized message describing the status of the job. More...
readonly attribute AString titleText
 Localized message describing the type or purpose of the job. More...
readonly attribute unsigned long progress
 Number of work units completed. More...
readonly attribute unsigned long total
 Total number of work units to be completed May be set to 0 if the job length is indeterminate. More...
readonly attribute unsigned long errorCount
 Number of errors that have been encountered. More...
- Public Attributes inherited from sbIJobCancelable
readonly attribute boolean canCancel
 True if it is possible to cancel the job. More...
- Protected Member Functions inherited from sbGStreamerPipeline
virtual void HandleWarningMessage (GstMessage *message)
virtual void HandleStateChangeMessage (GstMessage *message)
virtual void HandleTagMessage (GstMessage *message)
virtual void HandleBufferingMessage (GstMessage *message)
virtual nsresult OnDestroyPipeline (GstElement *pipeline)
virtual nsresult SetupPipeline ()
virtual nsresult DestroyPipeline ()
void SetPipelineOp (GStreamer::pipelineOp_t aPipelineOp)
GStreamer::pipelineOp_t GetPipelineOp ()
void DispatchMediacoreEvent (unsigned long type, nsIVariant *aData=NULL, sbIMediacoreError *aError=NULL)
GstClockTime GetRunningTime ()
- Protected Attributes inherited from sbGStreamerPipeline
GstElement * mPipeline
nsString mResourceDisplayName
GstClockTime mTimeRunning
PRIntervalTime mTimeStarted
PRMonitor * mMonitor
GStreamer::pipelineOp_t mPipelineOp
< sbBaseMediacoreEventTarget

Detailed Description

Definition at line 54 of file sbGStreamerTranscode.h.

Constructor & Destructor Documentation

sbGStreamerTranscode::sbGStreamerTranscode ( )

Definition at line 87 of file sbGStreamerTranscode.cpp.

Member Function Documentation

nsresult sbGStreamerTranscode::BuildPipeline ( )

Reimplemented from sbGStreamerPipeline.

Definition at line 251 of file sbGStreamerTranscode.cpp.

Here is the call graph for this function:

NS_IMETHODIMP sbGStreamerTranscode::PlayPipeline ( )

Definition at line 330 of file sbGStreamerTranscode.cpp.

NS_IMETHODIMP sbGStreamerTranscode::StopPipeline ( )

Definition at line 345 of file sbGStreamerTranscode.cpp.

The documentation for this class was generated from the following files: