# Bulk Data Encapsulation Utilities (`pydicom.encaps`)

Functions for parsing and applying encapsulation to bulk data elements such as (7FE0,0010) Pixel Data.

## Parsing Encapsulated Data

`decode_data_sequence`(data) | Read encapsulated data and return a list of strings.
`defragment_data`(data) | Read encapsulated data and return the fragments as one continuous bytes.
`generate_pixel_data`(bytestream[, nr_frames]) | Yield an encapsulated pixel data frame.
`generate_pixel_data_fragment`(fp) | Yield the encapsulated pixel data fragments.
`generate_pixel_data_frame`(bytestream[, …]) | Yield an encapsulated pixel data frame.
`get_frame_offsets`(fp) | Return a list of the fragment offsets from the Basic Offset Table.
`read_item`(fp) | Read and return a single Item in the fragmented data stream.

## Creating Encapsulated Data

`encapsulate`(frames[, fragments_per_frame, …]) | Return encapsulated frames.
`fragment_frame`(frame[, nr_fragments]) | Yield one or more fragments from frame.
`itemize_fragment`(fragment) | Return an itemised fragment.
`itemize_frame`(frame[, nr_fragments]) | Yield items generated from frame.