projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version update
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
fileppm.C
diff --git
a/cinelerra-5.1/cinelerra/fileppm.C
b/cinelerra-5.1/cinelerra/fileppm.C
index 7df92707a11e56d567b9e68424bbff2ec28a1f60..fe10742d254ecff727cfb9795be4b9d507d1064f 100644
(file)
--- a/
cinelerra-5.1/cinelerra/fileppm.C
+++ b/
cinelerra-5.1/cinelerra/fileppm.C
@@
-183,6
+183,15
@@
int FilePPM::write_frame(VFrame *frame, VFrame *output,
return 0;
}
return 0;
}
+int FilePPM::can_copy_from(Asset *asset, int64_t position)
+{
+ if(asset->format == FILE_PPM ||
+ asset->format == FILE_PPM_LIST)
+ return 1;
+
+ return 0;
+}
+
int FilePPM::colormodel_supported(int colormodel)
{
return BC_RGB888;
int FilePPM::colormodel_supported(int colormodel)
{
return BC_RGB888;
@@
-195,16
+204,19
@@
int FilePPM::get_best_colormodel(Asset *asset, int driver)
PPMConfigVideo::PPMConfigVideo(BC_WindowBase *gui, Asset *asset)
: BC_Window(_(PROGRAM_NAME ": Video Compression"),
PPMConfigVideo::PPMConfigVideo(BC_WindowBase *gui, Asset *asset)
: BC_Window(_(PROGRAM_NAME ": Video Compression"),
- gui->get_abs_cursor_x(1), gui->get_abs_cursor_y(1), 200, 100)
+ gui->get_abs_cursor_x(1), gui->get_abs_cursor_y(1),
+ xS(200), yS(100))
{
this->gui = gui;
this->asset = asset;
{
this->gui = gui;
this->asset = asset;
+// *** CONTEXT_HELP ***
+ context_help_set_keyword("Single File Rendering");
}
void PPMConfigVideo::create_objects()
{
lock_window("PPMConfigVideo::create_objects");
}
void PPMConfigVideo::create_objects()
{
lock_window("PPMConfigVideo::create_objects");
- int x =
10, y = 10
;
+ int x =
xS(10), y = yS(10)
;
add_subwindow(new BC_Title(x, y, _("PPM, RGB raw only")));
add_subwindow(new BC_OKButton(this));
show_window(1);
add_subwindow(new BC_Title(x, y, _("PPM, RGB raw only")));
add_subwindow(new BC_OKButton(this));
show_window(1);