A method for executing video encoding operations. The method includes
encoding an incoming video stream into a plurality of macro blocks by
using a video encoder and receiving a box out slice map specification for
the plurality of macro blocks. The box out slice map specification is
converted to a foreground-background slice map specification. The
plurality of macro blocks are then processed in accordance with the
foreground-background specification and by using a common hardware
encoder front end.