Home
last modified time | relevance | path

Searched refs:dst_buf (Results 1 – 25 of 93) sorted by relevance

1234

/OK3568_Linux_fs/external/linux-rga/samples/im2d_api_demo/
H A DrgaImDemo.cpp196 AHardwareBuffer* dst_buf = nullptr; in main() local
199 sp<GraphicBuffer> dst_buf; in main() local
205 char* dst_buf = NULL; in main() local
234 if(ERROR == AHardwareBuffer_Init(DST_WIDTH, DST_HEIGHT, DST_FORMAT, &dst_buf)) { in main()
244 if(ERROR == AHardwareBuffer_Fill(&dst_buf, FILL_BUFF, 1)) { in main()
249 if(ERROR == AHardwareBuffer_Fill(&dst_buf, EMPTY_BUFF, 1)) { in main()
260 dst_handle = importbuffer_AHardwareBuffer(dst_buf); in main()
267 dst_buf = GraphicBuffer_Init(DST_WIDTH, DST_HEIGHT, DST_FORMAT); in main()
268 if (src_buf == NULL || dst_buf == NULL) { in main()
278 if(ERROR == GraphicBuffer_Fill(dst_buf, FILL_BUFF, 1)) { in main()
[all …]
/OK3568_Linux_fs/external/linux-rga/samples/mosaic_demo/src/
H A Drga_mosaic_demo.cpp45 char *dst_buf; in main() local
56 dst_buf = (char *)malloc(dst_buf_size); in main()
59 if (0 != read_image_from_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0)) { in main()
61 draw_rgba(dst_buf, dst_width, dst_height); in main()
64 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
104 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
105 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
112 if (dst_buf) in main()
113 free(dst_buf); in main()
/OK3568_Linux_fs/external/linux-rga/samples/allocator_demo/src/
H A Drga_allocator_dma_cache_demo.cpp47 char *src_buf, *dst_buf; in main() local
73 ret = dma_buf_alloc(DMA_HEAP_PATH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
85 memset(dst_buf, 0x33, dst_buf_size); in main()
123 …Before flushing the cache [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf in main()
124 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
130 …"After flushing the cache [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf in main()
131 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 1); in main()
141 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
H A Drga_allocator_malloc_demo.cpp46 char *src_buf, *dst_buf; in main() local
64 dst_buf = (char *)malloc(dst_buf_size); in main()
65 if (src_buf == NULL || dst_buf == NULL) { in main()
75 memset(dst_buf, 0x33, dst_buf_size); in main()
83 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
109 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
110 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
121 if (dst_buf) in main()
122 free(dst_buf); in main()
H A Drga_allocator_dma32_demo.cpp46 char *dst_buf; in main() local
62 ret = dma_buf_alloc(DMA_HEAP_DMA32_UNCACHE_PATCH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
68 memset(dst_buf, 0x33, dst_buf_size); in main()
105 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
106 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
113 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
H A Drga_allocator_dma_demo.cpp47 char *src_buf, *dst_buf; in main() local
73 ret = dma_buf_alloc(DMA_HEAP_UNCACHE_PATH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
85 memset(dst_buf, 0x33, dst_buf_size); in main()
119 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
120 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
130 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
H A Drga_allocator_1106_cma_demo.cpp47 char *src_buf, *dst_buf; in main() local
73 ret = dma_buf_alloc(RV1106_CMA_HEAP_PATH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
85 memset(dst_buf, 0x33, dst_buf_size); in main()
119 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
120 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
130 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
H A Drga_allocator_graphicbuffer_demo.cpp59 char *src_buf, *dst_buf; in main() local
111 ret = dst_gb->lock(0, (void **)&dst_buf); in main()
117 memset(dst_buf, 0x33, dst_buf_size); in main()
157 ret = dst_gb->lock(0, (void **)&dst_buf); in main()
163 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
164 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
/OK3568_Linux_fs/external/linux-rga/samples/copy_demo/src/
H A Drga_copy_demo.cpp48 char *src_buf, *dst_buf; in main() local
69 dst_buf = (char *)malloc(dst_buf_size); in main()
76 memset(dst_buf, 0x80, dst_buf_size); in main()
79 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
111 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
112 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
122 if (dst_buf) in main()
123 free(dst_buf); in main()
H A Drga_copy_tile8x8_demo.cpp48 char *src_buf, *dst_buf, *tile8_buf; in main() local
69 dst_buf = (char *)malloc(dst_buf_size); in main()
77 memset(dst_buf, 0x80, dst_buf_size); in main()
81 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
136 printf("raster [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
137 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 1); in main()
149 if (dst_buf) in main()
150 free(dst_buf); in main()
H A Drga_copy_fbc_demo.cpp48 char *src_buf, *dst_buf, *fbc_buf; in main() local
70 dst_buf = (char *)malloc(dst_buf_size); in main()
78 memset(dst_buf, 0x80, dst_buf_size); in main()
82 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
137 printf("RASTER [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
138 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 1); in main()
150 if (dst_buf) in main()
151 free(dst_buf); in main()
H A Drga_copy_splice_demo.cpp49 char *left_buf, *right_buf, *dst_buf; in main() local
80 dst_buf = (char *)malloc(dst_buf_size); in main()
91 memset(dst_buf, 0x80, dst_buf_size); in main()
95 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
170 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
171 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
181 if (dst_buf) in main()
182 free(dst_buf); in main()
H A Drga_copy_splice_task_demo.cpp50 char *left_buf, *right_buf, *dst_buf; in main() local
82 dst_buf = (char *)malloc(dst_buf_size); in main()
93 memset(dst_buf, 0x80, dst_buf_size); in main()
97 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
192 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
193 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
206 if (dst_buf) in main()
207 free(dst_buf); in main()
/OK3568_Linux_fs/external/linux-rga/samples/config_demo/src/
H A Drga_config_thread_core_demo.cpp48 char *src_buf, *dst_buf; in main() local
69 dst_buf = (char *)malloc(dst_buf_size); in main()
76 memset(dst_buf, 0x80, dst_buf_size); in main()
79 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
105 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
106 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
116 if (dst_buf) in main()
117 free(dst_buf); in main()
/OK3568_Linux_fs/external/linux-rga/samples/padding_demo/src/
H A Drga_padding_demo.cpp49 char *src_buf, *dst_buf; in main() local
76 dst_buf = (char *)malloc(dst_buf_size); in main()
83 memset(dst_buf, 0x80, dst_buf_size); in main()
86 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
124 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
125 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
135 if (dst_buf) in main()
136 free(dst_buf); in main()
/OK3568_Linux_fs/external/mpp/mpp/hal/common/h264/
H A Dhal_h264e_stream_amend.c89 MPP_FREE(ctx->dst_buf); in h264e_vepu_stream_amend_deinit()
108 if (NULL == ctx->dst_buf) in h264e_vepu_stream_amend_config()
109 ctx->dst_buf = mpp_calloc(RK_U8, ctx->buf_size); in h264e_vepu_stream_amend_config()
113 MPP_FREE(ctx->dst_buf); in h264e_vepu_stream_amend_config()
149 RK_U8 *dst_buf = NULL; in h264e_vepu_stream_amend_proc() local
169 MPP_FREE(ctx->dst_buf); in h264e_vepu_stream_amend_proc()
171 ctx->dst_buf = mpp_malloc(RK_U8, ctx->buf_size); in h264e_vepu_stream_amend_proc()
175 memset(ctx->dst_buf, 0, ctx->buf_size); in h264e_vepu_stream_amend_proc()
177 dst_buf = ctx->dst_buf; in h264e_vepu_stream_amend_proc()
209 RK_S32 prefix_bit = h264e_slice_write_prefix_nal_unit_svc(prefix, dst_buf, buf_size); in h264e_vepu_stream_amend_proc()
[all …]
/OK3568_Linux_fs/external/linux-rga/samples/fill_demo/src/
H A Drga_fill_rectangle_demo.cpp45 char *dst_buf; in main() local
62 ret = dma_buf_alloc(DMA_HEAP_DMA32_UNCACHE_PATCH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
68 memset(dst_buf, 0x33, dst_buf_size); in main()
113 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
114 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
121 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
H A Drga_fill_rectangle_array_demo.cpp45 char *dst_buf; in main() local
62 ret = dma_buf_alloc(DMA_HEAP_DMA32_UNCACHE_PATCH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
68 memset(dst_buf, 0x33, dst_buf_size); in main()
116 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
117 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
124 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
H A Drga_fill_demo.cpp45 char *dst_buf; in main() local
62 ret = dma_buf_alloc(DMA_HEAP_DMA32_UNCACHE_PATCH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
68 memset(dst_buf, 0x33, dst_buf_size); in main()
113 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
114 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
121 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
H A Drga_fill_rectangle_task_demo.cpp45 char *dst_buf; in main() local
63 ret = dma_buf_alloc(DMA_HEAP_DMA32_UNCACHE_PATCH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
69 memset(dst_buf, 0x33, dst_buf_size); in main()
146 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
147 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
157 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
H A Drga_fill_rectangle_task_array_demo.cpp45 char *dst_buf; in main() local
64 ret = dma_buf_alloc(DMA_HEAP_DMA32_UNCACHE_PATCH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
70 memset(dst_buf, 0x33, dst_buf_size); in main()
158 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
159 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
169 dma_buf_free(dst_buf_size, &dst_dma_fd, dst_buf); in main()
/OK3568_Linux_fs/external/linux-rga/samples/resize_demo/src/
H A Drga_resize_uv_downsampling_demo.cpp135 char *src_buf, *dst_buf; in main() local
165 ret = dma_buf_alloc(DMA_HEAP_DMA32_UNCACHE_PATCH, dst_buf_size, &dst_dma_fd, (void **)&dst_buf); in main()
175 dst_buf = (char *)malloc(dst_buf_size); in main()
176 if (src_buf == NULL || dst_buf == NULL) { in main()
187 memset(dst_buf, 0x80, dst_buf_size); in main()
190 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
213 printf("RGA output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
214 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
225 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 1); in main()
236 if (dst_buf) in main()
[all …]
/OK3568_Linux_fs/external/linux-rga/samples/async_demo/src/
H A Drga_async_demo.cpp50 char *src_buf, *tmp_buf, *dst_buf; in main() local
79 dst_buf = (char *)malloc(dst_buf_size); in main()
87 memset(dst_buf, 0x80, dst_buf_size); in main()
91 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
171 printf("output [0x%x, 0x%x, 0x%x, 0x%x]\n", dst_buf[0], dst_buf[1], dst_buf[2], dst_buf[3]); in main()
172 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
186 if (dst_buf) in main()
187 free(dst_buf); in main()
/OK3568_Linux_fs/external/linux-rga/samples/cvtcolor_demo/src/
H A Drga_cvtcolor_csc_demo.cpp49 char *src_buf, *dst_buf; in main() local
70 dst_buf = (char *)malloc(dst_buf_size); in main()
77 memset(dst_buf, 0x80, dst_buf_size); in main()
80 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
103 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
113 if (dst_buf) in main()
114 free(dst_buf); in main()
/OK3568_Linux_fs/external/linux-rga/samples/transform_demo/src/
H A Drga_transform_rotate_flip_demo.cpp49 char *src_buf, *dst_buf; in main() local
70 dst_buf = (char *)malloc(dst_buf_size); in main()
77 memset(dst_buf, 0x80, dst_buf_size); in main()
80 dst_handle = importbuffer_virtualaddr(dst_buf, dst_buf_size); in main()
114 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
124 if (dst_buf) in main()
125 free(dst_buf); in main()

1234