projects
/
goodguy
/
cinelerra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b4017f6
)
fix compile err vicon vframes in with-commercial build (from mehw)
author
Good Guy
<good1.2guy@gmail.com>
Thu, 29 Oct 2020 16:50:56 +0000
(10:50 -0600)
committer
Good Guy
<good1.2guy@gmail.com>
Thu, 29 Oct 2020 16:50:56 +0000
(10:50 -0600)
cinelerra-5.1/cinelerra/dbwindow.C
patch
|
blob
|
history
diff --git
a/cinelerra-5.1/cinelerra/dbwindow.C
b/cinelerra-5.1/cinelerra/dbwindow.C
index efb10b8f4f18bfa354f7d97d090bd298764602c7..980702345f2d48af4ec2a79f3b4238c9bf6fdac1 100644
(file)
--- a/
cinelerra-5.1/cinelerra/dbwindow.C
+++ b/
cinelerra-5.1/cinelerra/dbwindow.C
@@
-389,7
+389,7
@@
VFrame *DbWindowVIcon::frame()
{
if( seq_no >= images.size() )
load_frames(lbox->gui->dwindow->mdb);
{
if( seq_no >= images.size() )
load_frames(lbox->gui->dwindow->mdb);
- return
*images[seq_no]
;
+ return
images[seq_no]->vfrm
;
}
int64_t DbWindowVIcon::set_seq_no(int64_t no)
}
int64_t DbWindowVIcon::set_seq_no(int64_t no)
@@
-418,7
+418,7
@@
void DbWindowVIcon::read_frames(DbWindow::MDb *mdb)
if( frame_id < 0 ) continue;
int swidth = (SWIDTH+1) & ~1, sheight = (SHEIGHT+1) & ~1;
VIFrame *vifrm = new VIFrame(swidth, sheight, BC_YUV420P);
if( frame_id < 0 ) continue;
int swidth = (SWIDTH+1) & ~1, sheight = (SHEIGHT+1) & ~1;
VIFrame *vifrm = new VIFrame(swidth, sheight, BC_YUV420P);
- VFrame *img =
*vi
frm;
+ VFrame *img =
vifrm->v
frm;
memset(img->get_y(),0x00,swidth * sheight);
memset(img->get_u(),0x80,swidth/2 * sheight/2);
memset(img->get_v(),0x80,swidth/2 * sheight/2);
memset(img->get_y(),0x00,swidth * sheight);
memset(img->get_u(),0x80,swidth/2 * sheight/2);
memset(img->get_v(),0x80,swidth/2 * sheight/2);