/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libffmpeg/libswresample/ |
H A D | dither.c | 75 int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt) in swri_dither_init() argument 83 out_fmt = av_get_packed_sample_fmt(out_fmt); in swri_dither_init() 87 if(out_fmt == AV_SAMPLE_FMT_S32) scale = 1.0/(1L<<31); in swri_dither_init() 88 if(out_fmt == AV_SAMPLE_FMT_S16) scale = 1.0/(1L<<15); in swri_dither_init() 89 if(out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1.0/(1L<< 7); in swri_dither_init() 91 …if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S32 && (s->dither.output_sample_bits&31… in swri_dither_init() 92 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S16) scale = 1L<<16; in swri_dither_init() 93 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1L<<24; in swri_dither_init() 94 if(in_fmt == AV_SAMPLE_FMT_S16 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1L<<8; in swri_dither_init() 98 if (out_fmt == AV_SAMPLE_FMT_S32 && s->dither.output_sample_bits) in swri_dither_init() [all …]
|
/dports/multimedia/mencoder/mplayer-export-2021-12-29/libmpcodecs/ |
H A D | vd_mpng.c | 43 static unsigned int out_fmt=0; 54 if (*((int *) arg) == out_fmt) return CONTROL_TRUE; in control() 122 out_fmt=IMGFMT_Y800; in decode() 125 out_fmt=IMGFMT_BGR8; in decode() 128 out_fmt=IMGFMT_BGR32; in decode() 131 out_fmt=IMGFMT_BGR24; in decode() 138 if(last_w!=png_width || last_h!=png_height || last_c!=out_fmt){ in decode() 139 last_w=png_width; last_h=png_height; last_c=out_fmt; in decode() 140 if(!out_fmt) return NULL; in decode() 141 if(!mpcodecs_config_vo(sh,png_width,png_height,out_fmt)) return NULL; in decode() [all …]
|
H A D | vd_dshow.c | 70 unsigned int out_fmt=sh->codec->outfmt[0]; in init() local 85 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0; in init() 87 out_fmt=sh->codec->outfmt[sh->outfmtidx]; in init() 88 switch(out_fmt){ in init() 91 DS_VideoDecoder_SetDestFmt(sh->context,16,out_fmt);break; // packed YUV in init() 95 DS_VideoDecoder_SetDestFmt(sh->context,12,out_fmt);break; // planar YUV in init() 97 DS_VideoDecoder_SetDestFmt(sh->context,9,out_fmt);break; in init() 99 DS_VideoDecoder_SetDestFmt(sh->context,out_fmt&255,0); // RGB/BGR in init()
|
H A D | vd_dmo.c | 58 unsigned int out_fmt=sh->codec->outfmt[0]; in init() local 66 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0; in init() 68 out_fmt=sh->codec->outfmt[sh->outfmtidx]; in init() 71 switch(out_fmt){ in init() 74 DMO_VideoDecoder_SetDestFmt(ctx->decoder,16,out_fmt);break; // packed YUV in init() 78 DMO_VideoDecoder_SetDestFmt(ctx->decoder,12,out_fmt);break; // planar YUV in init() 80 DMO_VideoDecoder_SetDestFmt(ctx->decoder,9,out_fmt);break; in init() 89 DMO_VideoDecoder_SetDestFmt(ctx->decoder,out_fmt&255,0); // RGB/BGR in init()
|
H A D | vd.c | 156 unsigned int out_fmt = 0; in mpcodecs_config_vo() local 199 out_fmt = sh->codec->outfmt[i]; in mpcodecs_config_vo() 202 if (out_fmt == (unsigned int) 0xFFFFFFFF) in mpcodecs_config_vo() 210 vo_format_name(out_fmt)); in mpcodecs_config_vo() 213 flags = vf->query_format(vf, out_fmt); in mpcodecs_config_vo() 216 vo_format_name(out_fmt), flags, i); in mpcodecs_config_vo() 226 && (out_fmt == IMGFMT_RGB8 || out_fmt == IMGFMT_BGR8)) { in mpcodecs_config_vo() 277 out_fmt = sh->codec->outfmt[j]; in mpcodecs_config_vo() 279 vo_format_name(out_fmt), j); in mpcodecs_config_vo() 364 out_fmt); in mpcodecs_config_vo() [all …]
|
/dports/multimedia/mplayer/mplayer-export-2021-12-29/libmpcodecs/ |
H A D | vd_mpng.c | 43 static unsigned int out_fmt=0; 54 if (*((int *) arg) == out_fmt) return CONTROL_TRUE; in control() 122 out_fmt=IMGFMT_Y800; in decode() 125 out_fmt=IMGFMT_BGR8; in decode() 128 out_fmt=IMGFMT_BGR32; in decode() 131 out_fmt=IMGFMT_BGR24; in decode() 138 if(last_w!=png_width || last_h!=png_height || last_c!=out_fmt){ in decode() 139 last_w=png_width; last_h=png_height; last_c=out_fmt; in decode() 140 if(!out_fmt) return NULL; in decode() 141 if(!mpcodecs_config_vo(sh,png_width,png_height,out_fmt)) return NULL; in decode() [all …]
|
H A D | vd_dshow.c | 70 unsigned int out_fmt=sh->codec->outfmt[0]; in init() local 85 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0; in init() 87 out_fmt=sh->codec->outfmt[sh->outfmtidx]; in init() 88 switch(out_fmt){ in init() 91 DS_VideoDecoder_SetDestFmt(sh->context,16,out_fmt);break; // packed YUV in init() 95 DS_VideoDecoder_SetDestFmt(sh->context,12,out_fmt);break; // planar YUV in init() 97 DS_VideoDecoder_SetDestFmt(sh->context,9,out_fmt);break; in init() 99 DS_VideoDecoder_SetDestFmt(sh->context,out_fmt&255,0); // RGB/BGR in init()
|
H A D | vd_dmo.c | 58 unsigned int out_fmt=sh->codec->outfmt[0]; in init() local 66 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0; in init() 68 out_fmt=sh->codec->outfmt[sh->outfmtidx]; in init() 71 switch(out_fmt){ in init() 74 DMO_VideoDecoder_SetDestFmt(ctx->decoder,16,out_fmt);break; // packed YUV in init() 78 DMO_VideoDecoder_SetDestFmt(ctx->decoder,12,out_fmt);break; // planar YUV in init() 80 DMO_VideoDecoder_SetDestFmt(ctx->decoder,9,out_fmt);break; in init() 89 DMO_VideoDecoder_SetDestFmt(ctx->decoder,out_fmt&255,0); // RGB/BGR in init()
|
H A D | vd.c | 156 unsigned int out_fmt = 0; in mpcodecs_config_vo() local 199 out_fmt = sh->codec->outfmt[i]; in mpcodecs_config_vo() 202 if (out_fmt == (unsigned int) 0xFFFFFFFF) in mpcodecs_config_vo() 210 vo_format_name(out_fmt)); in mpcodecs_config_vo() 213 flags = vf->query_format(vf, out_fmt); in mpcodecs_config_vo() 216 vo_format_name(out_fmt), flags, i); in mpcodecs_config_vo() 226 && (out_fmt == IMGFMT_RGB8 || out_fmt == IMGFMT_BGR8)) { in mpcodecs_config_vo() 277 out_fmt = sh->codec->outfmt[j]; in mpcodecs_config_vo() 279 vo_format_name(out_fmt), j); in mpcodecs_config_vo() 364 out_fmt); in mpcodecs_config_vo() [all …]
|
/dports/multimedia/audacious-plugins/audacious-plugins-4.1/src/filewriter/ |
H A D | convert.cc | 6 static int out_fmt; variable 14 out_fmt = output_fmt; in convert_init() 21 convert_output.resize (FMT_SIZEOF (out_fmt) * samples); in convert_process() 23 if (in_fmt == out_fmt) in convert_process() 26 audio_to_int ((const float *) ptr, convert_output.begin (), out_fmt, samples); in convert_process() 27 else if (out_fmt == FMT_FLOAT) in convert_process() 33 audio_to_int (convert_temp.begin (), convert_output.begin (), out_fmt, samples); in convert_process()
|
/dports/audio/sdl2_mixer/SDL2_mixer-2.0.4/external/mpg123-1.25.6/src/libout123/modules/ |
H A D | win32.c | 44 WAVEFORMATEX out_fmt; in open_win32() local 62 out_fmt.wFormatTag = WAVE_FORMAT_PCM; in open_win32() 63 out_fmt.wBitsPerSample = 16; in open_win32() 64 out_fmt.nChannels = ao->channels; in open_win32() 65 out_fmt.nSamplesPerSec = ao->rate; in open_win32() 66 out_fmt.nBlockAlign = out_fmt.nChannels*out_fmt.wBitsPerSample/8; in open_win32() 67 out_fmt.nAvgBytesPerSec = out_fmt.nBlockAlign*out_fmt.nSamplesPerSec; in open_win32() 68 out_fmt.cbSize = 0; in open_win32() 70 res = waveOutOpen(&state->waveout, dev_id, &out_fmt, in open_win32()
|
/dports/editors/aewan/aewan-1.0.01/ |
H A D | aecat.c | 200 int out_fmt = 0; /* In what format to output. */ in main() local 207 case 'L': out_fmt = FMT_LAYERS; break; in main() 213 out_fmt = FMT_TEXT; in main() 215 out_fmt = FMT_HTML; in main() 217 out_fmt = FMT_COMMENT; in main() 227 if (!out_fmt) in main() 228 out_fmt = FMT_TEXT; in main() 230 if (out_fmt != FMT_TEXT && clear_screen) in main() 233 if (out_fmt != FMT_TEXT && suppress_newlines) in main() 266 switch(out_fmt) { in main()
|
/dports/mail/elm/elm2.5.8/utils/ |
H A D | elmalias.c | 125 char *out_fmt; /* output printing format */ local 146 out_fmt = "%v"; /* default is to just show alias value */ 155 out_fmt = "%-20.20a %v"; 166 out_fmt = optarg; 169 out_fmt = "%v?n (%n)?"; 181 out_fmt = "%-20.20a %v?n (%n)?"; 184 out_fmt = "\ 228 print_alias(out_fmt, ar); 260 print_alias(out_fmt, ar); 262 exp_print_alias(dblist, out_fmt, ar); [all …]
|
/dports/games/libretro-yabause/yabause-ea5b118/yabause/src/libretro/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 148 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 167 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 177 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 190 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 236 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/burner/libretro/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 148 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 167 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 177 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 190 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 236 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/games/retroarch/RetroArch-1.9.7/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 148 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 167 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 177 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 190 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 236 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/emulators/libretro-vice/vice-libretro-5725415/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 148 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 167 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 177 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 190 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 236 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/games/mrboom/MrBoom-src-5.2/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 148 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 167 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 177 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 190 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 236 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/games/libretro-cap32/libretro-cap32-ad7397f/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 148 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 167 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 177 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 190 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 236 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/burner/libretro/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 146 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 165 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 175 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 188 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 234 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 148 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 167 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 177 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 190 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 236 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/libretro-common/gfx/scaler/ |
H A D | scaler.c | 60 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 92 if (ctx->in_fmt == ctx->out_fmt) in scaler_ctx_gen_filter() 101 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 117 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 136 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 148 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 167 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 177 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 190 switch (ctx->out_fmt) in scaler_ctx_gen_filter() 236 switch (ctx->out_fmt) in scaler_ctx_gen_filter() [all …]
|
/dports/multimedia/vmaf/vmaf-2.3.0/python/vmaf/script/ |
H A D | run_psnr.py | 56 out_fmt = get_cmd_option(sys.argv, 6, len(sys.argv), '--out-fmt') 57 if not (out_fmt is None 58 or out_fmt == 'xml' 59 or out_fmt == 'json' 60 or out_fmt == 'text'): 109 if out_fmt == 'xml': 111 elif out_fmt == 'json':
|
/dports/games/libretro-desmume2015/desmume2015-d6128e6/desmume/src/libretro-common/gfx/scaler/ |
H A D | scaler.c | 84 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in allocate_frames() 109 if (ctx->in_fmt == ctx->out_fmt) in set_direct_pix_conv() 118 switch (ctx->out_fmt) in set_direct_pix_conv() 134 switch (ctx->out_fmt) in set_direct_pix_conv() 150 switch (ctx->out_fmt) in set_direct_pix_conv() 160 switch (ctx->out_fmt) in set_direct_pix_conv() 179 switch (ctx->out_fmt) in set_direct_pix_conv() 189 switch (ctx->out_fmt) in set_direct_pix_conv() 240 switch (ctx->out_fmt) in set_pix_conv() 352 if (ctx->out_fmt != SCALER_FMT_ARGB8888) in scaler_ctx_scale() [all …]
|
/dports/audio/mpg123/mpg123-1.29.3/src/libout123/modules/ |
H A D | win32.c | 54 WAVEFORMATEX out_fmt; in open_win32() local 76 out_fmt.wFormatTag = WAVE_FORMAT_PCM; in open_win32() 77 out_fmt.wBitsPerSample = ao->format == MPG123_ENC_SIGNED_8 ? 8 : 16; in open_win32() 78 out_fmt.nChannels = ao->channels; in open_win32() 79 out_fmt.nSamplesPerSec = ao->rate; in open_win32() 80 out_fmt.nBlockAlign = out_fmt.nChannels*out_fmt.wBitsPerSample/8; in open_win32() 81 out_fmt.nAvgBytesPerSec = out_fmt.nBlockAlign*out_fmt.nSamplesPerSec; in open_win32() 82 out_fmt.cbSize = 0; in open_win32() 84 res = waveOutOpen(&state->waveout, dev_id, &out_fmt, in open_win32()
|