Home
last modified time | relevance | path

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

/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_helper.c45 int file_fd = open(filename, O_RDWR | O_CREAT, 0777); in mm_camera_dump_image() local
47 if (file_fd < 0) { in mm_camera_dump_image()
51 write(file_fd, addr, size); in mm_camera_dump_image()
52 close(file_fd); in mm_camera_dump_image()
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI_Rdi.cpp103 int file_fd; in dumpFrameToFile() local
117 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
118 if (file_fd < 0) { in dumpFrameToFile()
124 write(file_fd, (const void *)(y_off), newFrame->planes[0].length); in dumpFrameToFile()
125 write(file_fd, (const void *)(cbcr_off), in dumpFrameToFile()
127 close(file_fd); in dumpFrameToFile()
DQCameraHWI.cpp2703 int file_fd; in dumpFrameToFile() local
2708 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
2709 write(file_fd, data, size); in dumpFrameToFile()
2710 close(file_fd); in dumpFrameToFile()
2739 int file_fd; in dumpFrameToFile() local
2745 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
2751 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
2757 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
2766 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
2772 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
[all …]
DQCameraHWI_Preview.cpp556 int file_fd; in dumpFrameToFile() local
571 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
573 rc = write(file_fd, (const void *)addr, len); in dumpFrameToFile()
576 close(file_fd); in dumpFrameToFile()
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c62 int file_fd; in dumpRdi() local
68 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpRdi()
69 if (file_fd < 0) { in dumpRdi()
78 write(file_fd, (const void *)(y_off), newFrame->planes[0].length); in dumpRdi()
79 write(file_fd, (const void *)(cbcr_off), in dumpRdi()
81 close(file_fd); in dumpRdi()
Dmm_qcamera_preview.c190 int file_fd; in dumpFrameToFile() local
195 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
196 if (file_fd < 0) { in dumpFrameToFile()
205 write(file_fd, (const void *)(y_off), (w * h)); in dumpFrameToFile()
207 write(file_fd, (const void *)(cbcr_off), (w * h/2 * main_422)); in dumpFrameToFile()
209 close(file_fd); in dumpFrameToFile()
Dmm_qcamera_snapshot.c111 int file_fd; in mm_app_dump_jpeg_frame() local
116 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in mm_app_dump_jpeg_frame()
117 write(file_fd, data, size); in mm_app_dump_jpeg_frame()
118 close(file_fd); in mm_app_dump_jpeg_frame()
/device/asus/flo/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c41 int file_fd; in mm_app_rdi_dump_frame() local
45 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
46 if (file_fd < 0) { in mm_app_rdi_dump_frame()
50 write(file_fd, in mm_app_rdi_dump_frame()
55 close(file_fd); in mm_app_rdi_dump_frame()
Dmm_qcamera_app.c241 int file_fd; in mm_app_dump_frame() local
245 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
246 if (file_fd < 0) { in mm_app_dump_frame()
250 write(file_fd, in mm_app_dump_frame()
255 close(file_fd); in mm_app_dump_frame()
264 int file_fd; in mm_app_dump_jpeg_frame() local
268 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in mm_app_dump_jpeg_frame()
269 write(file_fd, data, size); in mm_app_dump_jpeg_frame()
270 close(file_fd); in mm_app_dump_jpeg_frame()
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c41 int file_fd; in mm_app_rdi_dump_frame() local
45 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
46 if (file_fd < 0) { in mm_app_rdi_dump_frame()
50 write(file_fd, in mm_app_rdi_dump_frame()
55 close(file_fd); in mm_app_rdi_dump_frame()
Dmm_qcamera_app.c241 int file_fd; in mm_app_dump_frame() local
245 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
246 if (file_fd < 0) { in mm_app_dump_frame()
250 write(file_fd, in mm_app_dump_frame()
255 close(file_fd); in mm_app_dump_frame()
264 int file_fd; in mm_app_dump_jpeg_frame() local
268 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in mm_app_dump_jpeg_frame()
269 write(file_fd, data, size); in mm_app_dump_jpeg_frame()
270 close(file_fd); in mm_app_dump_jpeg_frame()
/device/moto/shamu/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
247 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
248 if (file_fd < 0) { in mm_app_dump_frame()
254 write(file_fd, in mm_app_dump_frame()
260 close(file_fd); in mm_app_dump_frame()
269 int file_fd; in mm_app_dump_jpeg_frame() local
273 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in mm_app_dump_jpeg_frame()
274 write(file_fd, data, size); in mm_app_dump_jpeg_frame()
275 close(file_fd); in mm_app_dump_jpeg_frame()
/device/moto/shamu/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp1546 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpJpegToFile() local
1547 if (file_fd > 0) { in dumpJpegToFile()
1548 int written_len = write(file_fd, data, size); in dumpJpegToFile()
1551 close(file_fd); in dumpJpegToFile()
1604 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
1605 if (file_fd > 0) { in dumpMetadataToFile()
1609 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
1612 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
1615 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
1618 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
[all …]
DQCameraPostProc.cpp1948 int file_fd = open(saveName, O_RDWR | O_CREAT, 0655); in dataSaveRoutine() local
1949 if (file_fd > 0) { in dataSaveRoutine()
1950 size_t written_len = write(file_fd, in dataSaveRoutine()
1962 close(file_fd); in dataSaveRoutine()
/device/moto/shamu/camera/QCamera/HAL2/core/src/
DQCameraStream_Preview.cpp189 int file_fd; in dumpFrameToFile() local
200 file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile()
202 rc = write(file_fd, (const void *)addr, len); in dumpFrameToFile()
205 close(file_fd); in dumpFrameToFile()
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3Channel.cpp480 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpYUV() local
481 if (file_fd >= 0) { in dumpYUV()
482 int written_len = write(file_fd, frame->buffer, offset.frame_len); in dumpYUV()
484 close(file_fd); in dumpYUV()
1001 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpRawSnapshot() local
1002 if (file_fd >= 0) { in dumpRawSnapshot()
1003 int written_len = write(file_fd, frame->buffer, offset.frame_len); in dumpRawSnapshot()
1005 close(file_fd); in dumpRawSnapshot()
1174 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); in dumpRawSnapshot() local
1175 if (file_fd >= 0) { in dumpRawSnapshot()
[all …]
DQCamera3HWI.cpp3706 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
3707 if (file_fd >= 0) { in dumpMetadataToFile()
3711 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3714 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3717 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3720 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3723 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3727 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3730 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
3733 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
[all …]
/device/asus/flo/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp898 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile() local
899 if (file_fd > 0) { in dumpFrameToFile()
900 int written_len = write(file_fd, data, size); in dumpFrameToFile()
902 close(file_fd); in dumpFrameToFile()
/device/lge/hammerhead/camera/QCamera2/HAL/
DQCamera2HWICallbacks.cpp898 int file_fd = open(buf, O_RDWR | O_CREAT, 0777); in dumpFrameToFile() local
899 if (file_fd > 0) { in dumpFrameToFile()
900 int written_len = write(file_fd, data, size); in dumpFrameToFile()
902 close(file_fd); in dumpFrameToFile()
/device/lge/hammerhead/camera/QCamera2/HAL3/
DQCamera3Channel.cpp911 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); in dumpRawSnapshot() local
912 if (file_fd >= 0) { in dumpRawSnapshot()
913 int written_len = write(file_fd, frame->buffer, offset.frame_len); in dumpRawSnapshot()
915 close(file_fd); in dumpRawSnapshot()
DQCamera3HWI.cpp3000 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local
3001 if (file_fd >= 0) { in dumpMetadataToFile()
3005 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3008 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3011 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3014 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3017 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile()
3020 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
3023 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
3026 written_len += write(file_fd, data, total_size); in dumpMetadataToFile()
[all …]