Lines Matching refs:file_handle
35 long CalculateYUVFrameSize(FILE* file_handle, int num_frames) {
36 fseek(file_handle, 0, SEEK_END);
37 long file_size = (long) ftell(file_handle);
38 rewind(file_handle);
45 FILE* file_handle = fopen(file_name.c_str(), "rb");
46 if (!file_handle) {
51 long frame_size = CalculateYUVFrameSize(file_handle, num_frames);
60 fread(video_frame->data(0), 1, frame_size, file_handle);
64 fclose(file_handle);
70 fclose(file_handle);