[Cin] Hit the wall trying to pass variable from one class to another
Andrew Randrianasulu
randrianasulu at gmail.com
Fri Dec 17 14:00:33 CET 2021
I tried to pass variable into
class BD_BatchRenderJob : public BatchRenderJob
{
public:
static int get_udfs_mount(char *udfs, char *mopts, char *mntpt)
;
BD_BatchRenderJob(Preferences *preferences, int labeled, int fa
rmed);
char *create_script(EDL *edl, ArrayList<Indexable *> *idxbls);
int tsmuxered;
};
from
class CreateBD_Thread : public BC_DialogThread
{
static const int64_t BD_SIZE;
static const int BD_STREAMS, BD_WIDTH, BD_HEIGHT;
static const double BD_ASPECT_WIDTH, BD_ASPECT_HEIGHT;
static const double BD_WIDE_ASPECT_WIDTH, BD_WIDE_ASPECT_HEIGHT
;
static const int BD_MAX_BITRATE, BD_CHANNELS, BD_WIDE_CHANNELS;
static const double BD_FRAMERATE, BD_SAMPLERATE, BD_KAUDIO_RATE
;
static const int BD_INTERLACE_MODE;
public:
CreateBD_Thread(MWindow *mwindow);
~CreateBD_Thread();
void handle_close_event(int result);
BC_Window* new_gui();
int option_presets();
int create_bd_script(const char *path, EDL *edl);
int create_bd_jobs(ArrayList<BatchRenderJob*> *jobs, const char
*asset_dir);
int insert_video_plugin(const char *title, KeyFrame *default_ke
yframe);
int resize_tracks();
MWindow *mwindow;
CreateBD_GUI *gui;
char asset_title[BCTEXTLEN];
char tmp_path[BCTEXTLEN];
char use_profile[BCTEXTLEN];
int use_deinterlace, use_inverse_telecine;
int use_scale, use_resize_tracks;
int use_wide_audio, use_farmed;
int use_histogram, use_labeled;
int use_standard;
int use_tsmuxer;
int64_t bd_size;
int bd_width;
int bd_height;
double bd_aspect_width;
double bd_aspect_height;
double bd_framerate;
int bd_samplerate;
int bd_max_bitrate;
double bd_kaudio_rate;
int bd_interlace_mode;
int max_w, max_h;
BD_BatchRenderJob *batchrender;
};
but guess I do something wrong because just calling
//batchrender->tsmuxered = use_tsmuxer;
form
void CreateBD_Thread::handle_close_event(int result)
result in crash (
NOT WORKING (as far as this functionality is concerned) patchset
attached...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ffmpeg-4.4-bluray-lpcm-encoder.patch
Type: text/x-diff
Size: 12560 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-ffmpeg-4.4-bluray-lpcm-patch-for-5.1.patch
Type: text/x-diff
Size: 1610 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Improve-truehd-decoder-encoder-from-ffmpeg.git.patch
Type: text/x-diff
Size: 14493 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-simple-m2ts-lpcm-profile.patch
Type: text/x-diff
Size: 624 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-EXPERIMENT-update-bdwrite-for-lpcm-hevc.patch
Type: text/x-diff
Size: 3357 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-EXPERIMENTAL-add-variable-chapter-interval-to-bdwrit.patch
Type: text/x-diff
Size: 2066 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0021.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-EXPERIMENTAL-add-bd_profile-array-to-bdcreate.C-so-i.patch
Type: text/x-diff
Size: 1841 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Fix-bdcreate.C-layout.patch
Type: text/x-diff
Size: 1650 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0023.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-EXPERIMENTAL-attempt-to-get-value-from-popuptextbox.patch
Type: text/x-diff
Size: 2329 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-EXPERIMENTAL-bdcreate-add-m2ts-profiles-part-1.patch
Type: text/x-diff
Size: 3805 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0025.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0019-EXPERIMENTAL-fix-layout-in-bdcreate-after-tsmuxer-ch.patch
Type: text/x-diff
Size: 2822 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0026.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-truehd-experimental-bluray-profile.patch
Type: text/x-diff
Size: 664 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0027.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0018-EXPERIMENTAL-add-tsmuxer-checkbox.patch
Type: text/x-diff
Size: 3633 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0028.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0017-EXPERIMENTAL-add-truehd-audio-profile-for-bdcreate.C.patch
Type: text/x-diff
Size: 900 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0029.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-Rename-m2ts_pcm.m2ts-to-bluray_lpcm.m2ts.patch
Type: text/x-diff
Size: 652 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0030.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0020-NOT-YET.patch
Type: text/x-diff
Size: 3121 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20211217/8ffcde48/attachment-0031.bin>
More information about the Cin
mailing list