| /TwlSDK-5.2.1/build/demos.TWL/camera/simpleShoot-1/src/ |
| D | main.c | 27 #define WIDTH 256 // Image width macro 30 #define LINES_AT_ONCE CAMERA_GET_MAX_LINES(WIDTH) // Number of lines transferred in one cycle 31 #define BYTES_PER_LINE CAMERA_GET_LINE_BYTES(WIDTH) // Number of bytes in one line's transfer 44 static u16 buffer[2][WIDTH*HEIGHT] ATTRIBUTE_ALIGN(32); 66 static u16 shoot_buffer[WIDTH*HEIGHT] ATTRIBUTE_ALIGN(32); 131 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraIntrError() 188 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraDmaRecvIntr() 234 MI_CpuClearFast(shoot_buffer, WIDTH*HEIGHT*sizeof(u16)); in TwlMain() 235 GXS_LoadBG3Bmp(shoot_buffer, 0, WIDTH*HEIGHT*sizeof(u16)); in TwlMain() 280 CAMERA_SetTrimmingParams(0, 0, WIDTH, HEIGHT); in TwlMain() [all …]
|
| /TwlSDK-5.2.1/build/demos.TWL/camera/simpleShoot-2/src/ |
| D | main.c | 27 #define WIDTH 256 // Image width macro 30 #define LINES_AT_ONCE CAMERA_GET_MAX_LINES(WIDTH) // Number of lines transferred in one cycle 31 #define BYTES_PER_LINE CAMERA_GET_LINE_BYTES(WIDTH) // Number of bytes in one line's transfer 44 static u16 buffer[2][WIDTH*HEIGHT] ATTRIBUTE_ALIGN(32); 72 static u16 shoot_buffer[WIDTH*HEIGHT] ATTRIBUTE_ALIGN(32); 106 …MI_CpuCopyFast(buffer[rp], (void*)(movie_buffer+(WIDTH*HEIGHT*movie_buffer_count)), BYTES_PER_LINE… in VBlankIntr() 160 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraIntrError() 217 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraDmaRecvIntr() 263 MI_CpuClearFast(shoot_buffer, WIDTH*HEIGHT*sizeof(u16)); in TwlMain() 264 GXS_LoadBG3Bmp(shoot_buffer, 0, WIDTH*HEIGHT*sizeof(u16)); in TwlMain() [all …]
|
| /TwlSDK-5.2.1/build/demos.TWL/camera/camera-1/src/ |
| D | main.c | 23 #define WIDTH 256 // Image width macro 26 #define LINES_AT_ONCE CAMERA_GET_MAX_LINES(WIDTH) // Number of lines transferred in one cycle 27 #define BYTES_PER_LINE CAMERA_GET_LINE_BYTES(WIDTH) // Number of bytes in one line's transfer 45 static u16 buffer[2][WIDTH*HEIGHT] ATTRIBUTE_ALIGN(32); 143 CAMERA_SetTransferLines(CAMERA_GET_MAX_LINES(WIDTH)); in TwlMain() 159 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in TwlMain() 224 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in TwlMain() 263 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in TwlMain() 301 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in TwlMain() 379 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraIntrError() [all …]
|
| /TwlSDK-5.2.1/build/demos.TWL/camera/camera-4/src/ |
| D | main.c | 23 #define WIDTH 256 // Image width macro 26 #define LINES_AT_ONCE CAMERA_GET_MAX_LINES(WIDTH) // Number of lines transferred in one cycle 27 #define BYTES_PER_LINE CAMERA_GET_LINE_BYTES(WIDTH) // Number of bytes in one line's transfer 48 static u16 buffer[2][WIDTH*HEIGHT] ATTRIBUTE_ALIGN(32); 164 CAMERA_SetTransferLines(CAMERA_GET_MAX_LINES(WIDTH)); in TwlMain() 167 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in TwlMain() 214 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in TwlMain() 322 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraIntrError() 380 …A_DmaRecvAsync(NDMA_NO, buffer[wp], CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraDmaRecvIntr()
|
| /TwlSDK-5.2.1/build/demos.TWL/camera/camera-3/src/ |
| D | main.c | 23 #define WIDTH 256 // Image width macro 26 #define LINES_AT_ONCE CAMERA_GET_MAX_LINES(WIDTH) // Number of lines transferred in one cycle 27 #define BYTES_PER_LINE CAMERA_GET_LINE_BYTES(WIDTH) // Number of bytes in one line's transfer 229 CAMERA_SetTransferLines(CAMERA_GET_MAX_LINES(WIDTH)); in TwlMain() 232 …sync(NDMA_NO, GetNextCaptureAddr(), CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in TwlMain() 279 …sync(NDMA_NO, GetNextCaptureAddr(), CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in TwlMain() 332 …sync(NDMA_NO, GetNextCaptureAddr(), CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraIntrError() 376 …sync(NDMA_NO, GetNextCaptureAddr(), CAMERA_GetBytesAtOnce(WIDTH), CAMERA_GET_FRAME_BYTES(WIDTH, HE… in CameraDmaRecvIntr()
|
| /TwlSDK-5.2.1/build/demos.TWL/camera/camera-2/src/ |
| D | main.c | 24 #define WIDTH 256 // Image width macro 27 #define LINES_AT_ONCE CAMERA_GET_MAX_LINES(WIDTH) // Number of lines transferred in one cycle 28 #define BYTES_PER_LINE CAMERA_GET_LINE_BYTES(WIDTH) // Number of bytes in one line's transfer 49 static u16 buffer[2][WIDTH*HEIGHT] ATTRIBUTE_ALIGN(32); 141 CAMERA_SetTransferLines(CAMERA_GET_MAX_LINES(WIDTH)); in TwlMain() 158 CAMERA_DmaPipeInfinity(NDMA_NO, pipeBuffer, CAMERA_GetBytesAtOnce(WIDTH), NULL, NULL); in TwlMain() 264 u32 *dest = (u32*)buffer[wp] + lineNumber * WIDTH / 2; in CameraDmaIntr() 265 for (i = 0; i < WIDTH * LINES_AT_ONCE / 2; i++) in CameraDmaIntr() 272 MI_CpuCopyFast(pipeBuffer, (u16*)buffer[wp] + lineNumber * WIDTH, sizeof(pipeBuffer)); in CameraDmaIntr()
|
| /TwlSDK-5.2.1/build/demos.TWL/tcl/tcl-1/src/ |
| D | main.c | 28 #define WIDTH 256 // Image width macro 46 static u16 draw_buffer[ WIDTH * HEIGHT ] ATTRIBUTE_ALIGN(32); 146 u16* thumb_img = &new_img[ ( HEIGHT - SSP_JPEG_THUMBNAIL_HEIGHT ) / 2 * WIDTH + in DownSampling() 147 ( WIDTH - SSP_JPEG_THUMBNAIL_WIDTH ) / 2 ]; in DownSampling() 208 MI_CpuClearFast( draw_buffer, WIDTH * HEIGHT * sizeof(u16) ); in TwlMain() 209 GX_LoadBG3Bmp( draw_buffer, 0, WIDTH * HEIGHT * sizeof(u16) ); in TwlMain() 469 MI_CpuClearFast( draw_buffer, WIDTH * HEIGHT * sizeof(u16) ); in TwlMain() 473 draw_buffer, WIDTH, HEIGHT ); in TwlMain() 491 if( !success_flag ) MI_CpuClearFast( draw_buffer, WIDTH * HEIGHT * sizeof(u16) ); in TwlMain() 492 DC_FlushRange( draw_buffer, WIDTH * HEIGHT * sizeof(u16) ); in TwlMain() [all …]
|