According to one embodiment, a computer program product for a system
including a processor includes a tangible memory including code that
directs the processor to determine an output resolution for an output
stream of data, code that directs the processor to determine an output
frame rate for the output stream of data, code that directs the processor
to determine an output color depth for the output stream of data, code
that directs the processor to retrieve a first frame of data, a second
frame of data, and a third frame of data from an input stream of data,
the input stream of data having an input resolution, an input frame rate,
and an input color depth, code that directs the processor to subsample
the first frame of data, the second frame of data, and the third frame of
data to respectively form a first subsampled frame of data, a second
subsampled frame of data, and a third subsampled frame of data, when the
output resolution is lower than the input resolution are also included,
code that directs the processor to remove the second subsampled frame of
data, when the output frame rate is lower than the input frame rate, code
that directs the processor to reduce color depth for the first subsampled
frame of data and the second subsampled frame of data to respectively
form a first reduced frame of data and a second reduced frame of data,
when the output color depth is smaller than the input color depth, and
code that directs the processor to convert the first reduced frame of
data and the second reduced frame of data into the output stream of data.