Class representing a buffer.
NVIDIA Multimedia API: Buffer API
int read_video_frame(std::ifstream *stream, NvBuffer &buffer)
Reads a video frame from a file to the buffer structure.
int write_video_frame(std::ofstream *stream, NvBuffer &buffer)
Writes a video frame from the buffer structure to a file.