/dports/misc/vxl/vxl-3.3.2/core/vgui/tests/ |
H A D | test_drawpix_speed.cxx | 59 Hermes_ConverterRequest(converter, src_format, dest_format); in fps_hermes() 63 int bytes_per_pixel = src_format->bits / 8; in fps_hermes() 87 Hermes_FormatFree(src_format); in fps_hermes() 128 Hermes_FormatFree(src_format); in fps_hermes_grey() 440 HermesFormat * src_format; in main() local 449 fps = fps_hermes(1.0, 1.0, src_format, backbuffer); in main() 452 fps = fps_hermes(1.0, 1.0, src_format, backbuffer); in main() 455 fps = fps_hermes(1.0, 1.0, src_format, backbuffer); in main() 458 fps = fps_hermes(1.0, 1.0, src_format, backbuffer); in main() 461 fps = fps_hermes(1.0, 1.0, src_format, backbuffer); in main() [all …]
|
/dports/audio/clunk/clunk-1.3.261/clunk/ |
H A D | resample.h | 97 …static void resample(AudioSpec dst_format, Buffer &dst_data, AudioSpec src_format, const Buffer &s… 99 …size_t src_size = src_data.get_size() / sizeof(typename SrcAudioFormat::Type) / src_format.channel… 100 size_t dst_size = (size_t)(src_size * (1.0f * dst_format.sample_rate / src_format.sample_rate)); 105 …src_format.sample_rate, 8 * (unsigned)sizeof(typename SrcAudioFormat::Type), src_format.channels, … 108 if (src_format.channels == 0) 121 src += src_format.channels; 130 …static void resample(AudioSpec dst_format, Buffer &dst_data, AudioSpec src_format, const Buffer &s… 131 switch(src_format.channels) { 152 static void resample(AudioSpec dst_format, Buffer &dst, AudioSpec src_format, const Buffer &src) 154 switch(src_format.format) { [all …]
|
/dports/graphics/gimp-app/gimp-2.10.30/libgimpcolor/ |
H A D | gimpcolortransform.c | 71 const Babl *src_format; member 190 g_return_val_if_fail (src_format != NULL, NULL); in gimp_color_transform_new() 226 priv->src_format = src_format; in gimp_color_transform_new() 242 priv->src_format = gimp_color_profile_get_lcms_format (src_format, in gimp_color_transform_new() 314 g_return_val_if_fail (src_format != NULL, NULL); in gimp_color_transform_new_proofing() 327 priv->src_format = gimp_color_profile_get_lcms_format (src_format, in gimp_color_transform_new_proofing() 389 g_return_if_fail (src_format != NULL); in gimp_color_transform_process_pixels() 396 if (src_format != priv->src_format) in gimp_color_transform_process_pixels() 400 babl_process (babl_fish (src_format, in gimp_color_transform_process_pixels() 401 priv->src_format), in gimp_color_transform_process_pixels() [all …]
|
/dports/games/exult/exult-snapshot-v1.7.0.20211128/imagewin/ |
H A D | ArbScaler.h | 74 SDL_PixelFormat *src_format = texture->format; in Scale() local 83 if (src_format->BitsPerPixel == 8 && Scale8To565) { in Scale() 84 Manip8to565 manip(src_format->palette->colors, dst_format); in Scale() 91 if (src_format->BitsPerPixel == 8 && Scale8To555) { in Scale() 100 if (src_format->BitsPerPixel == 8 && Scale8To16) { in Scale() 101 Manip8to16 manip(src_format->palette->colors, dst_format); in Scale() 103 } else if (src_format->BytesPerPixel == 2 && Scale16To16) { in Scale() 108 if (src_format->BitsPerPixel == 8 && Scale8To32) { in Scale() 109 Manip8to32 manip(src_format->palette->colors, dst_format); in Scale() 111 } else if (src_format->BytesPerPixel == 4 && Scale32To32) { in Scale() [all …]
|
/dports/multimedia/gavl/gavl-1.4.0/gavl/ |
H A D | scale.c | 323 gavl_video_format_copy(&scaler->src_format, src_format); in gavl_video_scaler_init() 330 gavl_rectangle_f_set_all(&src_rect, &scaler->src_format); in gavl_video_scaler_init() 345 if(scaler->src_format.interlace_mode == GAVL_INTERLACE_NONE) in gavl_video_scaler_init() 393 gavl_video_format_dump(&scaler->src_format); in gavl_video_scaler_init() 406 if((scaler->src_format.pixelformat == GAVL_YUY2) || in gavl_video_scaler_init() 407 (scaler->src_format.pixelformat == GAVL_UYVY)) in gavl_video_scaler_init() 509 gavl_video_format_copy(&scaler->src_format, format); in gavl_video_scaler_init_convolve() 512 gavl_rectangle_f_set_all(&src_rect, &scaler->src_format); in gavl_video_scaler_init_convolve() 534 if((scaler->src_format.pixelformat == GAVL_YUY2) || in gavl_video_scaler_init_convolve() 535 (scaler->src_format.pixelformat == GAVL_UYVY)) in gavl_video_scaler_init_convolve() [all …]
|
/dports/audio/musicpd/mpd-0.23.6/src/pcm/ |
H A D | GlueResampler.cxx | 36 GluePcmResampler::Open(AudioFormat src_format, unsigned new_sample_rate) in Open() argument 38 assert(src_format.IsValid()); in Open() 41 AudioFormat requested_format = src_format; in Open() 46 assert(requested_format.channels == src_format.channels); in Open() 47 assert(dest_format.channels == src_format.channels); in Open() 50 if (requested_format.format != src_format.format) in Open() 51 format_converter.Open(src_format.format, in Open() 54 src_sample_format = src_format.format; in Open()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/sound/core/oss/ |
H A D | linear.c | 62 int nchannels = plugin->src_format.channels; in convert() 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() 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() 166 if (snd_BUG_ON(!snd_pcm_format_linear(src_format->format) || in snd_pcm_plugin_build_linear() 171 src_format, dst_format, in snd_pcm_plugin_build_linear() [all …]
|
H A D | copy.c | 39 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()
|
/dports/multimedia/libv4l/linux-5.13-rc2/sound/core/oss/ |
H A D | linear.c | 62 int nchannels = plugin->src_format.channels; in convert() 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() 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() 166 if (snd_BUG_ON(!snd_pcm_format_linear(src_format->format) || in snd_pcm_plugin_build_linear() 171 src_format, dst_format, in snd_pcm_plugin_build_linear() [all …]
|
H A D | copy.c | 39 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()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/sound/core/oss/ |
H A D | linear.c | 62 int nchannels = plugin->src_format.channels; in convert() 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() 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() 166 if (snd_BUG_ON(!snd_pcm_format_linear(src_format->format) || in snd_pcm_plugin_build_linear() 171 src_format, dst_format, in snd_pcm_plugin_build_linear() [all …]
|
H A D | copy.c | 39 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()
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/nv_copy_image/ |
H A D | formats.c | 375 stride = TEX_SIZE * src_format->bytes; in setup_test_data() 379 if (src_format->data_type == GL_FLOAT || in setup_test_data() 617 src_format->internal_format, in run_multisample_test() 619 src_format->format, in run_multisample_test() 808 src_format->internal_format, in run_test() 810 if (src_format->block_width != 1 || in run_test() 811 src_format->block_height != 1) { in run_test() 816 src_format->internal_format, in run_test() 932 src_format = &src_format_list[sf]; in piglit_display() 933 if (!is_format_supported(src_format)) in piglit_display() [all …]
|
/dports/audio/libinstpatch/libinstpatch-1.1.6/libinstpatch/ |
H A D | IpatchSampleTransform.c | 111 if(src_format != 0 && dest_format != 0) in ipatch_sample_transform_new() 213 ipatch_sample_transform_pool_acquire(int src_format, int dest_format, in ipatch_sample_transform_pool_acquire() argument 274 int src_format, int dest_format, in ipatch_sample_transform_set_formats() argument 283 transform->src_format = src_format; in ipatch_sample_transform_set_formats() 294 if(src_format == dest_format) /* Shortcut identical formats */ in ipatch_sample_transform_set_formats() 296 chans = IPATCH_SAMPLE_FORMAT_GET_CHANNEL_COUNT(src_format); in ipatch_sample_transform_set_formats() 355 g_return_if_fail(transform->src_format != 0); in ipatch_sample_transform_alloc() 404 if(transform->src_format && transform->dest_format) in ipatch_sample_transform_alloc_size() 473 if(transform->src_format && transform->dest_format) in ipatch_sample_transform_set_buffers_size() 599 src_frame_size = ipatch_sample_format_size(transform->src_format); in ipatch_sample_transform_convert() [all …]
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/arb_copy_image/ |
H A D | formats.c | 374 stride = TEX_SIZE * src_format->bytes; in setup_test_data() 378 if (src_format->data_type == GL_FLOAT || in setup_test_data() 616 src_format->internal_format, in run_multisample_test() 618 src_format->format, in run_multisample_test() 801 src_format->internal_format, in run_test() 803 if (src_format->block_width != 1 || in run_test() 804 src_format->block_height != 1) { in run_test() 809 src_format->internal_format, in run_test() 920 src_format = &src_format_list[sf]; in piglit_display() 921 if (!is_format_supported(src_format)) in piglit_display() [all …]
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/arb_shader_image_load_store/ |
H A D | bitcast.c | 117 run_test(const struct image_format_info *src_format, in run_test() argument 124 image_info(GL_TEXTURE_2D, src_format->format, W, H); in run_test() 148 const struct image_format_info *src_format, *dst_format; in piglit_init() local 153 for (src_format = image_formats_load_store; in piglit_init() 154 src_format->name; ++src_format) { in piglit_init() 157 if (dst_format != src_format && in piglit_init() 159 image_compat_format(src_format)) { in piglit_init() 161 run_test(src_format, dst_format), in piglit_init() 163 src_format->name, dst_format->name); in piglit_init()
|
/dports/x11/xpra/xpra-4.3/xpra/codecs/enc_proxy/ |
H A D | encoder.py | 41 …def init_context(self, device_context, width, height, src_format, dst_formats, encoding, quality, … argument 48 self.src_format = src_format 60 if self.src_format is None: 68 "src_format": self.src_format, 87 if self.src_format is None: 89 return "proxy_encoder(%s - %sx%s)" % (self.src_format, self.width, self.height) 92 return self.src_format is None 107 return self.src_format 114 self.src_format = None 117 self.src_format = ""
|
/dports/multimedia/vapoursynth/vapoursynth-R54/src/core/ |
H A D | vsresize.cpp | 606 zimg_image_format src_format; member 611 src_format(src_format), in graph_data() 730 src_format.width = node_vi.width; 731 src_format.height = node_vi.height; 763 if (!data || data->src_format != src_format || data->dst_format != dst_format) { in get_graph_data() 793 (src_format.subsample_w || src_format.subsample_h)) in set_dst_colorspace() 823 src_format.active_region.top = m_src_top; in real_get_frame() 833 set_src_colorspace(&src_format); in real_get_frame() 837 set_src_colorspace(&src_format); in real_get_frame() 843 … if (src_format == dst_format && src_vsformat->id == dst_vsformat->id && !is_shifted(src_format)) { in real_get_frame() [all …]
|
/dports/graphics/libosmesa-gallium/mesa-21.3.6/src/util/tests/format/ |
H A D | u_format_compatible_test.c | 38 enum pipe_format src_format; in test_all() local 41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { in test_all() 43 src_format_desc = util_format_description(src_format); in test_all() 55 if (dst_format == src_format) { in test_all()
|
/dports/graphics/libosmesa/mesa-21.3.6/src/util/tests/format/ |
H A D | u_format_compatible_test.c | 38 enum pipe_format src_format; in test_all() local 41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { in test_all() 43 src_format_desc = util_format_description(src_format); in test_all() 55 if (dst_format == src_format) { in test_all()
|
/dports/lang/clover/mesa-21.3.6/src/util/tests/format/ |
H A D | u_format_compatible_test.c | 38 enum pipe_format src_format; in test_all() local 41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { in test_all() 43 src_format_desc = util_format_description(src_format); in test_all() 55 if (dst_format == src_format) { in test_all()
|
/dports/graphics/mesa-gallium-vdpau/mesa-21.3.6/src/util/tests/format/ |
H A D | u_format_compatible_test.c | 38 enum pipe_format src_format; in test_all() local 41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { in test_all() 43 src_format_desc = util_format_description(src_format); in test_all() 55 if (dst_format == src_format) { in test_all()
|
/dports/graphics/mesa-libs/mesa-21.3.6/src/util/tests/format/ |
H A D | u_format_compatible_test.c | 38 enum pipe_format src_format; in test_all() local 41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { in test_all() 43 src_format_desc = util_format_description(src_format); in test_all() 55 if (dst_format == src_format) { in test_all()
|
/dports/graphics/mesa-dri-gallium/mesa-21.3.6/src/util/tests/format/ |
H A D | u_format_compatible_test.c | 38 enum pipe_format src_format; in test_all() local 41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { in test_all() 43 src_format_desc = util_format_description(src_format); in test_all() 55 if (dst_format == src_format) { in test_all()
|
/dports/graphics/mesa-dri-classic/mesa-20.2.3/src/util/tests/format/ |
H A D | u_format_compatible_test.c | 38 enum pipe_format src_format; in test_all() local 41 for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { in test_all() 43 src_format_desc = util_format_description(src_format); in test_all() 55 if (dst_format == src_format) { in test_all()
|