File MPEGFrameOrdering.str.pre
Version 1.0


This file contains functions that specify the reordering of frames between an encoded stream and a decoded stream. There are essentially two correct orderings for frames. There is the temporal ordering, where each frame occurs in order, and the reference ordering, where B frames are temporally ordered and I/P frames are temporally ordered, but B frames are ordered between I/P frames such that they immediately follow the two reference frames which their motion vectors are with respect to.


Component Summary
int->int PictureReorderToReference
          Reorders pictures from a temporal ordering to a reference ordering.
int->int PictureReorderToTemporal
          Reorders pictures from a temporal ordering to a reference ordering.

Component Detail

PictureReorderToReference

int->int PictureReorderToReference(int downsampled_data_per_image)
Reorders pictures from a temporal ordering to a reference ordering.

Input:
<int> - A temporally ordered picture stream
Output:
<int> - A reference ordered picture stream
Parameters:
downsampled_data_per_image - The amount of data per image

PictureReorderToTemporal

int->int PictureReorderToTemporal(int width, int height)
Reorders pictures from a temporal ordering to a reference ordering.

Input:
<int> - A reference ordered picture stream
Output:
<int> - A temporally ordered picture stream
Parameters:
width - The width of the image
height - The height of the image

Please contact the author (Matthew Drake) for more information.