// Create socket for background process.
uuid_t socket_temp;
sprintf(socket_path, "/tmp/cinelerra.");
+#if defined(__TERMUX__)
+ sprintf(socket_path, "/data/data/com.termux/files/home/tmp/cinelerra.");
+#endif
uuid_generate(socket_temp);
uuid_unparse(socket_temp, socket_path + strlen(socket_path));
SET_TEMP(socket_path);
+#ifdef __I386__ || __x86-64__
#ifndef _COMMERCIALS_H_
#define _COMMERCIALS_H_
#endif
+#endif /* x86 */
\ No newline at end of file
+#ifdef __I386__ || __x86-64__
#ifndef _DBWINDOW_H_
#define _DBWINDOW_H_
#endif
+#endif /* x86 */
\ No newline at end of file
+#ifdef __I386__ || __x86-64__
#ifndef _MEDIA_DB_H_
#define _MEDIA_DB_H_
};
#endif
+#endif /* x86 */
\ No newline at end of file
delete convert_render; convert_render = 0;
delete render; render = 0;
delete mixers_align; mixers_align = 0;
+#ifdef HAVE_COMMERCIALS
commit_commercial();
if( commercials && !commercials->remove_user() ) commercials = 0;
+#endif
close_mixers();
if( speed_edl ) { speed_edl->remove_user(); speed_edl = 0; }
// Save defaults for open plugins
}
}
else if( EQUIV(intercept, 1) ) {
- for(int j = 0; j < slope_len; j++, i++)
+ for(int64_t j = 0; j < slope_len; j++, i++)
output[i] += input[i];
}
else if( !EQUIV(intercept, 0) ) {
- for(int j = 0; j < slope_len; j++, i++)
+ for(int64_t j = 0; j < slope_len; j++, i++)
output[i] += input[i] * intercept;
}
else
+#ifdef __I386__ || __x86-64__
#ifndef __DB_H__
#define __DB_H__
#include <cstring>
};
#endif
+#endif /* x86 */
\ No newline at end of file
#include "filexml.h"
#include "guicast.h"
#include "language.h"
+#if HAVE_LIBDV
#include "libdv.h"
+#endif
#include "libmjpeg.h"
#include "mwindow.h"
#include "picture.h"
int prev_channel;
int w, h;
// Decompressors for different video drivers
+#if HAVE_DV
dv_t *dv;
+#endif
mjpeg_t *mjpeg;
};
w = xS(320);
h = yS(640);
prev_channel = 0;
+#if HAVE_DV
dv = 0;
+#endif
mjpeg = 0;
picture = 0;
this->server = server;
delete channeldb;
delete temp;
+#if HAVE_DV
if(dv) dv_delete(dv);
+#endif
if(mjpeg) mjpeg_delete(mjpeg);
delete picture;
}
{
switch(session->vconfig_in->driver)
{
+#if HAVE_DV
case CAPTURE_FIREWIRE:
case CAPTURE_IEC61883:
// Decompress a DV frame from the driver
frame->get_color_model());
frame->set_opengl_state(VFrame::RAM);
break;
-
+#endif
case VIDEO4LINUX2JPEG:
if(!mjpeg)
mjpeg = mjpeg_new(frame->get_w(),