The IAAFTapeDescriptor interface is implemented by objects which describe audio tape or videotape media. More...
Public Member Functions | |
HRESULT | Initialize () |
Initializes a newly allocated, empty IAAFTapeDescriptor-supporting object. | |
HRESULT | SetTapeManufacturer ([in, string] aafCharacter_constptr pTapeManufacturer) |
Sets the Tape Manufacturer string property. | |
HRESULT | GetTapeManufacturer ([out, string, size_is(bufSize)] aafCharacter *pTapeManufacturer,[in] aafUInt32 bufSize) |
Gets the Tape Manufacturer string property. | |
HRESULT | GetTapeManufacturerBufLen ([out] aafUInt32 *pBufSize) |
Returns size of buffer (in bytes) required for GetTapeManufacturer(). | |
HRESULT | SetTapeModel ([in, string] aafCharacter_constptr pTapeModel) |
Sets the Tape Model string property. | |
HRESULT | GetTapeModel ([out, string, size_is(bufSize)] aafCharacter *pTapeModel,[in] aafUInt32 bufSize) |
Gets the Tape Model string property. | |
HRESULT | GetTapeModelBufLen ([out] aafUInt32 *pBufSize) |
Returns size of buffer (in bytes) required for GetTapeModel(). | |
HRESULT | SetTapeFormFactor ([in] aafTapeCaseType_t formFactor) |
Sets the form factor [case size] of the tape. | |
HRESULT | GetTapeFormFactor ([out] aafTapeCaseType_t *formFactor) |
Gets the form factor [case size] of the tape. | |
HRESULT | SetSignalType ([in] aafVideoSignalType_t videoSignal) |
Sets the signal standard recorded on the tape. | |
HRESULT | GetSignalType ([out] aafVideoSignalType_t *pVideoSignal) |
Gets the signal standard recorded on the tape. | |
HRESULT | SetTapeFormat ([in] aafTapeFormatType_t tapeFormat) |
Sets the recording method of the tape. | |
HRESULT | GetTapeFormat ([out] aafTapeFormatType_t *pTapeFormat) |
Gets the recording method of the tape. | |
HRESULT | SetTapeLength ([in] aafUInt32 tapeLength) |
Sets the length of the tape in minutes. | |
HRESULT | GetTapeLength ([out] aafUInt32 *pTapeLength) |
Gets the length of the tape in minutes. |
The IAAFTapeDescriptor interface is implemented by objects which describe audio tape or videotape media.
A TapeDescriptor object shall be the EssenceDescription of a physical Source Mob.
In addition to the specific error results listed for each method, all methods in this interface may also return one of the following values:
AAFRESULT_NOMEMORY
HRESULT IAAFTapeDescriptor::GetSignalType | ( | [out] aafVideoSignalType_t * | pVideoSignal | ) |
Gets the signal standard recorded on the tape.
This method succeeds if all of the following are true:
If this method fails nothing will be written to *pVideoSignal.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
pVideoSignal | [out] ex: kNTSCSignal |
HRESULT IAAFTapeDescriptor::GetTapeFormat | ( | [out] aafTapeFormatType_t * | pTapeFormat | ) |
Gets the recording method of the tape.
Succeeds if all of the following are true:
This method succeeds if all of the following are true:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
pTapeFormat | [out] ex: kBetacamFormat, kBetacamSPFormat |
HRESULT IAAFTapeDescriptor::GetTapeFormFactor | ( | [out] aafTapeCaseType_t * | formFactor | ) |
Gets the form factor [case size] of the tape.
This method succeeds if all of the following are true:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
formFactor | [out] ex: kVHSVideoTape, kDATCartridge |
HRESULT IAAFTapeDescriptor::GetTapeLength | ( | [out] aafUInt32 * | pTapeLength | ) |
Gets the length of the tape in minutes.
This method succeeds if all of the following are true:
If this method fails nothing will be written to *pTapeLength.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
pTapeLength | [out] The length of the tape in minutes. |
HRESULT IAAFTapeDescriptor::GetTapeManufacturer | ( | [out, string, size_is(bufSize)] aafCharacter * | pTapeManufacturer, |
[in] aafUInt32 | bufSize | ||
) |
Gets the Tape Manufacturer string property.
Writes the TapeManufacturer property, with a trailing null character, into the pTapeManufacturer buffer. The buffer is allocated by the caller. The size of the buffer is given by bufSize. If the TapeManufacturer property has not yet been set, a zero-length string will be written (that is, only the trailing null character).
Caller may call GetTapeManufacturerBufLen() to determine the required buffer size.
If this method fails nothing will be written to pTapeManufacturer.
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_SMALL_BUF
pTapeManufacturer | [out, string, size_is(bufSize)] buffer into which TapeManufacturer is to be written |
bufSize | [in] size of *pTapeManufacturer buffer in bytes |
HRESULT IAAFTapeDescriptor::GetTapeManufacturerBufLen | ( | [out] aafUInt32 * | pBufSize | ) |
Returns size of buffer (in bytes) required for GetTapeManufacturer().
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pBufSize | [out] size of required buffer, in bytes |
HRESULT IAAFTapeDescriptor::GetTapeModel | ( | [out, string, size_is(bufSize)] aafCharacter * | pTapeModel, |
[in] aafUInt32 | bufSize | ||
) |
Gets the Tape Model string property.
Writes the TapeModel property, with a trailing null character, into the pTapeModel buffer. The buffer is allocated by the caller. The size of the buffer is given by bufSize. If the TapeModel property has not yet been set, a zero-length string will be written (that is, only the trailing null character).
Caller may call GetTapeModelBufLen() to determine the required buffer size.
If this method fails nothing will be written to pTapeModel.
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_SMALL_BUF
pTapeModel | [out, string, size_is(bufSize)] buffer into which TapeModel is to be written |
bufSize | [in] size of *pTapeModel buffer in bytes |
HRESULT IAAFTapeDescriptor::GetTapeModelBufLen | ( | [out] aafUInt32 * | pBufSize | ) |
Returns size of buffer (in bytes) required for GetTapeModel().
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pBufSize | [out] size of required buffer, in bytes |
HRESULT IAAFTapeDescriptor::Initialize | ( | ) |
Initializes a newly allocated, empty IAAFTapeDescriptor-supporting object.
This method must be called after allocation, and before any other method can be called.
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_ALREADY_INITIALIZED
HRESULT IAAFTapeDescriptor::SetSignalType | ( | [in] aafVideoSignalType_t | videoSignal | ) |
Sets the signal standard recorded on the tape.
This method succeeds if all of the following are true: videoSignal represents a valid video signal type.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_BAD_TYPE
videoSignal | [in] ex: kNTSCSignal |
HRESULT IAAFTapeDescriptor::SetTapeFormat | ( | [in] aafTapeFormatType_t | tapeFormat | ) |
Sets the recording method of the tape.
This method succeeds if all of the following are true:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_BAD_TYPE
tapeFormat | [in] ex: kBetacamFormat, kBetacamSPFormat |
HRESULT IAAFTapeDescriptor::SetTapeFormFactor | ( | [in] aafTapeCaseType_t | formFactor | ) |
Sets the form factor [case size] of the tape.
This method succeeds if all of the following are true:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_BAD_TYPE
formFactor | [in] ex: kVHSVideoTape, kDATCartridge |
HRESULT IAAFTapeDescriptor::SetTapeLength | ( | [in] aafUInt32 | tapeLength | ) |
Sets the length of the tape in minutes.
This method succeeds if all of the following are true:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_BAD_LENGTH
tapeLength | [in] The length of the tape in minutes. |
HRESULT IAAFTapeDescriptor::SetTapeManufacturer | ( | [in, string] aafCharacter_constptr | pTapeManufacturer | ) |
Sets the Tape Manufacturer string property.
Set the TapeManufacturer property to the value specified in pTapeManufacturer. A copy is made of the data so the caller retains ownership of the *pTapeManufacturer buffer and is responsible for de-allocating it. There is no pre-set limit to the length of the name, other than available system memory or disk space.
Succeeds if all of the following are true:
If this method fails the TapeManufacturer property will not be changed.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pTapeManufacturer | [in, string] buffer from which TapeManufacturer is to be read |
HRESULT IAAFTapeDescriptor::SetTapeModel | ( | [in, string] aafCharacter_constptr | pTapeModel | ) |
Sets the Tape Model string property.
Set the TapeModel property to the value specified in pTapeModel. A copy is made of the data so the caller retains ownership of the *pTapeModel buffer and is responsible for de-allocating it. There is no pre-set limit to the length of the name, other than available system memory or disk space.
Succeeds if all of the following are true:
If this method fails the TapeModel property will not be changed.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pTapeModel | [in, string] buffer from which TapeModel is to be read |