• Home
  • Raw
  • Download

Lines Matching refs:file_fd

2607                 int file_fd = open(buf, O_RDWR | O_CREAT, 0777);  in dumpJpegToFile()  local
2608 if (file_fd >= 0) { in dumpJpegToFile()
2609 ssize_t written_len = write(file_fd, data, size); in dumpJpegToFile()
2610 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpJpegToFile()
2613 close(file_fd); in dumpJpegToFile()
2670 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
2671 if (file_fd >= 0) { in dumpMetadataToFile()
2675 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2678 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2681 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2684 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2687 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2690 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2693 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
2696 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
2699 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
2702 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
2703 close(file_fd); in dumpMetadataToFile()
2861 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpFrameToFile() local
2863 if (file_fd >= 0) { in dumpFrameToFile()
2866 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpFrameToFile()
2875 written_len += write(file_fd, data, in dumpFrameToFile()
2882 written_len += write(file_fd, data, in dumpFrameToFile()
2890 close(file_fd); in dumpFrameToFile()