Presented herein are system(s), method(s), and apparatus for detecting end
of slice groups in a video bitstream. In one embodiment, there is
presented a circuit for extracting a data structure from one or more data
words. The circuit comprises a multiplexer, a bit pointer, a first logic
circuit, and a comparator. The multiplexer provides one or more bits from
the one or more data words. The bit pointer points to the bits following
the provided one or more bits in the one or more data words. The first
logic circuit examines at least portions of the data words for an end of
data structure code, the at least portions comprising the one or more
bits, and provides an indicator indicating the position of the end of
data structure code. The comparator compares the indicator to where the
bit pointer points.