summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2006-11-11 20:29:31 +0000
committerAlexis Ballier <aballier@gentoo.org>2006-11-11 20:29:31 +0000
commit94525572ffd1ec211a702dda3346dfe694bb01d5 (patch)
tree6576f994d3d5b744ed29d1637a466539acba07a1 /media-video/mpeg4ip/files
parentReplace eautoreconf with shorter eautomake (diff)
downloadgentoo-2-94525572ffd1ec211a702dda3346dfe694bb01d5.tar.gz
gentoo-2-94525572ffd1ec211a702dda3346dfe694bb01d5.tar.bz2
gentoo-2-94525572ffd1ec211a702dda3346dfe694bb01d5.zip
Adding a patch from mpeg4ip cvs to follow x264 api changes
(Portage version: 2.1.2_rc1-r5)
Diffstat (limited to 'media-video/mpeg4ip/files')
-rw-r--r--media-video/mpeg4ip/files/digest-mpeg4ip-1.5.0.1-r13
-rw-r--r--media-video/mpeg4ip/files/mpeg4ip-1.5.0.1-x264.patch67
2 files changed, 70 insertions, 0 deletions
diff --git a/media-video/mpeg4ip/files/digest-mpeg4ip-1.5.0.1-r1 b/media-video/mpeg4ip/files/digest-mpeg4ip-1.5.0.1-r1
new file mode 100644
index 000000000000..c15cf36b860f
--- /dev/null
+++ b/media-video/mpeg4ip/files/digest-mpeg4ip-1.5.0.1-r1
@@ -0,0 +1,3 @@
+MD5 f53b06c62e914ab724bda9d9af041e08 mpeg4ip-1.5.0.1.tar.gz 4826180
+RMD160 fee5c21c17a470e6de349e07d233a1eb46b2064a mpeg4ip-1.5.0.1.tar.gz 4826180
+SHA256 23535dd818898ec75ffa0df22d9f27189e77361ce8a500d58328073ee247bcb6 mpeg4ip-1.5.0.1.tar.gz 4826180
diff --git a/media-video/mpeg4ip/files/mpeg4ip-1.5.0.1-x264.patch b/media-video/mpeg4ip/files/mpeg4ip-1.5.0.1-x264.patch
new file mode 100644
index 000000000000..ff74651af4bd
--- /dev/null
+++ b/media-video/mpeg4ip/files/mpeg4ip-1.5.0.1-x264.patch
@@ -0,0 +1,67 @@
+--- mpeg4ip-1.5.0.1/server/mp4live/video_x264.cpp 2006-05-11 22:23:19.000000000 +0200
++++ /home/alexis/mpeg4ip/mpeg4ip/server/mp4live/video_x264.cpp 2006-09-29 21:55:42.000000000 +0200
+@@ -32,7 +32,9 @@
+
+ static config_index_t CFG_X264_FORCE_BASELINE;
+ static config_index_t CFG_X264_USE_CABAC;
++#ifndef HAVE_X264_PARAM_T_RC_I_RC_METHOD
+ static config_index_t CFG_X264_USE_CBR;
++#endif
+ static config_index_t CFG_X264_BIT_RATE_TOLERANCE;
+ static config_index_t CFG_X264_USE_VBV;
+ static config_index_t CFG_X264_VBV_BITRATE_MULT;
+@@ -44,7 +46,9 @@
+ static SConfigVariable X264EncoderVariables[] = {
+ CONFIG_BOOL(CFG_X264_FORCE_BASELINE, "x264ForceBaseline", false),
+ CONFIG_BOOL(CFG_X264_USE_CABAC, "x264UseCabac", true),
++#ifndef HAVE_X264_PARAM_T_RC_I_RC_METHOD
+ CONFIG_BOOL(CFG_X264_USE_CBR, "x264UseCbr", true),
++#endif
+ CONFIG_FLOAT(CFG_X264_BIT_RATE_TOLERANCE, "x264BitRateTolerance", 1.0),
+ CONFIG_BOOL(CFG_X264_USE_VBV, "x264UseVbv", false),
+ CONFIG_FLOAT(CFG_X264_VBV_BITRATE_MULT, "x264VbvBitRateMult", 1.0),
+@@ -56,7 +60,9 @@
+
+ GUI_BOOL(gui_baseline, CFG_X264_FORCE_BASELINE, "Force Baseline (overrides below)");
+ GUI_BOOL(gui_cabac, CFG_X264_USE_CABAC, "Use Cabac");
++#ifndef HAVE_X264_PARAM_T_RC_I_RC_METHOD
+ GUI_BOOL(gui_cbr, CFG_X264_USE_CBR, "Use CBR");
++#endif
+ GUI_BOOL(gui_bframe, CFG_VIDEO_USE_B_FRAMES, "Use B Frames");
+ GUI_INT_RANGE(gui_bframenum, CFG_VIDEO_NUM_OF_B_FRAMES, "Number of B frames", 1, 4);
+
+@@ -75,7 +81,9 @@
+ DECLARE_TABLE(x264_gui_options) = {
+ TABLE_GUI(gui_baseline),
+ TABLE_GUI(gui_cabac),
++#ifndef HAVE_X264_PARAM_T_RC_I_RC_METHOD
+ TABLE_GUI(gui_cbr),
++#endif
+ TABLE_GUI(gui_bframe),
+ TABLE_GUI(gui_bframenum),
+ TABLE_GUI(gui_brate),
+@@ -168,7 +176,11 @@
+ m_param.i_bframe = 0;
+ //debug_message("h264 b frames %d", m_param.i_bframe);
+ m_param.rc.i_bitrate = Profile()->GetIntegerValue(CFG_VIDEO_BIT_RATE);
++#ifndef HAVE_X264_PARAM_T_RC_I_RC_METHOD
+ m_param.rc.b_cbr = Profile()->GetBoolValue(CFG_X264_USE_CBR) ? 1 : 0;
++#else
++ m_param.rc.i_rc_method = X264_RC_ABR;
++#endif
+ m_param.rc.f_rate_tolerance = Profile()->GetFloatValue(CFG_X264_BIT_RATE_TOLERANCE);
+ if (Profile()->GetBoolValue(CFG_X264_USE_VBV)) {
+ if (Profile()->GetBoolValue(CFG_X264_FORCE_BASELINE)) {
+--- mpeg4ip-1.5.0.1/server/mp4live/video_x264.h.old 2006-11-11 20:56:48.000000000 +0100
++++ mpeg4ip-1.5.0.1/server/mp4live/video_x264.h 2006-11-11 20:57:49.000000000 +0100
+@@ -33,6 +33,10 @@
+ }
+ #endif
+
++#if X264_BUILD > 47
++#define HAVE_X264_PARAM_T_RC_I_RC_METHOD
++#endif
++
+ class CX264VideoEncoder : public CVideoEncoder {
+ public:
+ CX264VideoEncoder(CVideoProfile *vp,