def METHOD_NAME(inputfile, width, height, channels):
  """Convert log file to array of pixels.
  Args:
    inputfile: log file to parse
    width: image width in pixels
    height: image height in pixels
    channels: color channel count
  Returns:
    list 1-D arrays to represent raw image data.
  """
  data = None
  bytes_written = 0
  frame_start = False
  frame_stop = False
  frame_list = list()
  # collect all pixel data into an int array
  for line in inputfile:
    if line == '+++ frame +++\n':
      frame_start = True
      data = np.zeros(height * width * channels, dtype=np.uint8)
      bytes_written = 0
      continue
    elif line == '--- frame ---\n':
      frame_stop = True
    if frame_start and not frame_stop:
      linelist = re.findall(r"[\w']+", line)
      if len(linelist) != 17:
        # drop this frame
        frame_start = False
        continue
      for item in linelist[1:]:
        data[bytes_written] = int(item, base=16)
        bytes_written += 1
    elif frame_start and frame_stop:
      if bytes_written == height * width * channels:
        frame_list.append(data)
        frame_start = False
        frame_stop = False
  return frame_list