Lines Matching refs:file_fd
552 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpYUV() local
554 if (file_fd >= 0) { in dumpYUV()
556 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpYUV()
564 written_len += write(file_fd, data, in dumpYUV()
572 close(file_fd); in dumpYUV()
2222 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpRawSnapshot() local
2223 if (file_fd >= 0) { in dumpRawSnapshot()
2224 ssize_t written_len = write(file_fd, frame->buffer, frame->frame_len); in dumpRawSnapshot()
2227 close(file_fd); in dumpRawSnapshot()
2444 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); in dumpRawSnapshot() local
2445 if (file_fd >= 0) { in dumpRawSnapshot()
2447 write(file_fd, frame->buffer, offset.frame_len); in dumpRawSnapshot()
2450 close(file_fd); in dumpRawSnapshot()
3222 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in jpegEvtHandle() local
3224 if (file_fd >= 0) { in jpegEvtHandle()
3225 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in jpegEvtHandle()
3226 written_len += write(file_fd, jpeg_buf, in jpegEvtHandle()
3230 close(file_fd); in jpegEvtHandle()