/dports/multimedia/transcode/transcode-1.1.7/src/ |
H A D | transcode.c | 1966 && (vob->hori_resize2 * vob->resize2_mult + vob->ex_v_width) % vob->resize2_mult != 0) in main() 1983 ((vob->ex_v_width - vob->hori_resize2*vob->resize2_mult) * vob->ex_v_height); in main() 2002 && (vob->ex_v_height - vob->vert_resize1*vob->resize1_mult) % vob->resize1_mult != 0) in main() 2006 && (vob->ex_v_width - vob->hori_resize1*vob->resize1_mult) % vob->resize1_mult != 0) in main() 2033 asr *= (double) vob->zoom_width*vob->ex_v_height/(vob->ex_v_width * vob->zoom_height); in main() 2062 asr *= (double)vob->ex_v_width/vob->ex_v_height*(vob->reduce_h*vob->ex_v_height)/ in main() 2413 vob->mp3bitrate = ((vob->mp3frequency > 0) ?vob->mp3frequency :vob->a_rate) * in main() 2454 vob->a_chan = vob->a_chan > 2 ?2 :vob->a_chan; in main() 2474 vob->ex_fps = vob->fps; in main() 2526 vob->im_a_size += (vob->a_bits/8) * vob->a_chan; in main() [all …]
|
H A D | probe.c | 102 if (!do_probe(vid_file, vob->nav_seek_file, vob->dvd_title, range, in probe_source() 118 if (!do_probe(aud_file, vob->nav_seek_file, vob->dvd_title, range, in probe_source() 136 vob->v_format_flag, vob->a_format_flag, in probe_source() 137 vob->v_codec_flag, vob->a_codec_flag); in probe_source() 416 tc_frc_code_to_value(vob->im_frc, &vob->fps); in probe_to_vob() 455 || (vob->demuxer == 3 || vob->demuxer == 4) in probe_to_vob() 660 if (vob->fps < PAL_FPS && (vob->demuxer==1 || vob->demuxer==3)) in select_modules() 777 if (vob->fps < PAL_FPS && (vob->demuxer==1 || vob->demuxer==3)) in select_modules() 782 vob->amod_probed = vob->has_audio ? "vob" : "null"; in select_modules() 844 vob->vmod_probed_xml = vob->vmod_probed; in select_modules() [all …]
|
H A D | cmdline_def.h | 378 &vob->ps_seq1, &vob->ps_seq2) < 0 382 || vob->ps_seq1 > vob->ps_seq2 404 vob->ts_pid2 = vob->ts_pid1; 560 &vob->a_bits, &vob->a_chan); 871 vob->ex_par = vob->ex_par_width; 928 &vob->a_vbr, &vob->mp3quality, &vob->mp3mode) < 1 1014 vob->im_clip_bottom = vob->im_clip_top; 1016 vob->im_clip_right = vob->im_clip_left; 1127 vob->ex_clip_bottom = vob->ex_clip_top; 1135 vob->reduce_w = vob->reduce_h; [all …]
|
H A D | audio_trans.c | 39 if (vob->a_bits == 8) { in do_process_audio() 52 if (vob->a_chan == 1 && vob->dm_chan == 2) { in do_process_audio() 55 } else if (vob->a_chan == 2 && vob->dm_chan == 1) { in do_process_audio() 64 if (vob->volume > 0) { in do_process_audio() 71 if (vob->sync_ms != 0) { in do_process_audio() 74 vob->sync_samples = (vob->sync_ms * vob->a_rate / 1000) * vob->dm_chan; in do_process_audio() 78 -vob->sync_samples, -vob->sync_ms); in do_process_audio() 81 vob->sync_samples, vob->sync_ms); in do_process_audio() 86 if (vob->sync_samples < 0) { in do_process_audio() 94 vob->sync_samples = 0; in do_process_audio() [all …]
|
H A D | split.c | 159 …if(split_stream_core(file, ((vob->vob_chunk == vob->vob_chunk_max) ? vob->audio_in_file:vob->video… in split_stream() 206 …if((vob->vob_percentage) ? (vob->vob_chunk==vob->vob_chunk_max && vob->vob_chunk_max==100 ) : (vob… in split_stream() 209 if(vob->vob_chunk_num2>vob->vob_chunk_max) vob->vob_chunk_num2=vob->vob_chunk_max; in split_stream() 210 if(vob->vob_chunk_num1>vob->vob_chunk_max) vob->vob_chunk_num1=0; in split_stream() 215 …chunks = (vob->vob_percentage || vob->vob_chunk_num2==0) ? 1:vob->vob_chunk_num2-vob->vob_chunk_nu… in split_stream() 216 startc = (vob->vob_percentage || vob->vob_chunk_num2==0) ? vob->vob_chunk:vob->vob_chunk_num1; in split_stream() 218 …chunks = (vob->vob_percentage || vob->vob_chunk_num2==0) ? vob->vob_chunk_max:vob->vob_chunk_num2-… in split_stream() 219 startc = (vob->vob_percentage || vob->vob_chunk_num2==0) ? 0:vob->vob_chunk_num1; in split_stream() 255 …e_inc = (vob->vob_percentage) ? (long) (((vob->vob_chunk+vob->vob_chunk_max) * uframe[unit])/100) … in split_stream() 273 vob->ps_unit = 0; in split_stream() [all …]
|
H A D | video_trans.c | 218 ptr->v_width - vob->im_clip_left - vob->im_clip_right, in do_process_frame() 219 ptr->v_height - vob->im_clip_top - vob->im_clip_bottom); in do_process_frame() 284 int resize_w = vob->hori_resize2 - vob->hori_resize1; in do_process_frame() 285 int resize_h = vob->vert_resize2 - vob->vert_resize1; in do_process_frame() 302 preadjust_frame_size(&vtd, vob->zoom_width, vob->zoom_height); in do_process_frame() 309 vob->zoom_width, -vob->zoom_height, vob->zoom_filter); in do_process_frame() 330 ptr->v_width - vob->ex_clip_left-vob->ex_clip_right, in do_process_frame() 331 ptr->v_height - vob->ex_clip_top - vob->ex_clip_bottom); in do_process_frame() 345 PROCESS_FRAME(tcv_reduce, &vtd, vob->reduce_w, vob->reduce_h); in do_process_frame() 413 vob->aa_weight, vob->aa_bias); in do_process_frame() [all …]
|
/dports/multimedia/transcode/transcode-1.1.7/tools/ |
H A D | tcexport.c | 136 conf->vob = vob; in config_init() 180 vob_t *vob = conf->vob; in parse_options() local 333 fch = vob->a_rate/vob->fps; in setup_im_size() 349 vob->im_a_size += (vob->a_bits/8) * vob->a_chan; in setup_im_size() 356 vob->ex_fps = vob->fps; in setup_ex_params() 357 vob->ex_frc = vob->im_frc; in setup_ex_params() 366 vob->dm_bits = vob->a_bits; in setup_ex_params() 367 vob->dm_chan = vob->a_chan; in setup_ex_params() 372 vob_t *vob = conf->vob; in setup_ranges() local 397 vob_t *vob = conf->vob; in print_summary() local [all …]
|
/dports/multimedia/transcode/transcode-1.1.7/filter/ |
H A D | filter_mask.c | 49 bufcb = buf + vob->im_v_width * vob->im_v_height; in ymask_yuv() 50 bufcr = buf + vob->im_v_width * vob->im_v_height * 5 / 4; in ymask_yuv() 66 bufcb = buf + vob->im_v_width * vob->im_v_height; in ymask_yuv422() 67 bufcr = buf + vob->im_v_width * vob->im_v_height * 3 / 2; in ymask_yuv422() 91 bufcb = buf + vob->im_v_width * vob->im_v_height; in xmask_yuv() 131 bufcb = buf + vob->im_v_width * vob->im_v_height; in xmask_yuv422() 295 if ((vob->im_v_height - bc) > 1) ymask_yuv(ptr->video_buf, vob, bc, vob->im_v_height - 1); in tc_filter() 297 if ((vob->im_v_width - rc) > 1) xmask_yuv(ptr->video_buf, vob, rc, vob->im_v_width - 1); in tc_filter() 301 if ((vob->im_v_height - bc) > 1) ymask_rgb(ptr->video_buf, vob, bc, vob->im_v_height - 1); in tc_filter() 303 if ((vob->im_v_width - rc) > 1) xmask_rgb(ptr->video_buf, vob, rc, vob->im_v_width - 1); in tc_filter() [all …]
|
H A D | filter_resample.c | 75 if (!vob->a_rate || !vob->mp3frequency) { in TC_MODULE_GENERIC_INIT() 80 vob->a_rate, vob->mp3frequency); in TC_MODULE_GENERIC_INIT() 81 if (vob->a_rate == vob->mp3frequency) { in TC_MODULE_GENERIC_INIT() 87 pd->bytes_per_sample = vob->a_chan * vob->a_bits/8; in TC_MODULE_GENERIC_INIT() 88 samples_per_frame = vob->a_rate/vob->ex_fps; in TC_MODULE_GENERIC_INIT() 89 ratio = (float)vob->mp3frequency/(float)vob->a_rate; in TC_MODULE_GENERIC_INIT() 106 vob->mp3frequency * pd->bytes_per_sample / (int)vob->fps, in TC_MODULE_GENERIC_INIT() 107 (vob->a_leap_bytes > 0 )?(int)(vob->a_leap_bytes * ratio):0); in TC_MODULE_GENERIC_INIT() 114 pd->resample_ctx = av_audio_resample_init(vob->a_chan, vob->a_chan, in TC_MODULE_GENERIC_INIT() 115 vob->mp3frequency, vob->a_rate, in TC_MODULE_GENERIC_INIT() [all …]
|
/dports/multimedia/transcode/transcode-1.1.7/export/ |
H A D | export_raw.c | 179 AVI_set_video(vob->avifile_out, vob->ex_v_width, vob->ex_v_height, 187 fcc, vob->ex_fps, vob->ex_v_width, vob->ex_v_height); 201 AVI_set_video(vob->avifile_out, vob->ex_v_width, vob->ex_v_height, 206 fcc, vob->ex_fps, vob->ex_v_width, vob->ex_v_height); 220 AVI_set_video(vob->avifile_out, vob->ex_v_width, vob->ex_v_height, 225 fcc, vob->ex_fps, vob->ex_v_width, vob->ex_v_height); 241 vob->im_v_codec, vob->v_codec_flag); 246 vob->ex_v_height, vob->ex_fps, fcc); 274 AVI_set_video(vob->avifile_out, vob->ex_v_width, vob->ex_v_height, vob->ex_fps, "DVSD"); 278 "DVSD", vob->ex_fps, vob->ex_v_width, vob->ex_v_height); [all …]
|
H A D | export_divx5.c | 194 if((ch = vob->ex_v_width - ((vob->ex_v_width>>3)<<3)) != 0) { 204 if((ch = vob->ex_v_height - ((vob->ex_v_height>>3)<<3)) != 0) { 214 if ((buffer = malloc(vob->ex_v_height*vob->ex_v_width*3))==NULL) { 219 memset(buffer, 0, vob->ex_v_height*vob->ex_v_width*3); 287 if (vob->divxlogfile && *vob->divxlogfile) { 465 if(vob->divxlogfile==NULL || stat(vob->divxlogfile, &fbuf)){ 467 vob->divxlogfile); 528 if(param->flag == TC_AUDIO) return(tc_audio_open(vob, vob->avifile_out)); 534 AVI_set_video(vob->avifile_out, vob->ex_v_width, vob->ex_v_height, 537 AVI_set_video(vob->avifile_out, vob->ex_v_width, vob->ex_v_height, [all …]
|
H A D | export_mov.c | 204 if (vob->ex_v_fcc == NULL) vob->ex_v_fcc = ""; 205 if (vob->ex_a_fcc == NULL) vob->ex_a_fcc = ""; 206 if (vob->ex_profile_name == NULL) vob->ex_profile_name = ""; 235 w = vob->ex_v_width; 250 …if (vob->im_v_codec != CODEC_RAW && vob->im_v_codec != CODEC_RAW_YUV && vob->im_v_codec != CODEC_R… 273 tc_quicktime_get_timescale(vob->ex_fps) / vob->ex_fps+0.5, 347 vob->v_codec_flag); 372 …if (vob->im_v_codec != CODEC_RAW && vob->im_v_codec != CODEC_RAW_YUV && vob->im_v_codec != CODEC_R… 396 …if (vob->video_max_bitrate > vob->divxbitrate) div3_bitrate_tolerance = (vob->video_max_bitrate - … 548 if((vob->dm_chan!=1)&&(vob->dm_chan!=2)) { [all …]
|
H A D | aud_aux.c | 178 if(vob->a_vbr) in tc_audio_init_lame() 229 if (vob->lame_preset && strlen (vob->lame_preset)) in tc_audio_init_lame() 295 (vob->mp3frequency>0)?vob->mp3frequency:vob->a_rate); in tc_audio_init_lame() 453 avi_aud_rate=(vob->mp3frequency != 0)?vob->mp3frequency:vob->a_rate; in tc_audio_init() 497 ret=tc_audio_init_lame(vob, vob->ex_a_codec); in tc_audio_init() 510 ret=tc_audio_init_ffmpeg(vob, vob->ex_a_codec); in tc_audio_init() 516 ret=tc_audio_init_ffmpeg(vob, vob->ex_a_codec); in tc_audio_init() 522 vob->im_a_codec, vob->ex_a_codec); in tc_audio_init() 543 vob->im_a_codec, vob->ex_a_codec); in tc_audio_init() 571 vob->im_a_codec, vob->ex_a_codec); in tc_audio_init() [all …]
|
H A D | export_mpeg2enc.c | 156 framerate = (vob->ex_frc==0) ? mpeg_conform_framerate(vob->ex_fps):mpeg_framerate(vob->ex_frc); 157 asr = (vob->ex_asr<0) ? vob->im_asr:vob->ex_asr; 175 y4m_si_set_sampleaspect(&y4mstream, y4m_guess_sar(vob->ex_v_width, vob->ex_v_height, dar)); 189 p1 = vob->ex_v_fcc; 190 p2 = vob->ex_a_fcc; 201 frc = vob->ex_frc; 234 else p4=vob->ex_v_string; 354 sa_width = vob->ex_v_width; 367 vob->im_v_codec); 375 if (vob->ex_v_fcc) prof = atoi(vob->ex_v_fcc); [all …]
|
H A D | export_ffmpeg.c | 576 if (vob->ex_v_height != 240 && vob->ex_v_height != 288) 612 if (vob->ex_v_height != 480 && vob->ex_v_height != 576) 648 if (vob->ex_v_height != 480 && vob->ex_v_height != 576) 685 if (vob->ex_v_width != 720 && vob->ex_v_width != 704 && vob->ex_v_width != 352) 688 …if (vob->ex_v_height != 576 && vob->ex_v_height != 480 && vob->ex_v_height != 288 && vob->ex_v_hei… 692 if(vob->divxbitrate < 1000 || vob->divxbitrate > 9800) 767 if ((vob->ex_fps > 29) && (vob->ex_fps < 30)) { 1429 if(vob->mp3frequency != vob->a_rate) 1574 AVI_set_video(avifile, vob->ex_v_width, vob->ex_v_height, vob->ex_fps, 1578 AVI_set_comment_fd(vob->avifile_out, vob->avi_comment_fd); [all …]
|
H A D | export_ogg.c | 92 if (!strcmp(vob->video_out_file, vob->audio_out_file)) { 97 vob->dm_bits, 98 vob->dm_chan, 99 vob->mp3quality, 101 vob->audio_out_file?vob->audio_out_file:"/dev/null", 102 (vob->ex_a_string?vob->ex_a_string:"")); 105 vob->dm_bits, 106 vob->dm_chan, 109 vob->audio_out_file?vob->audio_out_file:"/dev/null", 110 (vob->ex_a_string?vob->ex_a_string:"")); [all …]
|
/dports/multimedia/transcode/transcode-1.1.7/import/ |
H A D | import_dvd.c | 121 vob->ps_seq1, vob->ps_seq2) : 129 vob->dvd_chapter1, vob->dvd_chapter2, vob->dvd_angle); 173 vob->verbose, vob->a_track, vob->verbose, 194 vob->verbose, vob->a_track, vob->verbose, 195 vob->verbose, vob->ac3_gain[0], vob->ac3_gain[1], 213 vob->verbose, vob->a_track, vob->verbose, 231 vob->verbose, vob->a_track, vob->verbose, 248 vob->verbose, vob->a_track, vob->verbose); 294 vob->verbose, (vob->s_track + 0x20), vob->verbose); 396 vob->verbose, vob->v_track, vob->verbose, [all …]
|
H A D | import_vob.c | 106 if(vob->ps_seq1 != 0 || vob->ps_seq2 != TC_FRAME_LAST) { 108 vob->ps_unit, vob->ps_seq1, vob->ps_seq2); 117 vob->audio_in_file, vob->verbose, vob->vob_offset) < 0) { 160 vob->verbose, vob->a_track, vob->verbose, 175 vob->a_track, vob->verbose, 177 vob->ac3_gain[0], vob->ac3_gain[1], vob->ac3_gain[2], 191 vob->a_track, vob->verbose, 205 vob->a_track, vob->verbose, 311 vob->video_in_file, vob->verbose, vob->vob_offset, 312 (vob->a_track+off), seq_buf, demux_buf, vob->verbose, [all …]
|
H A D | import_dv.c | 81 (vob->dv_yuy2_mode) ? 94 cat_buf, vob->video_in_file, vob->verbose, vob->verbose, 110 cat_buf, vob->video_in_file, vob->verbose, yuv_buf, 111 vob->verbose, vob->quality); 116 frame_size = (vob->im_v_width * vob->im_v_height * 3)/2; 132 cat_buf, vob->video_in_file, vob->verbose, 133 vob->verbose, vob->quality); 138 frame_size = vob->im_v_width * vob->im_v_height * 2; 170 cat_buf, vob->video_in_file, vob->verbose); 217 cat_buf, vob->audio_in_file, vob->verbose, [all …]
|
H A D | import_mp3.c | 72 codec = vob->im_a_codec; 86 vob->a_track, vob->audio_in_file, 88 vob->verbose, vob->nav_seek_file, offset, offset + 1, 90 vob->verbose, vob->a_padrate); 99 vob->audio_in_file, vob->a_track, 101 vob->verbose, 103 vob->verbose, 104 vob->a_padrate); 112 vob->a_track, vob->audio_in_file, 114 vob->verbose, [all …]
|
H A D | import_raw.c | 53 if (tc_file_check(vob->audio_in_file) == 1) { 56 if (vob->im_a_string) { 57 tc_snprintf(cat_buf, sizeof(cat_buf), "tcextract -x pcm %s", vob->im_a_string); 65 … cat_buf, vob->audio_in_file, vob->verbose, vob->a_track, vob->verbose) < 0) { 85 codec = vob->im_v_codec; 88 if (tc_file_check(vob->video_in_file) == 1) { 92 if (vob->im_v_string) { 93 tc_snprintf(cat_buf, sizeof(cat_buf), "tcextract %s", vob->im_v_string); 117 … cat_buf, vob->video_in_file, vob->verbose, co, vob->v_track, vob->verbose); 123 … cat_buf, vob->video_in_file, vob->verbose, co, vob->v_track, vob->verbose); [all …]
|
/dports/multimedia/transcode/transcode-1.1.7/testsuite/ |
H A D | test-resize-values.c | 75 vob->resize1_mult = 0; in do_single_test() 76 vob->resize2_mult = 0; in do_single_test() 77 vob->hori_resize1 = 0; in do_single_test() 78 vob->hori_resize2 = 0; in do_single_test() 79 vob->vert_resize1 = 0; in do_single_test() 94 vob->vert_resize1, vob->hori_resize1, vob->resize1_mult, in do_single_test() 95 vob->vert_resize2, vob->hori_resize2, vob->resize2_mult, in do_single_test() 103 vob->vert_resize1, vob->hori_resize1, vob->resize1_mult, in do_single_test() 104 vob->vert_resize2, vob->hori_resize2, vob->resize2_mult, in do_single_test() 116 if (vob == NULL) { in main() [all …]
|
/dports/multimedia/dvdstyler/DVDStyler-3.1/src/ |
H A D | ProcessTranscode.cpp | 25 double startTime = vob->GetStartTime(); in Transcode() 27 bool needEncode = vob->GetAudioFilenames().size() != vob->GetAudioStreamCount() in Transcode() 59 if (!Multiplex(vob->GetFilename(), vob->GetAudioFilenames(), vob->GetTmpFilename())) in Transcode() 69 int stIdx = vob->GetStreams().size() - vob->GetAudioFilenames().size() + i; in Transcode() 76 if (vob && vob->GetFilename().length() && !vob->HasAudio()) { in Transcode() 90 recordingTime = vob->GetDuration() > 0 ? vob->GetDuration() : 1.0; in Transcode() 96 if (vob->GetKeepAspectRatio()) { in Transcode() 97 vob->UpdatePadCrop(aspect); in Transcode() 102 for (vector<Cell*>::iterator it = vob->GetCells().begin(); it != vob->GetCells().end(); it++) { in Transcode() 122 if (stIdx >= vob->GetStreams().size() - vob->GetAudioFilenames().size()) { in Transcode() [all …]
|
H A D | ProcessProjectInfo.cpp | 66 Vob* vob = pgc->GetVobs()[vobi]; in Execute() local 67 double dur = vob->GetMenu() ? vob->GetMenu()->GetSVG()->GetDuration() : 0; in Execute() 69 vob->GetOutputFileSize(dvd, 0), dur, vob->GetBitrate(dvd, 0)); in Execute() 73 vob->GetFileSize(vob->GetAudioFilenames()[fileIdx]), in Execute() 74 vob->GetOutputFileSize(dvd, fileIdx + 1), 0, vob->GetBitrate(dvd, fileIdx + 1)); in Execute() 86 if (vob->GetSlideshow()) { in Execute() 89 vob->GetBitrate(dvd, 0)); in Execute() 94 vob->GetFileSize(vob->GetFilename()), vob->GetOutputFileSize(dvd, 0), dur, in Execute() 95 vob->GetBitrate(dvd, 0)); in Execute() 100 vob->GetFileSize(vob->GetAudioFilenames()[fileIdx]), in Execute() [all …]
|
/dports/multimedia/subtitleripper/subtitleripper/ |
H A D | vobsub.c | 503 queue = vob->spu_streams + vob->spu_streams_current; in vobsub_add_timestamp() 853 if(vob) in vobsub_parse_ifo() 869 if (vob) { in vobsub_open() 887 …vobsub_parse_ifo(vob,buf, vob->palette, &vob->orig_frame_width, &vob->orig_frame_height, force, -1… in vobsub_open() 889 …vobsub_parse_ifo(vob,ifo, vob->palette, &vob->orig_frame_width, &vob->orig_frame_height, force, -1… in vobsub_open() 899 free(vob); in vobsub_open() 908 if ((vob->custom == 0)&&(vob->have_palette!=1)) in vobsub_open() 912 …*spu = spudec_new_scaled_vobsub(vob->palette, vob->cuspal, vob->custom, vob->orig_frame_width, vob… in vobsub_open() 923 free(vob); in vobsub_open() 972 vob->spu_streams_current = vob->spu_streams_size; in vobsub_open() [all …]
|