diff options
author | Jan Brinkmann <luckyduck@gentoo.org> | 2005-04-13 16:31:02 +0000 |
---|---|---|
committer | Jan Brinkmann <luckyduck@gentoo.org> | 2005-04-13 16:31:02 +0000 |
commit | b2ad4389444b9d624465a189840c97a6a5ebd2ef (patch) | |
tree | 6365aaf0dd52cd33483be2824b64b38dab0502bb /media-video/transcode/files | |
parent | Package-Manager: portage-2.0.51.19 (diff) | |
download | historical-b2ad4389444b9d624465a189840c97a6a5ebd2ef.tar.gz historical-b2ad4389444b9d624465a189840c97a6a5ebd2ef.tar.bz2 historical-b2ad4389444b9d624465a189840c97a6a5ebd2ef.zip |
added patch to fix compilation with libquicktime >= 0.9.4, fixes #85865
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'media-video/transcode/files')
3 files changed, 131 insertions, 0 deletions
diff --git a/media-video/transcode/files/digest-transcode-0.6.14-r1 b/media-video/transcode/files/digest-transcode-0.6.14-r1 new file mode 100644 index 000000000000..76fd263f2079 --- /dev/null +++ b/media-video/transcode/files/digest-transcode-0.6.14-r1 @@ -0,0 +1 @@ +MD5 9bfef83b7e0fe2c27d25d871fef75a92 transcode-0.6.14.tar.gz 2614579 diff --git a/media-video/transcode/files/transcode-0.6.14-amd64_mmx.patch b/media-video/transcode/files/transcode-0.6.14-amd64_mmx.patch new file mode 100644 index 000000000000..f364d079eccf --- /dev/null +++ b/media-video/transcode/files/transcode-0.6.14-amd64_mmx.patch @@ -0,0 +1,21 @@ +diff -ur transcode-0.6.14.orig/libvo/yuv2rgb.c transcode-0.6.14/libvo/yuv2rgb.c +--- transcode-0.6.14.orig/libvo/yuv2rgb.c 2004-11-03 04:45:39.000000000 +0100 ++++ transcode-0.6.14/libvo/yuv2rgb.c 2005-04-13 01:37:20.095054432 +0200 +@@ -71,7 +71,8 @@ + void yuv2rgb_init (int bpp, int mode) + { + yuv2rgb = NULL; +-#ifdef ARCH_X86 ++#ifdef HAVE_MMX ++# if defined(ARCH_X86) || defined(ARCH_X86_64) + if ((yuv2rgb == NULL) && (vo_mm_accel & MM_ACCEL_X86_MMXEXT)) { + yuv2rgb = yuv2rgb_init_mmxext (bpp, mode); + if (yuv2rgb != NULL) +@@ -82,6 +83,7 @@ + if (yuv2rgb != NULL) + fprintf (stderr, "Using MMX for colorspace transform\n"); + } ++# endif + #endif + #ifdef LIBVO_MLIB + if ((yuv2rgb == NULL) && (vo_mm_accel & MM_ACCEL_MLIB)) { diff --git a/media-video/transcode/files/transcode-0.6.14-libquicktime094.patch b/media-video/transcode/files/transcode-0.6.14-libquicktime094.patch new file mode 100644 index 000000000000..bd6ae1051a05 --- /dev/null +++ b/media-video/transcode/files/transcode-0.6.14-libquicktime094.patch @@ -0,0 +1,109 @@ +diff -ur transcode-0.6.14.orig/configure.in transcode-0.6.14/configure.in +--- transcode-0.6.14.orig/configure.in 2004-11-15 07:16:27.000000000 +0100 ++++ transcode-0.6.14/configure.in 2005-04-13 01:49:51.437832968 +0200 +@@ -958,6 +958,10 @@ + [C], [quicktime/lqt.h], quicktime, quicktime_open) + if test x"$have_libquicktime" = x"yes" ; then + AC_DEFINE([HAVE_LIBQUICKTIME], 1, [have libquicktime support]) ++ AC_CHECK_LIB(quicktime, lqt_encode_video, ++ [AC_DEFINE([LIBQUICKTIME_000904], [1], [Have libquicktime 0.9.4 or newer])], ++ [], ++ [$LIBQUICKTIME_EXTRA_LIBS]) + fi + AM_CONDITIONAL(HAVE_LIBQUICKTIME, test x"$have_libquicktime" = x"yes") + AC_SUBST(LIBQUICKTIME_CFLAGS) +diff -ur transcode-0.6.14.orig/export/export_mov.c transcode-0.6.14/export/export_mov.c +--- transcode-0.6.14.orig/export/export_mov.c 2004-11-03 04:45:52.000000000 +0100 ++++ transcode-0.6.14/export/export_mov.c 2005-04-13 01:50:03.246037848 +0200 +@@ -102,6 +102,20 @@ + {"info", "", "Info string (no '=' or ',' allowed) "}, + {NULL, NULL, NULL}}; + ++#ifdef LIBQUICKTIME_000904 ++/* from libquicktime */ ++int tc_quicktime_get_timescale(double frame_rate) ++{ ++ int timescale = 600; ++ /* Encode the 29.97, 23.976, 59.94 framerates */ ++ if(frame_rate - (int)frame_rate != 0) ++ timescale = (int)(frame_rate * 1001 + 0.5); ++ else ++ if((600 / frame_rate) - (int)(600 / frame_rate) != 0) ++ timescale = (int)(frame_rate * 100 + 0.5); ++ return timescale; ++} ++#endif + + /* print list of things. Shamelessly stolen from export_ffmpeg.c */ + static int list(char *list_type) +@@ -262,8 +276,16 @@ + return(TC_EXPORT_ERROR); + } + ++#if !defined(LIBQUICKTIME_000904) + /* set proposed video codec */ + lqt_set_video(qtfile, 1, w, h, vob->ex_fps,qt_codec_info[0]); ++#else ++ fprintf(stderr, "\n \n %i \n \n", tc_quicktime_get_timescale(vob->ex_fps)); ++ /* set proposed video codec */ ++ lqt_set_video(qtfile, 1, w, h, ++ tc_quicktime_get_timescale(vob->ex_fps) / vob->ex_fps+0.5, ++ tc_quicktime_get_timescale(vob->ex_fps), qt_codec_info[0]); ++#endif + } + + /* set color model */ +diff -ur transcode-0.6.14.orig/import/decode_mov.c transcode-0.6.14/import/decode_mov.c +--- transcode-0.6.14.orig/import/decode_mov.c 2004-11-03 04:45:41.000000000 +0100 ++++ transcode-0.6.14/import/decode_mov.c 2005-04-13 01:49:51.438832816 +0200 +@@ -160,6 +160,7 @@ + } + free(p_buffer); + } ++#if !defined(LIBQUICKTIME_000904) + else if((strcasecmp(p_a_codec,QUICKTIME_RAW)==0) || (strcasecmp(p_a_codec,QUICKTIME_TWOS)==0)) + { + s_sample=(1.00 * s_channel * s_bits *s_audio_rate)/(s_fps*8); +@@ -180,6 +181,7 @@ + quicktime_close(p_qt_structure); + free(p_buffer); + } ++#endif + else + { + quicktime_close(p_qt_structure); +diff -ur transcode-0.6.14.orig/import/import_mov.c transcode-0.6.14/import/import_mov.c +--- transcode-0.6.14.orig/import/import_mov.c 2004-11-03 04:45:42.000000000 +0100 ++++ transcode-0.6.14/import/import_mov.c 2005-04-13 01:49:51.438832816 +0200 +@@ -136,11 +136,13 @@ + if(quicktime_supported_audio(qt_audio, 0)!=0) { + rawAudioMode = 0; + } ++#if !defined(LIBQUICKTIME_000904) + /* RAW PCM is directly supported */ + else if(strcasecmp(codec,QUICKTIME_RAW)==0) { + rawAudioMode = 1; + fprintf(stderr,"[%s] using RAW audio mode!\n",MOD_NAME); + } ++#endif + /* unsupported codec */ + else { + fprintf(stderr, "error: quicktime audio codec '%s' not supported!\n", +@@ -334,12 +336,14 @@ + } + + /* raw read mode */ ++#if !defined(LIBQUICKTIME_000904) + if(rawAudioMode) { + bytes_read = quicktime_read_audio(qt_audio, + param->buffer, param->size, 0); +- } +- /* decode audio mode */ +- else { ++ } else ++#endif ++ { ++ /* decode audio mode */ + long pos = quicktime_audio_position(qt_audio,0); + long samples = param->size; + if(bits==16) |