webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions
yuv_cropper Namespace Reference

Functions

def crop_frames (yuv_file_name, output_file_name, width, height, crop_height)
 

Function Documentation

◆ crop_frames()

def yuv_cropper.crop_frames (   yuv_file_name,
  output_file_name,
  width,
  height,
  crop_height 
)
Crops rows of pixels from the top of the YUV frames.

This function goes through all the frames in a video and crops the crop_height
top pixel rows of every frame.

Args:
  yuv_file_name(string): The name of the YUV file to be cropped.
  output_file_name(string): The name of the output file where the result will
    be written.
  width(int): The width of the original YUV file.
  height(int): The height of the original YUV file.
  crop_height(int): The height (the number of pixel rows) to be cropped from
    the frames.