Home
last modified time | relevance | path

Searched refs:dst_format (Results 1 – 25 of 60) sorted by relevance

123

/OK3568_Linux_fs/kernel/sound/core/oss/
H A Dlinear.c70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert()
117 snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in init_data() argument
122 dst_bytes = snd_pcm_format_width(dst_format) / 8; in init_data()
124 dst_le = snd_pcm_format_little_endian(dst_format) > 0; in init_data()
138 data->dst_ofs = snd_pcm_format_physical_width(dst_format) / 8 - in init_data()
141 snd_pcm_format_signed(dst_format)) { in init_data()
151 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_linear() argument
162 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_linear()
164 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_linear()
167 !snd_pcm_format_linear(dst_format->format))) in snd_pcm_plugin_build_linear()
[all …]
H A Drate.c85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand()
144 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_shrink()
193 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_src_frames()
226 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_dst_frames()
302 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_rate() argument
313 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_rate()
319 if (snd_BUG_ON(dst_format->format != SNDRV_PCM_FORMAT_S16)) in snd_pcm_plugin_build_rate()
321 if (snd_BUG_ON(src_format->rate == dst_format->rate)) in snd_pcm_plugin_build_rate()
325 src_format, dst_format, in snd_pcm_plugin_build_rate()
332 if (src_format->rate < dst_format->rate) { in snd_pcm_plugin_build_rate()
[all …]
H A Dcopy.c49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer()
63 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_copy() argument
74 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_copy()
76 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_copy()
78 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_copy()
85 err = snd_pcm_plugin_build(plug, "copy", src_format, dst_format, in snd_pcm_plugin_build_copy()
H A Droute.c64 ndsts = plugin->dst_format.channels; in route_transfer()
66 format = plugin->dst_format.format; in route_transfer()
89 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_route() argument
98 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_route()
100 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_route()
104 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route()
H A Dpcm_plugin.h43 struct snd_pcm_plugin_format dst_format; /* destination format */ member
73 struct snd_pcm_plugin_format *dst_format,
90 struct snd_pcm_plugin_format *dst_format,
94 struct snd_pcm_plugin_format *dst_format,
98 struct snd_pcm_plugin_format *dst_format,
102 struct snd_pcm_plugin_format *dst_format,
106 struct snd_pcm_plugin_format *dst_format,
/OK3568_Linux_fs/external/linux-rga/samples/mosaic_demo/src/
H A Drga_mosaic_demo.cpp43 int dst_width, dst_height, dst_format; in main() local
52 dst_format = RK_FORMAT_RGBA_8888; in main()
54 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
59 if (0 != read_image_from_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0)) { in main()
71 dst = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
105 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_tile8x8_demo.cpp47 int dst_width, dst_height, dst_format; in main() local
63 dst_format = RK_FORMAT_YCbCr_420_SP; in main()
66 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
90 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
91 tile8_img = wrapbuffer_handle(tile8_handle, dst_width, dst_height, dst_format); in main()
114 write_image_to_file(tile8_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
137 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 1); in main()
H A Drga_copy_fbc_demo.cpp47 int dst_width, dst_height, dst_format; in main() local
63 dst_format = RK_FORMAT_YCbCr_420_SP; in main()
66 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
91 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
92 fbc_img = wrapbuffer_handle(fbc_handle, dst_width, dst_height, dst_format); in main()
115 write_image_to_fbc_file(fbc_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
138 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 1); in main()
H A Drga_copy_demo.cpp47 int dst_width, dst_height, dst_format; in main() local
63 dst_format = RK_FORMAT_RGBA_8888; in main()
66 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
86 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
112 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/cvtcolor_demo/src/
H A Drga_cvtcolor_csc_demo.cpp48 int dst_width, dst_height, dst_format; in main() local
64 dst_format = RK_FORMAT_YCbCr_420_SP; in main()
67 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
95 ret = imcvtcolor(src_img, dst_img, src_format, dst_format, IM_RGB_TO_YUV_BT709_LIMIT); in main()
103 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
H A Drga_cvtcolor_demo.cpp48 int dst_width, dst_height, dst_format; in main() local
64 dst_format = RK_FORMAT_RGB_565; in main()
67 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
95 ret = imcvtcolor(src_img, dst_img, src_format, dst_format); in main()
103 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
H A Drga_cvtcolor_gray256_demo.cpp48 int dst_width, dst_height, dst_format; in main() local
64 dst_format = RK_FORMAT_YCbCr_400; in main()
67 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
102 ret = imcvtcolor(src_img, dst_img, src_format, dst_format, IM_RGB_TO_YUV_BT601_FULL); in main()
110 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/allocator_demo/src/
H A Drga_allocator_dma_cache_demo.cpp45 int dst_width, dst_height, dst_format; in main() local
61 dst_format = RK_FORMAT_RGBA_8888; in main()
64 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
105 dst = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
124 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
131 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 1); in main()
H A Drga_allocator_dma32_demo.cpp44 int dst_width, dst_height, dst_format; in main() local
54 dst_format = RK_FORMAT_RGBA_8888; in main()
56 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
82 dst = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
106 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
H A Drga_allocator_graphicbuffer_demo.cpp57 int dst_width, dst_height, dst_format; in main() local
73 dst_format = HAL_PIXEL_FORMAT_RGBA_8888; in main()
76 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 sp<GraphicBuffer> dst_gb(new GraphicBuffer(dst_width, dst_height, dst_format, 0, dst_gb_flags)); in main()
139 dst = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); 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/fill_demo/src/
H A Drga_fill_rectangle_demo.cpp43 int dst_width, dst_height, dst_format; in main() local
53 dst_format = RK_FORMAT_RGBA_8888; in main()
55 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
82 dst = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
114 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
H A Drga_fill_rectangle_array_demo.cpp43 int dst_width, dst_height, dst_format; in main() local
53 dst_format = RK_FORMAT_RGBA_8888; in main()
55 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
82 dst = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
117 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
H A Drga_fill_demo.cpp43 int dst_width, dst_height, dst_format; in main() local
53 dst_format = RK_FORMAT_RGBA_8888; in main()
55 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
82 dst = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
114 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/gma500/
H A Daccel_2d.c162 uint32_t dst_stride, uint32_t dst_format, in psb_accel_2d_copy() argument
197 PSB_2D_DST_SURF_BH | dst_format | (dst_stride << in psb_accel_2d_copy()
236 uint32_t dst_format; in psbfb_copyarea_accel() local
249 dst_format = PSB_2D_DST_332RGB; in psbfb_copyarea_accel()
253 dst_format = PSB_2D_DST_555RGB; in psbfb_copyarea_accel()
257 dst_format = PSB_2D_DST_565RGB; in psbfb_copyarea_accel()
263 dst_format = PSB_2D_DST_8888ARGB; in psbfb_copyarea_accel()
277 offset, stride, dst_format, in psbfb_copyarea_accel()
/OK3568_Linux_fs/external/linux-rga/samples/transform_demo/src/
H A Drga_transform_rotate_flip_demo.cpp48 int dst_width, dst_height, dst_format; in main() local
64 dst_format = RK_FORMAT_RGBA_8888; in main()
67 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
114 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
H A Drga_transform_flip_demo.cpp48 int dst_width, dst_height, dst_format; in main() local
64 dst_format = RK_FORMAT_RGBA_8888; in main()
67 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
113 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()
H A Drga_transform_rotate_demo.cpp48 int dst_width, dst_height, dst_format; in main() local
64 dst_format = RK_FORMAT_RGBA_8888; in main()
67 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
114 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/resize_demo/src/
H A Drga_resize_demo.cpp48 int dst_width, dst_height, dst_format; in main() local
64 dst_format = RK_FORMAT_RGBA_8888; in main()
67 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
114 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/rop_demo/src/
H A Drga_rop_demo.cpp48 int dst_width, dst_height, dst_format; in main() local
64 dst_format = RK_FORMAT_RGBA_8888; in main()
67 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
87 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
113 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/config_demo/src/
H A Drga_config_thread_core_demo.cpp47 int dst_width, dst_height, dst_format; in main() local
63 dst_format = RK_FORMAT_RGBA_8888; in main()
66 dst_buf_size = dst_width * dst_height * get_bpp_from_format(dst_format); in main()
86 dst_img = wrapbuffer_handle(dst_handle, dst_width, dst_height, dst_format); in main()
106 write_image_to_file(dst_buf, LOCAL_FILE_PATH, dst_width, dst_height, dst_format, 0); in main()

123