Home
last modified time | relevance | path

Searched refs:src_format (Results 1 – 25 of 50) sorted by relevance

12

/OK3568_Linux_fs/kernel/sound/core/oss/
H A Dlinear.c62 int nchannels = plugin->src_format.channels; in convert()
100 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer()
117 snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in init_data() argument
121 src_bytes = snd_pcm_format_width(src_format) / 8; in init_data()
123 src_le = snd_pcm_format_little_endian(src_format) > 0; in init_data()
133 data->src_ofs = snd_pcm_format_physical_width(src_format) / 8 - in init_data()
140 if (snd_pcm_format_signed(src_format) != in init_data()
150 struct snd_pcm_plugin_format *src_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()
[all …]
H A Dcopy.c39 nchannels = plugin->src_format.channels; in copy_transfer()
54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer()
62 struct snd_pcm_plugin_format *src_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()
81 width = snd_pcm_format_physical_width(src_format->format); 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 Drate.c58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
138 for (channel = 0; channel < plugin->src_format.channels; ++channel) { 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()
264 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_transfer()
301 struct snd_pcm_plugin_format *src_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()
315 if (snd_BUG_ON(src_format->channels <= 0)) in snd_pcm_plugin_build_rate()
317 if (snd_BUG_ON(src_format->format != SNDRV_PCM_FORMAT_S16)) in snd_pcm_plugin_build_rate()
[all …]
H A Dpcm_plugin.h42 struct snd_pcm_plugin_format src_format; /* source format */ member
72 struct snd_pcm_plugin_format *src_format,
89 struct snd_pcm_plugin_format *src_format,
93 struct snd_pcm_plugin_format *src_format,
97 struct snd_pcm_plugin_format *src_format,
101 struct snd_pcm_plugin_format *src_format,
105 struct snd_pcm_plugin_format *src_format,
H A Dmulaw.c175 int nchannels = plugin->src_format.channels; in mulaw_decode()
221 int nchannels = plugin->src_format.channels; in mulaw_encode()
262 for (channel = 0; channel < plugin->src_format.channels; channel++) { in mulaw_transfer()
301 struct snd_pcm_plugin_format *src_format, in snd_pcm_plugin_build_mulaw() argument
315 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_mulaw()
317 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_mulaw()
321 format = src_format; in snd_pcm_plugin_build_mulaw()
324 else if (src_format->format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plugin_build_mulaw()
336 src_format, dst_format, in snd_pcm_plugin_build_mulaw()
H A Droute.c63 nsrcs = plugin->src_format.channels; in route_transfer()
88 struct snd_pcm_plugin_format *src_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()
/OK3568_Linux_fs/external/linux-rga/samples/cvtcolor_demo/src/
H A Drga_cvtcolor_csc_demo.cpp47 int src_width, src_height, src_format; in main() local
60 src_format = RK_FORMAT_RGBA_8888; in main()
66 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
73 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
86 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
95 ret = imcvtcolor(src_img, dst_img, src_format, dst_format, IM_RGB_TO_YUV_BT709_LIMIT); in main()
H A Drga_cvtcolor_demo.cpp47 int src_width, src_height, src_format; in main() local
60 src_format = RK_FORMAT_RGBA_8888; in main()
66 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
73 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
86 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
95 ret = imcvtcolor(src_img, dst_img, src_format, dst_format); in main()
H A Drga_cvtcolor_gray256_demo.cpp47 int src_width, src_height, src_format; in main() local
60 src_format = RK_FORMAT_RGBA_8888; in main()
66 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
73 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
86 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
102 ret = imcvtcolor(src_img, dst_img, src_format, dst_format, IM_RGB_TO_YUV_BT601_FULL); in main()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/gma500/
H A Daccel_2d.c161 uint32_t src_format, uint32_t dst_offset, in psb_accel_2d_copy() argument
201 PSB_2D_SRC_SURF_BH | src_format | (src_stride << in psb_accel_2d_copy()
235 uint32_t src_format; in psbfb_copyarea_accel() local
248 src_format = PSB_2D_SRC_332RGB; in psbfb_copyarea_accel()
252 src_format = PSB_2D_SRC_555RGB; in psbfb_copyarea_accel()
256 src_format = PSB_2D_SRC_565RGB; in psbfb_copyarea_accel()
262 src_format = PSB_2D_SRC_8888ARGB; in psbfb_copyarea_accel()
276 offset, stride, src_format, in psbfb_copyarea_accel()
/OK3568_Linux_fs/external/linux-rga/samples/allocator_demo/src/
H A Drga_allocator_graphicbuffer_demo.cpp56 int src_width, src_height, src_format; in main() local
69 src_format = HAL_PIXEL_FORMAT_RGBA_8888; in main()
75 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
82 sp<GraphicBuffer> src_gb(new GraphicBuffer(src_width, src_height, src_format, 0, src_gb_flags)); in main()
99 ret = read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0); in main()
138 src = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
H A Drga_allocator_malloc_demo.cpp43 int src_width, src_height, src_format; in main() local
55 src_format = RK_FORMAT_RGBA_8888; in main()
61 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
70 ret = read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0); in main()
90 src = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
H A Drga_allocator_dma_demo.cpp44 int src_width, src_height, src_format; in main() local
57 src_format = RK_FORMAT_RGBA_8888; in main()
63 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
80 ret = read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0); in main()
100 src = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
/OK3568_Linux_fs/external/linux-rga/samples/copy_demo/src/
H A Drga_copy_demo.cpp46 int src_width, src_height, src_format; in main() local
59 src_format = RK_FORMAT_RGBA_8888; in main()
65 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
72 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
85 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
/OK3568_Linux_fs/external/linux-rga/samples/transform_demo/src/
H A Drga_transform_rotate_flip_demo.cpp47 int src_width, src_height, src_format; in main() local
60 src_format = RK_FORMAT_RGBA_8888; in main()
66 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
73 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
86 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
H A Drga_transform_flip_demo.cpp47 int src_width, src_height, src_format; in main() local
60 src_format = RK_FORMAT_RGBA_8888; in main()
66 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
73 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
86 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
H A Drga_transform_rotate_demo.cpp47 int src_width, src_height, src_format; in main() local
60 src_format = RK_FORMAT_RGBA_8888; in main()
66 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
73 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
86 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
/OK3568_Linux_fs/external/linux-rga/samples/resize_demo/src/
H A Drga_resize_demo.cpp47 int src_width, src_height, src_format; in main() local
60 src_format = RK_FORMAT_RGBA_8888; in main()
66 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
73 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
86 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
/OK3568_Linux_fs/external/linux-rga/samples/rop_demo/src/
H A Drga_rop_demo.cpp47 int src_width, src_height, src_format; in main() local
60 src_format = RK_FORMAT_RGBA_8888; in main()
66 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
73 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
86 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
/OK3568_Linux_fs/external/linux-rga/samples/config_demo/src/
H A Drga_config_thread_core_demo.cpp46 int src_width, src_height, src_format; in main() local
59 src_format = RK_FORMAT_RGBA_8888; in main()
65 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
72 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
85 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
H A Drga_config_single_core_demo.cpp46 int src_width, src_height, src_format; in main() local
61 src_format = RK_FORMAT_RGBA_8888; in main()
67 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
74 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
87 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
/OK3568_Linux_fs/external/linux-rga/samples/crop_demo/src/
H A Drga_crop_demo.cpp47 int src_width, src_height, src_format; in main() local
62 src_format = RK_FORMAT_RGBA_8888; in main()
68 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
75 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
88 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
H A Drga_crop_rect_demo.cpp47 int src_width, src_height, src_format; in main() local
63 src_format = RK_FORMAT_RGBA_8888; in main()
69 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
76 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
89 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()
/OK3568_Linux_fs/external/gstreamer-rockchip/gst/rockchipmpp/
H A Dgstmppjpegdec.c234 GstVideoFormat src_format, dst_format; in gst_mpp_jpeg_dec_set_format() local
250 src_format = gst_mpp_jpeg_dec_get_format (structure); in gst_mpp_jpeg_dec_set_format()
251 switch (src_format) { in gst_mpp_jpeg_dec_set_format()
254 src_format = GST_VIDEO_FORMAT_NV12; in gst_mpp_jpeg_dec_set_format()
259 src_format = GST_VIDEO_FORMAT_NV16; in gst_mpp_jpeg_dec_set_format()
263 src_format = GST_VIDEO_FORMAT_UNKNOWN; in gst_mpp_jpeg_dec_set_format()
268 gst_mpp_dec_fixup_video_info (decoder, src_format, width, height); in gst_mpp_jpeg_dec_set_format()
274 if (src_format != dst_format) { in gst_mpp_jpeg_dec_set_format()
277 if (src_format == GST_VIDEO_FORMAT_UNKNOWN) { in gst_mpp_jpeg_dec_set_format()
291 src_format = pp_format; in gst_mpp_jpeg_dec_set_format()
[all …]
/OK3568_Linux_fs/external/linux-rga/samples/padding_demo/src/
H A Drga_padding_demo.cpp47 int src_width, src_height, src_format; in main() local
66 src_format = RK_FORMAT_RGBA_8888; in main()
72 src_buf_size = src_width * src_height * get_bpp_from_format(src_format); in main()
79 if (0 != read_image_from_file(src_buf, LOCAL_FILE_PATH, src_width, src_height, src_format, 0)) { in main()
92 src_img = wrapbuffer_handle(src_handle, src_width, src_height, src_format); in main()

12