/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_helper.c | 45 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/ |
D | QCameraHWI_Rdi.cpp | 103 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()
|
D | QCameraHWI.cpp | 2703 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 …]
|
D | QCameraHWI_Preview.cpp | 556 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/ |
D | mm_qcamera_rdi.c | 62 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()
|
D | mm_qcamera_preview.c | 190 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()
|
D | mm_qcamera_snapshot.c | 111 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/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_rdi.c | 41 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()
|
D | mm_qcamera_app.c | 242 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/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_rdi.c | 41 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()
|
D | mm_qcamera_app.c | 242 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/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_rdi.c | 41 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()
|
D | mm_qcamera_app.c | 242 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/moto/shamu/camera/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 1546 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 …]
|
D | QCameraPostProc.cpp | 1948 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/lge/bullhead/camera/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 1944 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 …]
|
D | QCameraPostProc.cpp | 2361 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/ |
D | QCamera2HWICallbacks.cpp | 1944 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 …]
|
/device/moto/shamu/camera/QCamera/HAL2/core/src/ |
D | QCameraStream_Preview.cpp | 189 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/ |
D | QCamera3Channel.cpp | 479 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpYUV() local 480 if (file_fd >= 0) { in dumpYUV() 481 int written_len = write(file_fd, frame->buffer, offset.frame_len); in dumpYUV() 483 close(file_fd); in dumpYUV() 1042 int file_fd = open(buf, O_RDWR| O_CREAT, 0644); in dumpRawSnapshot() local 1043 if (file_fd >= 0) { in dumpRawSnapshot() 1044 int written_len = write(file_fd, frame->buffer, offset.frame_len); in dumpRawSnapshot() 1046 close(file_fd); in dumpRawSnapshot() 1215 int file_fd = open(buf, O_RDWR| O_CREAT, 0777); in dumpRawSnapshot() local 1216 if (file_fd >= 0) { in dumpRawSnapshot() [all …]
|
D | QCamera3HWI.cpp | 3776 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local 3777 if (file_fd >= 0) { in dumpMetadataToFile() 3781 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 3784 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 3787 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 3790 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 3793 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 3797 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 3800 written_len += write(file_fd, data, total_size); in dumpMetadataToFile() 3803 written_len += write(file_fd, data, total_size); in dumpMetadataToFile() [all …]
|
/device/huawei/angler/camera/QCamera2/HAL3/ |
D | QCamera3Channel.cpp | 482 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 …]
|
D | QCamera3HWI.cpp | 5254 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local 5255 if (file_fd >= 0) { in dumpMetadataToFile() 5259 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5262 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5265 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5268 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5271 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5275 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5278 written_len += write(file_fd, data, total_size); in dumpMetadataToFile() 5281 written_len += write(file_fd, data, total_size); in dumpMetadataToFile() [all …]
|
/device/lge/bullhead/camera/QCamera2/HAL3/ |
D | QCamera3Channel.cpp | 482 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 …]
|
D | QCamera3HWI.cpp | 5251 int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777); in dumpMetadataToFile() local 5252 if (file_fd >= 0) { in dumpMetadataToFile() 5256 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5259 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5262 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5265 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5268 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5272 written_len += write(file_fd, data, sizeof(uint32_t)); in dumpMetadataToFile() 5275 written_len += write(file_fd, data, total_size); in dumpMetadataToFile() 5278 written_len += write(file_fd, data, total_size); in dumpMetadataToFile() [all …]
|