MP4v2
Classes | Public Types | Static Public Member Functions | List of all members
mp4v2::impl::qtff::PictureAspectRatioBox Class Reference

Functional class for pasp-box (Picture Aspect Ratio Box) support. More...

Classes

class  IndexedItem
 
class  Item
 Data object for pasp-box item. More...
 

Public Types

typedef vector< IndexedItemItemList
 

Static Public Member Functions

static bool list (MP4FileHandle file, ItemList &itemList)
 
static bool add (MP4FileHandle file, uint16_t trackIndex, const Item &item)
 Add pasp-box by track-index. More...
 
static bool add (MP4FileHandle file, MP4TrackId trackId, const Item &item)
 Add pasp-box by track-id. More...
 
static bool set (MP4FileHandle file, uint16_t trackIndex, const Item &item)
 Store pasp-box (Color Parameter Box) properties by track-index. More...
 
static bool set (MP4FileHandle file, MP4TrackId trackId, const Item &item)
 Store pasp-box (Color Parameter Box) properties by track-id. More...
 
static bool get (MP4FileHandle file, uint16_t trackIndex, Item &item)
 Fetch pasp-box (Color Parameter Box) properties by track-index. More...
 
static bool get (MP4FileHandle file, MP4TrackId trackId, Item &item)
 Fetch pasp-box (Color Parameter Box) properties by track-id. More...
 
static bool remove (MP4FileHandle file, uint16_t trackIndex)
 Remove pasp-box (Color Parameter Box) by track-index. More...
 
static bool remove (MP4FileHandle file, MP4TrackId trackId)
 Remove pasp-box (Color Parameter Box) by track-id. More...
 

Detailed Description

Functional class for pasp-box (Picture Aspect Ratio Box) support.

A pasp-box is expected to be contained in a video track which is one of the following coding types:

This implementation assumes a maximum count of 1 for VideoSampleEntry of the supported codings.

Member Function Documentation

◆ add() [1/2]

static bool mp4v2::impl::qtff::PictureAspectRatioBox::add ( MP4FileHandle  file,
MP4TrackId  trackId,
const Item item 
)
static

Add pasp-box by track-id.

This function adds a pasp-box to trackId of file. The track must be a video-track and match one of the supporting codings.

Parameters
fileon which to operate.
trackIdon which to operate.
itempasp-box properties to set.
Returns
true on failure, false on success.

◆ add() [2/2]

static bool mp4v2::impl::qtff::PictureAspectRatioBox::add ( MP4FileHandle  file,
uint16_t  trackIndex,
const Item item 
)
static

Add pasp-box by track-index.

This function adds a pasp-box to trackId of file. The track must be a video-track and match one of the supporting codings.

Parameters
fileon which to operate.
trackIndexon which to operate.
itempasp-box properties to set.
Returns
true on failure, false on success.

◆ get() [1/2]

static bool mp4v2::impl::qtff::PictureAspectRatioBox::get ( MP4FileHandle  file,
MP4TrackId  trackId,
Item item 
)
static

Fetch pasp-box (Color Parameter Box) properties by track-id.

This function gets the properties of a pasp-box (Color Parameter Box).

Parameters
fileon which to operate.
trackIdon which to operate.
itempasp-box properties to set.
Returns
true on failure, false on success.

◆ get() [2/2]

static bool mp4v2::impl::qtff::PictureAspectRatioBox::get ( MP4FileHandle  file,
uint16_t  trackIndex,
Item item 
)
static

Fetch pasp-box (Color Parameter Box) properties by track-index.

This function gets the properties of a pasp-box (Color Parameter Box).

Parameters
fileon which to operate.
trackIndexon which to operate.
itempasp-box properties to set.
Returns
true on failure, false on success.

◆ remove() [1/2]

static bool mp4v2::impl::qtff::PictureAspectRatioBox::remove ( MP4FileHandle  file,
MP4TrackId  trackId 
)
static

Remove pasp-box (Color Parameter Box) by track-id.

Parameters
fileon which to operate.
trackIdon which to operate.
Returns
true on failure, false on success.

◆ remove() [2/2]

static bool mp4v2::impl::qtff::PictureAspectRatioBox::remove ( MP4FileHandle  file,
uint16_t  trackIndex 
)
static

Remove pasp-box (Color Parameter Box) by track-index.

Parameters
fileon which to operate.
trackIndexon which to operate.
Returns
true on failure, false on success.

◆ set() [1/2]

static bool mp4v2::impl::qtff::PictureAspectRatioBox::set ( MP4FileHandle  file,
MP4TrackId  trackId,
const Item item 
)
static

Store pasp-box (Color Parameter Box) properties by track-id.

This function sets the properties of a pasp-box (Color Parameter Box).

Parameters
fileon which to operate.
trackIdon which to operate.
itempasp-box properties to set.
Returns
true on failure, false on success.

◆ set() [2/2]

static bool mp4v2::impl::qtff::PictureAspectRatioBox::set ( MP4FileHandle  file,
uint16_t  trackIndex,
const Item item 
)
static

Store pasp-box (Color Parameter Box) properties by track-index.

This function sets the properties of a pasp-box (Color Parameter Box).

Parameters
fileon which to operate.
trackIndexon which to operate.
itempasp-box properties to set.
Returns
true on failure, false on success.