Home
last modified time | relevance | path

Searched refs:file_fd (Results 1 – 6 of 6) sorted by relevance

/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c47 int file_fd; in mm_app_rdi_dump_frame() local
53 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
54 if (file_fd < 0) { in mm_app_rdi_dump_frame()
58 write(file_fd, in mm_app_rdi_dump_frame()
63 close(file_fd); in mm_app_rdi_dump_frame()
Dmm_qcamera_app.c251 int file_fd; in mm_app_dump_frame() local
257 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
258 if (file_fd < 0) { in mm_app_dump_frame()
265 write(file_fd, in mm_app_dump_frame()
271 close(file_fd); in mm_app_dump_frame()
281 int file_fd; in mm_app_dump_jpeg_frame() local
286 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in mm_app_dump_jpeg_frame()
287 write(file_fd, data, size); in mm_app_dump_jpeg_frame()
288 close(file_fd); in mm_app_dump_jpeg_frame()
/device/google/marlin/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp2607 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()
[all …]
DQCameraPostProc.cpp2776 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); in dataSaveRoutine() local
2777 if (file_fd >= 0) { in dataSaveRoutine()
2778 ssize_t written_len = write(file_fd, job_data->out_data.buf_vaddr, in dataSaveRoutine()
2790 close(file_fd); in dataSaveRoutine()
/device/google/marlin/camera/QCamera2/HAL3/
DQCamera3Channel.cpp552 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
[all …]
DQCamera3HWI.cpp6582 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
6583 if (file_fd >= 0) { in dumpMetadataToFile()
6587 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6590 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6593 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6596 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6599 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6603 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6606 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
6609 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
[all …]