Home
last modified time | relevance | path

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

/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c41 int file_fd; in mm_app_rdi_dump_frame() local
47 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
48 if (file_fd < 0) { in mm_app_rdi_dump_frame()
52 write(file_fd, in mm_app_rdi_dump_frame()
57 close(file_fd); in mm_app_rdi_dump_frame()
Dmm_qcamera_app.c242 int file_fd; in mm_app_dump_frame() local
248 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
249 if (file_fd < 0) { in mm_app_dump_frame()
256 write(file_fd, in mm_app_dump_frame()
262 close(file_fd); in mm_app_dump_frame()
272 int file_fd; in mm_app_dump_jpeg_frame() local
277 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in mm_app_dump_jpeg_frame()
278 write(file_fd, data, size); in mm_app_dump_jpeg_frame()
279 close(file_fd); in mm_app_dump_jpeg_frame()
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c41 int file_fd; in mm_app_rdi_dump_frame() local
47 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
48 if (file_fd < 0) { in mm_app_rdi_dump_frame()
52 write(file_fd, in mm_app_rdi_dump_frame()
57 close(file_fd); in mm_app_rdi_dump_frame()
Dmm_qcamera_app.c242 int file_fd; in mm_app_dump_frame() local
248 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
249 if (file_fd < 0) { in mm_app_dump_frame()
256 write(file_fd, in mm_app_dump_frame()
262 close(file_fd); in mm_app_dump_frame()
272 int file_fd; in mm_app_dump_jpeg_frame() local
277 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in mm_app_dump_jpeg_frame()
278 write(file_fd, data, size); in mm_app_dump_jpeg_frame()
279 close(file_fd); in mm_app_dump_jpeg_frame()
/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/lge/bullhead/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp1944 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpJpegToFile() local
1945 if (file_fd >= 0) { in dumpJpegToFile()
1946 ssize_t written_len = write(file_fd, data, size); in dumpJpegToFile()
1947 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpJpegToFile()
1950 close(file_fd); in dumpJpegToFile()
2007 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
2008 if (file_fd >= 0) { in dumpMetadataToFile()
2012 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2015 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2018 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
[all …]
DQCameraPostProc.cpp2361 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); in dataSaveRoutine() local
2362 if (file_fd >= 0) { in dataSaveRoutine()
2363 ssize_t written_len = write(file_fd, job_data->out_data.buf_vaddr, in dataSaveRoutine()
2375 close(file_fd); in dataSaveRoutine()
/device/huawei/angler/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp1944 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpJpegToFile() local
1945 if (file_fd >= 0) { in dumpJpegToFile()
1946 ssize_t written_len = write(file_fd, data, size); in dumpJpegToFile()
1947 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpJpegToFile()
1950 close(file_fd); in dumpJpegToFile()
2007 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
2008 if (file_fd >= 0) { in dumpMetadataToFile()
2012 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2015 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2018 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
[all …]
DQCameraPostProc.cpp2361 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); in dataSaveRoutine() local
2362 if (file_fd >= 0) { in dataSaveRoutine()
2363 ssize_t written_len = write(file_fd, job_data->out_data.buf_vaddr, in dataSaveRoutine()
2375 close(file_fd); in dataSaveRoutine()
/device/google/marlin/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp2595 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpJpegToFile() local
2596 if (file_fd >= 0) { in dumpJpegToFile()
2597 ssize_t written_len = write(file_fd, data, size); in dumpJpegToFile()
2598 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpJpegToFile()
2601 close(file_fd); in dumpJpegToFile()
2658 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
2659 if (file_fd >= 0) { in dumpMetadataToFile()
2663 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2666 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
2669 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
[all …]
DQCameraPostProc.cpp2765 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); in dataSaveRoutine() local
2766 if (file_fd >= 0) { in dataSaveRoutine()
2767 ssize_t written_len = write(file_fd, job_data->out_data.buf_vaddr, in dataSaveRoutine()
2779 close(file_fd); in dataSaveRoutine()
/device/google/marlin/camera/QCamera2/HAL3/
DQCamera3Channel.cpp553 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpYUV() local
555 if (file_fd >= 0) { in dumpYUV()
557 fchmod(file_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in dumpYUV()
565 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()
2226 close(file_fd); in dumpRawSnapshot()
2435 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); in dumpRawSnapshot() local
[all …]
DQCamera3HWI.cpp6456 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
6457 if (file_fd >= 0) { in dumpMetadataToFile()
6461 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6464 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6467 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6470 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6473 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6477 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
6480 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
6483 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
[all …]
/device/lge/bullhead/camera/QCamera2/HAL3/
DQCamera3Channel.cpp482 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpYUV() local
483 if (file_fd >= 0) { in dumpYUV()
484 ssize_t written_len = write(file_fd, frame->buffer, offset.frame_len); in dumpYUV()
486 close(file_fd); in dumpYUV()
1900 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpRawSnapshot() local
1901 if (file_fd >= 0) { in dumpRawSnapshot()
1902 ssize_t written_len = write(file_fd, frame->buffer, frame->frame_len); in dumpRawSnapshot()
1904 close(file_fd); in dumpRawSnapshot()
2129 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); in dumpRawSnapshot() local
2130 if (file_fd >= 0) { in dumpRawSnapshot()
[all …]
DQCamera3HWI.cpp5389 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
5390 if (file_fd >= 0) { in dumpMetadataToFile()
5394 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5397 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5400 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5403 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5406 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5410 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5413 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
5416 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
[all …]
/device/huawei/angler/camera/QCamera2/HAL3/
DQCamera3Channel.cpp482 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpYUV() local
483 if (file_fd >= 0) { in dumpYUV()
484 ssize_t written_len = write(file_fd, frame->buffer, offset.frame_len); in dumpYUV()
486 close(file_fd); in dumpYUV()
1900 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpRawSnapshot() local
1901 if (file_fd >= 0) { in dumpRawSnapshot()
1902 ssize_t written_len = write(file_fd, frame->buffer, frame->frame_len); in dumpRawSnapshot()
1904 close(file_fd); in dumpRawSnapshot()
2129 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); in dumpRawSnapshot() local
2130 if (file_fd >= 0) { in dumpRawSnapshot()
[all …]
DQCamera3HWI.cpp5392 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
5393 if (file_fd >= 0) { in dumpMetadataToFile()
5397 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5400 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5403 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5406 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5409 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5413 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
5416 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
5419 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
[all …]