int Cursor_::draw(int flash, long selectionstart, long selectionend, long zoom_sample, long viewstart, int vertical)
{
return 0;
+#if 0
if(canvas->get_h() * canvas->get_w() == 0) return 1;
if(zoom_sample == 0) return 1; // no canvas
canvas->set_opaque();
}
if(flash) canvas->flash();
+#endif
}
int Cursor_::resize(int w, int h)
#include "exportedl.h"
#include "tracks.h"
#include "transition.h"
-
+#if defined (__FreeBSD__)
+#include <libgen.h>
+#endif
#include <ctype.h>
#include <string.h>
#ifdef HAVE_ISOFS
#include <linux/iso_fs.h>
#endif
+#if defined(__FreeBSD__)
+#include <isofs/cd9660/iso.h>
+#endif
// check for isofs volume_id for dvd/cdrom
data = new char[index_state->index_start];
temp = fread(data, index_state->index_start - sizeof(int64_t), 1, fd);
- if(!temp) return 1;
+ if(!temp) { delete [] data;
+ return 1;}
data[index_state->index_start - sizeof(int64_t)] = 0;
FileXML xml;
if( memcmp(version, MARKER_MAGIC_VERSION, vsz) ) {
eprintf(_("IndexState::read_markers marker file version mismatched\n: %s\n"),
marker_path);
+ fclose(fp);
return 1;
}
ret = read_marks(fp);
c.r = color>>16; c.g = color>>8; c.b = color>>0; c.a = 0xff;
if( BC_CModels::has_alpha(colormodel) && // fast path
BC_CModels::calculate_pixelsize(colormodel) == sizeof(unsigned) ) {
- const unsigned gap_rgba = (0xff<<24) |
+ const unsigned gap_rgba = ((uint32_t)(0xff)<<24) |
(gap_grey<<16) | (gap_grey<<8) | (gap_grey<<0);
if( th > 0 ) {
unsigned *bp = (unsigned *)bar_rows[0];
}
}
-void trace_info::set_owner() { owner = pthread_self(); }
+void trace_info::set_owner() { owner = (unsigned long)pthread_self(); }
void trace_info::unset_owner() { owner = 0; }
void BC_Trace::dump_locks(FILE *fp)
fprintf(fp," %p %s, %s %p%s",
p->info, p->title, p->loc,
(void*)p->tid, p->is_owner ? " *" : "");
- if( p->info->owner && p->info->owner != p->tid )
+ if( p->info->owner && p->info->owner != (unsigned long)p->tid )
fprintf(fp," %p", (void*)p->info->owner);
fprintf(fp,"\n");
}
#include "bcwindowbase.inc"
#include "sizes.h"
+#if defined (__FreeBSD__)
+#define dirent64 dirent
+#define readdir64 readdir
+#endif
+
class FileItem
{
public:
#include <stdint.h>
#include <stdio.h>
#include <string.h>
+#if defined (__linux__)
#include <endian.h>
#include <byteswap.h>
+#endif
+#if defined (__FreeBSD__)
+#include <sys/endian.h>
+#endif
#include <iconv.h>
#include <sys/stat.h>
#include <fontconfig/fontconfig.h>
ext=$(lastword $(subst ., ,$(1)))
tarball=$(if $($(1).git),$(1).git,$(lastword $(sort $(wildcard src/$(1)*.tar.*))))
unpack=$(call unpack_$(call ext,$(1)),$(1))
-unpack_git=git clone $($(1)) $(1)
+unpack_git=git clone --depth 1 $($(1)) $(1)
unpack_gz=tar -xzf $(1)
unpack_bz2=tar -xjf $(1)
unpack_xz=tar -xJf $(1)
install:
cp -a $(ver_mjpegtools)/mpeg2enc/mpeg2enc $(BINDIR)/.
cp -a $(ver_mjpegtools)/mplex/mplex $(BINDIR)/.
+
+objrem:
+ find . -type f -name '*.o' -delete
else
# not WANT_CIN_3RDPARTY
all: