Class: TQuickTimeVideoSequence

Declaration: QuickTime.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TGraphicSequence

Inherited By:

None.

Purpose:

An abstraction for a video sequence stored in a QuickTime movie.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This class should not be derived from.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TQuickTimeVideoSequence::TQuickTimeVideoSequence

  1. TQuickTimeVideoSequence ()
  2. TQuickTimeVideoSequence (const TQuickTimeVideoSequence &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and to create an empty object.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through. Throws TVideoException::kUnknownDataFormat if the data format is not recognized.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::~TQuickTimeVideoSequence

virtual ~ TQuickTimeVideoSequence ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetNumberOfGraphics

virtual unsigned long GetNumberOfGraphics () const

Interface Category:

API.

Purpose:

Returns the number of graphics that are in the sequence.

Calling Context:

Called to determine the number of graphics in a sequence.

Parameters:

Return Value:

unsigned long -The number of graphics in the sequence.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetCurrentGraphicIndex

virtual GraphicIndex GetCurrentGraphicIndex () const

Interface Category:

API.

Purpose:

Returns the index of the current graphic.

Calling Context:

Called to find the index of the current graphic.

Parameters:

Return Value:

TGraphicSequence::GraphicIndex -The current graphic index.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::SetCurrentGraphicIndex

virtual void SetCurrentGraphicIndex (GraphicIndex index)

Interface Category:

API.

Purpose:

Sets the index of the current graphic. The index is zero-based, and can be equal to or less than the number of graphics in the sequence.

Calling Context:

Called to set the current index.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetCurrentGraphic

virtual MGraphic * GetCurrentGraphic () const

Interface Category:

API.

Purpose:

Returns a pointer to the MGraphic that corresponds to the current index.

Calling Context:

Called to get the current graphic.

Parameters:

Return Value:

MGraphic* -The current graphic.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::Append

virtual void Append (MGraphic * graphicToAdopt, const TTime & duration)

Interface Category:

API.

Purpose:

Appends the given graphic to the end of the graphic sequence.

Calling Context:

Called to append an MGraphic to a sequence.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetCurrentGraphicDuration

virtual void GetCurrentGraphicDuration (TTime & duration) const

Interface Category:

API.

Purpose:

Returns the duration of the current graphic.

Calling Context:

Called to get the duration of the current graphic.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetDuration

virtual void GetDuration (TTime & duration) const

Interface Category:

API.

Purpose:

Returns the duration of the object.

Calling Context:

Called to determine the duration of the object. Called by clients of the class.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::CreatePreferredTypeList

virtual void CreatePreferredTypeList (TSequenceOf<TMediaType> &) const

Interface Category:

API.

Purpose:

Creates a list of preferred TGraphicTypes for use in type negotiation.

Calling Context:

Called by clients to do type negotiation. Called by clients of the class.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::ChoosePreferredType

virtual TMediaType * ChoosePreferredType (const TSequenceOf<TMediaType> &) const

Interface Category:

API.

Purpose:

Chooses a preferred TGraphicType from the given list of types.

Calling Context:

Called by clients to do type negotiation.

Parameters:

Return Value:

TMediaType* -The preferred type from the given list.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::CreateSubrange

virtual TMediaSequence * CreateSubrange (const TMediaRange & range) const

Interface Category:

API.

Purpose:

Creates a new object that is a subsequence of the media sequence.

Calling Context:

Called to create a subsequence of a media sequence. Called by clients of the class.

Parameters:

Return Value:

TMediaSequence* -The subsequence of the media sequence.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetTime

virtual void GetTime (TTime & time) const

Interface Category:

API.

Purpose:

Returns the current time within the object's duration.

Calling Context:

Called by clients of the class. Called by clients of the class.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::SetTime

virtual void SetTime (const TTime & time)

Interface Category:

API.

Purpose:

Sets the current time within the object's duration.

Calling Context:

Called by clients of the class. Called by clients of the class.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetMaximumBounds

virtual TGRect GetMaximumBounds () const

Interface Category:

API.

Purpose:

Returns the maximum bounds the object has at any time in its duration.

Calling Context:

Called to find the maximum bounds. Called by clients of the class.

Parameters:

Return Value:

TGRect -The maximum bounds.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::TransformBy

virtual void TransformBy (const TGrafMatrix &)

Interface Category:

API.

Purpose:

Transforms the video sequence by the specified transformation matrix.

Calling Context:

Called to transform the images in a video sequence by a matrix. Called by clients of the class.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetLooseFitBounds

virtual TGRect GetLooseFitBounds (const TGrafPort * =NIL) const

Interface Category:

API.

Purpose:

Returns the loose fit bounds of the TVideoImage buffer.

Calling Context:

Called to get the loose fit bounds of the TVideoImage buffer. Called by clients of the class.

Parameters:

Return Value:

A TGRect that describes the loose fit bounds.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::GetGeometricBounds

virtual TGRect GetGeometricBounds () const

Interface Category:

API.

Purpose:

Returns the geometric bounds of the TVideoImage buffer.

Calling Context:

Called to get the geometric bounds of the TVideoImage buffer. Called by clients of the class.

Parameters:

Return Value:

A TGRect that describes the geometric bounds.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::Draw

virtual void Draw (TGrafPort & port) const

Interface Category:

API.

Purpose:

Draws the current TVideoImage.

Calling Context:

Called to draw the current TVideoImage. Called by clients of the class.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::IsReadOnly

virtual bool IsReadOnly () const

Interface Category:

API.

Purpose:

Determines whether the sequence is read-only.

Calling Context:

Called to determine if the sequence is read-only. Called by clients of the class.

Parameters:

Return Value:

Returns true if the sequence is read-only.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::operator=

TQuickTimeVideoSequence & operator =(const TQuickTimeVideoSequence & source)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object. Called by clients of the class.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data. Called by clients of the class.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data. Called by clients of the class.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws TInvalidVersionError if the versions don't match.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TQuickTimeVideoSequence::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Generates a hash value.

Calling Context:

Called when this object is put into a collection.

Parameters:

Return Value:

The hash value.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.