int
Mpeg2ScBFieldToByte


Parameters:

ScImage *sc_image
ScImage structure filled with parsed DCT coefficient values.
Mpeg2MBInfoArray *mbi_array
Mpeg2MBInfoArray containing Mpeg2MBInfo structures filled with parsed macroblock information.
ByteImage *prev_top
ByteImage filled with pixel component values from top field of forward reference frame of corresponding plane.
ByteImage *prev_bot
ByteImage filled with pixel component values from bottom field of forward reference frame of corresponding plane.
ByteImage *future_top
ByteImage filled with pixel component values from top field of backward reference frame of corresponding plane.
ByteImage *future_bot
ByteImage filled with pixel component values from bottom field of backward reference frame of corresponding plane.
ByteImage *dest_image
ByteImage structure to be filled with component pixel values.

Return value:

1 on success, 0 otherwise

Description:

Transforms sc_image containing DCT coefficients for one plane of a parsed B field (i.e., Y, Cr, or Cb) into a byte image of pixel component values. Assumes that the size of dest_image is appropriate for given sc_image. Parsed macroblock information in mbi_array provide motion vectors given for each macroblock which are used to copy appropriate portions of reference fields given in prev_top, prev_bot, future_top, and future_bot.


Author: Ketan Mayer-Patel Date: 4/18/00