You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							21 lines
						
					
					
						
							471 B
						
					
					
				
			
		
		
	
	
							21 lines
						
					
					
						
							471 B
						
					
					
				| #pragma once
 | |
| 
 | |
| #include <inttypes.h>
 | |
| #include <stdbool.h>
 | |
| 
 | |
| #ifdef __APPLE__
 | |
| #include <OpenCL/cl.h>
 | |
| #else
 | |
| #include <CL/cl.h>
 | |
| #endif
 | |
| 
 | |
| typedef struct {
 | |
|   int width, height;
 | |
|   cl_kernel rgb_to_yuv_krnl;
 | |
| } RGBToYUVState;
 | |
| 
 | |
| void rgb_to_yuv_init(RGBToYUVState* s, cl_context ctx, cl_device_id device_id, int width, int height, int rgb_stride);
 | |
| 
 | |
| void rgb_to_yuv_destroy(RGBToYUVState* s);
 | |
| 
 | |
| void rgb_to_yuv_queue(RGBToYUVState* s, cl_command_queue q, cl_mem rgb_cl, cl_mem yuv_cl);
 | |
| 
 |