int handle_event();
};
+class FFMpegPixFmtItems : public ArrayList<BC_ListBoxItem*>
+{
+public:
+ FFMpegPixFmtItems() {}
+ ~FFMpegPixFmtItems() { remove_all_objects(); }
+};
+
class FFMpegPixelFormat : public BC_PopupTextBox
{
public:
FFMpegPixelFormat(FFMPEGConfigVideo *vid_config, int x, int y, int w, int list_h);
FFMPEGConfigVideo *vid_config;
- ArrayList<BC_ListBoxItem*> pixfmts;
+ FFMpegPixFmtItems pixfmts;
int handle_event();
void update_formats();
const char *text = search_text->get_text();
for( int i=0; i<plugindb.total; ++i ) {
- const char *title = plugindb.values[i]->title;
+ const char *title = _(plugindb.values[i]->title);
if( text && text[0] && !bstrcasestr(title, text) ) continue;
standalone_data.append(new PluginDialogListItem(title, i));
}
CHECK_ENABLE([static-build], [STATIC_BUILD], [build static], [auto])
CHECK_ENABLE([x264_hidepth], [X264_HIDEPTH], [build x264 10bit], [no])
-CHECK_ENABLE([x265_hidepth], [X265_HIDEPTH], [build x265 10/12bit], [no])
test "x$WANT_STATIC_BUILD" = "xauto" && WANT_STATIC_BUILD=$WANT_CINBIN_BUILD
CHECK_PROG(PACTL, [pactl])
WANT_PACTL=$PROG_PACTL
+# libx264 nasm fix
+AC_MSG_CHECKING([nasm x264 compatible])
+echo "vmovdqa32 [[eax]]{k1}{z}, zmm0" > conftest.asm
+nasm conftest.asm -o conftest.o > /dev/null 2>&1
+if test $? != 0 ; then
+ AC_MSG_RESULT([no])
+ AC_MSG_WARN([libx264 built without assembly code])
+ X264_CFG_PARAMS="$X264_CFG_PARAMS --disable-asm"
+else
+ AC_MSG_RESULT([yes])
+fi
+rm -f conftest.asm conftest.o
+
AC_CHECK_DECL([X_HAVE_UTF8_STRING],,[no_utf=yes],[#include <X11/Xlib.h>])
if test "$no_utf" = "yes"; then
AC_MSG_ERROR([Cinelerra requires utf8 support in X Windows.])
AC_SUBST(EXTRA_LIBS)
AC_SUBST(FFMPEG_EXTRA_CFG)
AC_SUBST(WANT_X264_HIDEPTH)
-AC_SUBST(WANT_X265_HIDEPTH)
AC_SUBST(CFG_CFLAGS)
AC_SUBST(CFG_CXXFLAGS)
echo ""
if test $WANT_X264_HIDEPTH = "yes" ; then
- echo "x264.cfg_params := --enable-static --bit-depth=10"
-fi
-if test $WANT_X265_HIDEPTH = "yes" ; then
- echo "x265.cfg_params := -DENABLE_SHARED=no -DHIGH_BIT_DEPTH:BOOL=ON" # -DMAIN12:BOOL=ON"
+ X264_CFG_PARAMS="$X264_CFG_PARAMS --bit-depth=10"
fi
for pkg in $STATIC_PKGS; do
if test "x$HAVE_opus" = "xyes"; then
echo 'ffmpeg.cflags+=" -I/usr/include/opus"'
fi
+if test "x$X264_CFG_PARAMS" != "x" ; then
+ echo "x264.cfg_params :=$X264_CFG_PARAMS --enable-static --enable-pic"
+fi