The IAAFFilmDescriptor interface is implemented by objects which describe film essence. More...
Public Member Functions | |
HRESULT | SetFilmManufacturer ([in, string] aafCharacter_constptr pFilmManufacturer) |
Sets the Film Manufacturer string property. | |
HRESULT | GetFilmManufacturer ([out, string, size_is(bufSize)] aafCharacter *pFilmManufacturer,[in] aafUInt32 bufSize) |
Gets the Film Manufacturer string property. | |
HRESULT | GetFilmManufacturerBufLen ([out] aafUInt32 *pBufSize) |
Returns size of buffer (in bytes) required for GetFilmManufacturer(). | |
HRESULT | SetFilmModel ([in, string] aafCharacter_constptr pFilmModel) |
Sets the Film Model string property. | |
HRESULT | GetFilmModel ([out, string, size_is(bufSize)] aafCharacter *pFilmModel,[in] aafUInt32 bufSize) |
Gets the Film Model string property. | |
HRESULT | GetFilmModelBufLen ([out] aafUInt32 *pBufSize) |
Returns size of buffer (in bytes) required for GetFilmModel(). | |
HRESULT | GetFilmFormat ([out] aafFilmType_t *pFilmFormat) |
Gets the film format. | |
HRESULT | GetFrameRate ([out] aafUInt32 *pRate) |
Get the frame rate of the film. | |
HRESULT | GetPerfPerFrame ([out] aafUInt8 *pPerfPerFrame) |
Get the number of perforations per frame. | |
HRESULT | GetFilmAspectRatio ([out] aafRational_t *pAspectRatio) |
Get the image aspect ratio. | |
HRESULT | SetFilmFormat ([in] aafFilmType_t filmFormat) |
Sets the film format of the film. | |
HRESULT | SetFrameRate ([in] aafUInt32 rate) |
Set the frame rate of the film. | |
HRESULT | SetPerfPerFrame ([in] aafUInt8 perfPerFrame) |
Set the number of perforations per frame. | |
HRESULT | SetFilmAspectRatio ([in] aafRational_t aspectRatio) |
Set the image aspect ratio. |
The IAAFFilmDescriptor interface is implemented by objects which describe film essence.
A FilmDescriptor 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
Objects that implement IAAFFilmDescriptor also implement the following interfaces:
HRESULT IAAFFilmDescriptor::GetFilmAspectRatio | ( | [out] aafRational_t * | pAspectRatio | ) |
Get the image aspect ratio.
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
pAspectRatio | [out] Film Aspect Ratio |
HRESULT IAAFFilmDescriptor::GetFilmFormat | ( | [out] aafFilmType_t * | pFilmFormat | ) |
Gets the film format.
Valid values include:
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
pFilmFormat | [out] pointer to the filmFormat |
HRESULT IAAFFilmDescriptor::GetFilmManufacturer | ( | [out, string, size_is(bufSize)] aafCharacter * | pFilmManufacturer, |
[in] aafUInt32 | bufSize | ||
) |
Gets the Film Manufacturer string property.
Writes the FilmManufacturer property, with a trailing null character, into the pFilmManufacturer buffer. The buffer is allocated by the caller. The size of the buffer is given by bufSize. If the FilmManufacturer property has not yet been set, a zero-length string will be written (that is, only the trailing null character).
Caller may call GetFilmManufacturerBufLen() to determine the required buffer size.
If this method fails nothing will be written to pFilmManufacturer.
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
pFilmManufacturer | [out, string, size_is(bufSize)] buffer into which FilmManufacturer is to be written |
bufSize | [in] size of *pFilmManufacturer buffer in bytes |
HRESULT IAAFFilmDescriptor::GetFilmManufacturerBufLen | ( | [out] aafUInt32 * | pBufSize | ) |
Returns size of buffer (in bytes) required for GetFilmManufacturer().
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 IAAFFilmDescriptor::GetFilmModel | ( | [out, string, size_is(bufSize)] aafCharacter * | pFilmModel, |
[in] aafUInt32 | bufSize | ||
) |
Gets the Film Model string property.
Writes the FilmModel property, with a trailing null character, into the pFilmModel buffer. The buffer is allocated by the caller. The size of the buffer is given by bufSize. If the FilmModel property has not yet been set, a zero-length string will be written (that is, only the trailing null character).
Caller may call GetFilmModelBufLen() to determine the required buffer size.
If this method fails nothing will be written to pFilmModel.
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
pFilmModel | [out, string, size_is(bufSize)] buffer into which FilmModel is to be written |
bufSize | [in] size of *pFilmModel buffer in bytes |
HRESULT IAAFFilmDescriptor::GetFilmModelBufLen | ( | [out] aafUInt32 * | pBufSize | ) |
Returns size of buffer (in bytes) required for GetFilmModel().
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 IAAFFilmDescriptor::GetFrameRate | ( | [out] aafUInt32 * | pRate | ) |
Get the frame rate of the film.
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
pRate | [out] Frame Rate |
HRESULT IAAFFilmDescriptor::GetPerfPerFrame | ( | [out] aafUInt8 * | pPerfPerFrame | ) |
Get the number of perforations per frame.
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
pPerfPerFrame | [out] Perforations per frame |
HRESULT IAAFFilmDescriptor::SetFilmAspectRatio | ( | [in] aafRational_t | aspectRatio | ) |
Set the image aspect ratio.
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
aspectRatio | [in] Film Aspect Ratio |
HRESULT IAAFFilmDescriptor::SetFilmFormat | ( | [in] aafFilmType_t | filmFormat | ) |
Sets the film format of the film.
Valid values include:
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
filmFormat | [in] Film Format |
HRESULT IAAFFilmDescriptor::SetFilmManufacturer | ( | [in, string] aafCharacter_constptr | pFilmManufacturer | ) |
Sets the Film Manufacturer string property.
Set the FilmManufacturer property to the value specified in pFilmManufacturer. A copy is made of the data so the caller retains ownership of the *pFilmManufacturer 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 FilmManufacturer 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
pFilmManufacturer | [in, string] buffer from which FilmManufacturer is to be read |
HRESULT IAAFFilmDescriptor::SetFilmModel | ( | [in, string] aafCharacter_constptr | pFilmModel | ) |
Sets the Film Model string property.
Set the FilmModel property to the value specified in pFilmModel. A copy is made of the data so the caller retains ownership of the *pFilmModel 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 FilmModel 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
pFilmModel | [in, string] buffer from which FilmModel is to be read |
HRESULT IAAFFilmDescriptor::SetFrameRate | ( | [in] aafUInt32 | rate | ) |
Set the frame rate of the film.
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
rate | [in] Frame Rate |
HRESULT IAAFFilmDescriptor::SetPerfPerFrame | ( | [in] aafUInt8 | perfPerFrame | ) |
Set the number of perforations per frame.
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
perfPerFrame | [in] Perforations per frame |