Hi everyone,

I'm trying to correct all the possible combination of the mpeg Video
configuration options through the dialog box (color model : YUV:4:2:0).

For example, if you select MPEG-1 (or VCD...) for format preset, it
should set the "Progressive frames" checkbox.

I have to say that I have never developed a graphical interface (only
'test-mode' software).

I have try with the patch below at the bottom.

Obviously, it doesn't work :o((.

What should be the correct way to do that (do as for cmodel_update ?) ?
Is there any "handle_event" to create for the checkbox ??

By the way, should I keep going to worj on this MPEG video rendering
options or this method of rendering MPEG2 will be "deprecated" in a
short while, to be replaced by YUV4MPEG instead.

Thanks in advance for any help/answer.
Sincerely yours, Mathieu.

--- hvirtual/cinelerra/filempeg.C       2006-01-28 18:01:55.000000000
+0100
+++ hvirtual-htam20060128/cinelerra/filempeg.C  2006-01-28
20:42:12.000000000 +0100
@@ -1747,6 +1747,13 @@
 int MPEGPreset::handle_event()
 {
        gui->asset->vmpeg_preset = string_to_value(get_text());
+       /* MPEG-1 doesn't support interlacing */
+       switch (gui->asset->vmpeg_preset)
+       {
+               case 0: gui->asset->vmpeg_progressive = 0; break;
+               case 1: gui->asset->vmpeg_progressive = 0; break;
+               case 2: gui->asset->vmpeg_progressive = 0; break;
+       }
        return 1;
 }


--
Mathieu MILLET
mailto:[EMAIL PROTECTED]

_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to