# Maintainer: goodguy <lists.cinelerra-cv.org>
pkgname=cin
pkgver=5.1
-pkgrel=20160831
+pkgrel=20161002
pkgdesc="Cinelerra git://git.cinelerra-cv.org/goodguy/cinelerra.git ($pkgrel)"
arch=('x86_64')
url="http://www.cinelerra-cv.org"
-%define ver 20160831
+%define ver 20161002
Summary: Multimedia Editing and construction
Name: cinelerra
Version: 5.1
if(debug) printf("AModule::import_samples %d\n", __LINE__);
this->channel = edit->channel;
-if(debug) printf("AModule::import_samples %d speed_fragment_len=%ld\n",
+if(debug) printf("AModule::import_samples %d speed_fragment_len=%jd\n",
__LINE__,
speed_fragment_len);
{
if(debug)
-printf("AModule::import_samples %d channel=%d start_source=%ld len=%d\n", __LINE__, edit->channel, start_source, (int)speed_fragment_len);
+printf("AModule::import_samples %d channel=%d start_source=%jd len=%d\n", __LINE__, edit->channel, start_source, (int)speed_fragment_len);
file->set_audio_position(start_source);
file->set_channel(edit->channel);
result = file->read_samples(speed_buffer, speed_fragment_len);
void AttachmentPoint::reset_status()
{
- if(!(void *)this) printf("AttachmentPoint::reset_status NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::reset_status NULL\n");
start_position = 0;
len = 0;
sample_rate = 0;
int AttachmentPoint::render_init()
{
- if(!(void *)this) printf("AttachmentPoint::render_init NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::render_init NULL\n");
if(plugin_server && plugin->on)
{
// Start new plugin servers if the number of nodes changed.
int AttachmentPoint::attach_virtual_plugin(VirtualNode *virtual_plugin)
{
- if(!(void *)this) printf("AttachmentPoint::attach_virtual_plugin NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::attach_virtual_plugin NULL\n");
int buffer_number = 0;
if(plugin_server && plugin->on)
int AttachmentPoint::multichannel_shared(int search_new)
{
- if(!(void *)this) printf("AttachmentPoint::multichannel_shared NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::multichannel_shared NULL\n");
if(search_new)
{
if(new_virtual_plugins.total &&
int AttachmentPoint::singlechannel()
{
- if(!(void *)this) printf("AttachmentPoint::singlechannel NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::singlechannel NULL\n");
if(plugin_server && !plugin_server->multichannel) return 1;
return 0;
}
void AttachmentPoint::render_gui(void *data, PluginServer *server)
{
//printf("AttachmentPoint::render_gui 1 %p %p\n", server, plugin_servers.get(0));
- if(!(void *)this) printf("AttachmentPoint::render_gui 1 NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::render_gui 1 NULL\n");
// Discard if not 1st plugin server, so single channel plugins don't get double GUI updates
if(server != plugin_servers.get(0)) return;
void AttachmentPoint::render_gui(void *data, int size, PluginServer *server)
{
- if(!(void *)this) printf("AttachmentPoint::render_gui 2 NULL\n");
+ void *This = this;
+ if(!This) printf("AttachmentPoint::render_gui 2 NULL\n");
// Discard if not 1st plugin server, so single channel plugins don't get double GUI updates
if(server != plugin_servers.get(0)) return;
int AttachmentPoint::dump(FILE *fp)
{
- if((void *)this)
+ void *This = this;
+ if(This)
{
fprintf(fp," Attachmentpoint this=%p virtual_plugins=%d\n", this, new_virtual_plugins.total);
if(plugin_server) plugin_server->dump(fp);
// report ranges
clip_start = start_time - video.origin();
clip_end = end_time - video.origin();
- printf(" %f-%f (%f), %f-%f %ld-%ld",
+ printf(" %f-%f (%f), %f-%f %jd-%jd",
start_time, end_time, end_time-start_time, clip_start, clip_end,
video.frame_count(clip_start), video.frame_count(clip_end));
return 0;
ip = (short (*)[4]) image;
rp = ip[0];
for (row=0; row < height; row++, ip+=width) {
- if (row & (jh.sraw >> 1))
+ if (row & (jh.sraw >> 1)) {
for (col=0; col < width; col+=2)
for (c=1; c < 3; c++)
if (row == height-1)
ip[col][c] = ip[col-width][c];
else ip[col][c] = (ip[col-width][c] + ip[col+width][c] + 1) >> 1;
+ }
for (col=1; col < width; col+=2)
for (c=1; c < 3; c++)
if (col == width-1)
int64_t pos = index_state->pos(ch);
if( pos != aud->curr_pos ) {
if( abs(pos-aud->curr_pos) > 1 )
-printf("audio%d pad %ld %ld (%ld)\n", aud->idx, pos, aud->curr_pos, pos-aud->curr_pos);
+printf("audio%d pad %jd %jd (%jd)\n", aud->idx, pos, aud->curr_pos, pos-aud->curr_pos);
index_state->pad_data(ch, nch, aud->curr_pos);
}
av_frame_unref(frame);
cp += snprintf(cp,ep-cp, _("file path:%s\n"), path);
int64_t bytes = mpeg3_get_bytes(fd);
char string[BCTEXTLEN];
- sprintf(string,"%ld",bytes);
+ sprintf(string,"%jd",bytes);
Units::punctuate(string);
cp += snprintf(cp,ep-cp, _("size: %s"), string);
cp += snprintf(cp,ep-cp, _(" v%d %s %dx%d"), vtrk, cmodel, width, height);
double frame_rate = mpeg3_frame_rate(fd, vtrk);
int64_t frames = mpeg3_video_frames(fd, vtrk);
- cp += snprintf(cp,ep-cp, _(" (%5.2f), %ld frames"), frame_rate, frames);
+ cp += snprintf(cp,ep-cp, _(" (%5.2f), %jd frames"), frame_rate, frames);
if( frame_rate > 0 ) {
double secs = (double)frames / frame_rate;
cp += snprintf(cp,ep-cp, _(" (%0.3f secs)"),secs);
int sample_rate = mpeg3_sample_rate(fd, atrk);
cp += snprintf(cp,ep-cp, _(" ch%d (%d)"), channels, sample_rate);
int64_t samples = mpeg3_audio_samples(fd, atrk);
- cp += snprintf(cp,ep-cp, " %ld",samples);
+ cp += snprintf(cp,ep-cp, " %jd",samples);
int64_t nudge = mpeg3_get_audio_nudge(fd, atrk);
*cp++ = nudge >= 0 ? '+' : (nudge=-nudge, '-');
- cp += snprintf(cp,ep-cp, _("%ld samples"),nudge);
+ cp += snprintf(cp,ep-cp, _("%jd samples"),nudge);
if( sample_rate > 0 ) {
double secs = (double)(samples+nudge) / sample_rate;
cp += snprintf(cp,ep-cp, _(" (%0.3f secs)"),secs);
printf("FrameCache::dump 1 %d\n", total());
FrameCacheItem *item = (FrameCacheItem *)first;
while( item ) {
- printf(" position=%jd frame_rate=%f age=%d size=%jd\n",
+ printf(" position=%jd frame_rate=%f age=%d size=%ld\n",
item->position, item->frame_rate, item->age,
item->data->get_data_size());
item = (FrameCacheItem*)item->next;
int Garbage::remove_user()
{
- if(!(void *)this) return 0;
+ void *This = this;
+ if(!This) return 0;
//printf("Garbage::remove_user %d lock=%p users=%d\n", __LINE__, lock, users);
if(users <= 0) {
"void main() {\n" \
" vec4 canvas = texture2D(tex2, gl_FragCoord.xy / tex2_dimensions);\n" \
" vec4 result;\n" \
- " result.rgb = "SS(COLOR_##FN(1.0, gl_FragColor.rgb, gl_FragColor.a, canvas.rgb, canvas.a))";\n" \
- " result.a = "SS(ALPHA_##FN(1.0, gl_FragColor.a, canvas.a))";\n" \
+ " result.rgb = " SS(COLOR_##FN(1.0, gl_FragColor.rgb, gl_FragColor.a, canvas.rgb, canvas.a)) ";\n" \
+ " result.a = " SS(ALPHA_##FN(1.0, gl_FragColor.a, canvas.a)) ";\n" \
" gl_FragColor = mix(canvas, result, alpha);\n" \
"}\n"
"void main() {\n" \
" vec4 canvas = texture2D(tex2, gl_FragCoord.xy / tex2_dimensions);\n" \
" vec4 result;\n" \
- " result.r = "SS(COLOR_##FN(1.0, gl_FragColor.r, gl_FragColor.a, canvas.r, canvas.a))";\n" \
- " result.g = "SS(COLOR_##FN(1.0, gl_FragColor.g, gl_FragColor.a, canvas.g, canvas.a))";\n" \
- " result.b = "SS(COLOR_##FN(1.0, gl_FragColor.b, gl_FragColor.a, canvas.b, canvas.a))";\n" \
- " result.a = "SS(ALPHA_##FN(1.0, gl_FragColor.a, canvas.a))";\n" \
+ " result.r = " SS(COLOR_##FN(1.0, gl_FragColor.r, gl_FragColor.a, canvas.r, canvas.a)) ";\n" \
+ " result.g = " SS(COLOR_##FN(1.0, gl_FragColor.g, gl_FragColor.a, canvas.g, canvas.a)) ";\n" \
+ " result.b = " SS(COLOR_##FN(1.0, gl_FragColor.b, gl_FragColor.a, canvas.b, canvas.a)) ";\n" \
+ " result.a = " SS(ALPHA_##FN(1.0, gl_FragColor.a, canvas.a)) ";\n" \
" result = clamp(result, 0.0, 1.0);\n" \
" gl_FragColor = mix(canvas, result, alpha);\n" \
"}\n"
char value[64];
sprintf(value,"%ld",ftell(fp));
script_filesz->update(value);
- sprintf(value,"%ld",script_line_no);
+ sprintf(value,"%jd",script_line_no);
script_lines->update(value);
sprintf(value,"%d",script.size());
script_entries->update(value);
- sprintf(value,"%ld",script_text_lines);
+ sprintf(value,"%jd",script_text_lines);
script_texts->update(value);
int hw = 2*script_scroll->get_h();
script_scroll->update_length(script.size(), script_entry_no, hw, 0);
int64_t end = start + sedit->length;
char *text = sedit->get_text();
if( *text ) {
- fprintf(fp, "{%ld}{%ld}%s\n", start, end-1, text);
+ fprintf(fp, "{%jd}{%jd}%s\n", start, end-1, text);
}
start = end;
}
void VAttachmentPoint::delete_buffer_vector()
{
- if(!(void *)this) printf("VAttachmentPoint::delete_buffer_vector NULL\n");
+ void *This = this;
+ if(!This) printf("VAttachmentPoint::delete_buffer_vector NULL\n");
if(buffer_vector)
{
for(int i = 0; i < virtual_plugins.total; i++)
void VAttachmentPoint::new_buffer_vector(int width, int height, int colormodel)
{
- if(!(void *)this) printf("VAttachmentPoint::new_buffer_vector NULL\n");
+ void *This = this;
+ if(!This) printf("VAttachmentPoint::new_buffer_vector NULL\n");
if(buffer_vector &&
(width != buffer_vector[0]->get_w() ||
height != buffer_vector[0]->get_h() ||
int debug_render,
int use_opengl)
{
- if(!(void *)this) printf("VAttachmentPoint::render NULL\n");
+ void *This = this;
+ if(!This) printf("VAttachmentPoint::render NULL\n");
if(!plugin_server || !plugin->on) return;
if(debug_render)
if(out_x2 > out_x1 && out_y2 > out_y1 &&
in_x2 > in_x1 && in_y2 > in_y1)
{
- IntAuto *mode_keyframe = 0;
- mode_keyframe =
+ Auto *auto_keyframe = 0;
+ IntAuto *mode_keyframe =
(IntAuto*)track->automation->autos[AUTOMATION_MODE]->get_prev_auto(
- start_position_project, PLAY_FORWARD, (Auto* &)mode_keyframe);
+ start_position_project, PLAY_FORWARD, auto_keyframe);
int mode = mode_keyframe->value;
//printf("VModule::render %d %p %ld %d\n", __LINE__, current_edit, start_position_project, direction);
if(debug_render)
- printf(" VModule::render %d %d %ld %s transition=%p opengl=%d current_edit=%p output=%p\n",
+ printf(" VModule::render %d %d %jd %s transition=%p opengl=%d current_edit=%p output=%p\n",
__LINE__,
use_nudge,
start_position_project,
time_t t = (time_t) idb.clip_views.Access_time();
long dt = st.tv_sec - t;
// 3 weeks + access count days
- if( dt < 3*7*24*60*60 + idb.clip_views.Access_count()*24*60*60 )
+ if( dt < 3*7*24*60*60 + (long)(idb.clip_views.Access_count()*24*60*60) )
continue;
del_clip_set(&idb, idb.clip_set.id());
}
printf(" root_info_id = %d\n",ip->root_info_id);
printf(" index_info_id = %d\n",ip->index_info_id);
printf(" page_info_id = %d\n",ip->page_info_id);
- printf(" oldness = %ld\n",ip->oldness);
- printf(" newness = %ld\n",ip->newness);
+ printf(" oldness = %jd\n",ip->oldness);
+ printf(" newness = %jd\n",ip->newness);
return 0;
}
-cin (1:5.1.20160831) unstable; urgency=low
+cin (1:5.1.20161002) unstable; urgency=low
[ guy goode ]
Source: cin
Section: video
Priority: optional
-Standards-Version: 5.1.20160831
+Standards-Version: 5.1.20161002
Maintainer: mailing list <cinelerra@lists.cinelerra-cv.org>
Homepage: http://www.cinelerra-cv.org/
Build-Depends: nasm, yasm, g++, gdb, build-essential, e2fsprogs,
char string[1024];
XGetErrorText(event->display, event->error_code, string, 1024);
fprintf(stderr, "BC_Signals::x_error_handler: error_code=%d opcode=%d,%d id=0x%jx %s\n",
- event->error_code, event->request_code, event->minor_code, event->resourceid, string);
+ event->error_code, event->request_code, event->minor_code,
+ (int64_t)event->resourceid, string);
return 0;
}
#define GL_STD_FRAG(FN) static const char *blend_##FN##_frag = \
" vec4 result;\n" \
- " result.rgb = "SS(COLOR_##FN(1.0, src_color.rgb, src_color.a, dst_color.rgb, dst_color.a))";\n" \
- " result.a = "SS(ALPHA_##FN(1.0, src_color.a, dst_color.a))";\n" \
+ " result.rgb = " SS(COLOR_##FN(1.0, src_color.rgb, src_color.a, dst_color.rgb, dst_color.a)) ";\n" \
+ " result.a = " SS(ALPHA_##FN(1.0, src_color.a, dst_color.a))";\n" \
#define GL_VEC_FRAG(FN) static const char *blend_##FN##_frag = \
" vec4 result;\n" \
- " result.r = "SS(COLOR_##FN(1.0, src_color.r, src_color.a, dst_color.r, dst_color.a))";\n" \
- " result.g = "SS(COLOR_##FN(1.0, src_color.g, src_color.a, dst_color.g, dst_color.a))";\n" \
- " result.b = "SS(COLOR_##FN(1.0, src_color.b, src_color.a, dst_color.b, dst_color.a))";\n" \
- " result.a = "SS(ALPHA_##FN(1.0, src_color.a, dst_color.a))";\n" \
+ " result.r = " SS(COLOR_##FN(1.0, src_color.r, src_color.a, dst_color.r, dst_color.a)) ";\n" \
+ " result.g = " SS(COLOR_##FN(1.0, src_color.g, src_color.a, dst_color.g, dst_color.a)) ";\n" \
+ " result.b = " SS(COLOR_##FN(1.0, src_color.b, src_color.a, dst_color.b, dst_color.a)) ";\n" \
+ " result.a = " SS(ALPHA_##FN(1.0, src_color.a, dst_color.a)) ";\n" \
" result = clamp(result, 0.0, 1.0);\n" \
#undef mabs