Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 113668 Details for
Bug 127026
Requesting a Second Life client ebuild (secondlife)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/secondlife-1.13.3.2-llimagej2coj_debug.patch
secondlife-1.13.3.2-llimagej2coj_debug.patch (text/plain), 3.71 KB, created by
MATSUU Takuto (RETIRED)
on 2007-03-18 15:39:34 UTC
(
hide
)
Description:
files/secondlife-1.13.3.2-llimagej2coj_debug.patch
Filename:
MIME Type:
Creator:
MATSUU Takuto (RETIRED)
Created:
2007-03-18 15:39:34 UTC
Size:
3.71 KB
patch
obsolete
>--- linden/indra/llimagej2coj/llimagej2coj.cpp.orig 2007-02-04 09:52:40.000000000 +0100 >+++ linden/indra/llimagej2coj/llimagej2coj.cpp 2007-02-05 21:09:53.000000000 +0100 >@@ -66,7 +66,8 @@ > sample debug callback expecting no client object > */ > void info_callback(const char *msg, void *client_data) { >- fprintf(stdout, "[INFO] %s", msg); >+ FILE *stream = (FILE*)client_data; >+ fprintf(stream, "[INFO] %s", msg); > } > > >@@ -86,21 +87,23 @@ > // FIXME: Get the comment field out of the texture > // > >- LLTimer decode_timer; >- > opj_dparameters_t parameters; /* decompression parameters */ >+#ifdef _DEBUG > opj_event_mgr_t event_mgr; /* event manager */ >+#endif > opj_image_t *image = NULL; > > opj_dinfo_t* dinfo = NULL; /* handle to a decompressor */ > opj_cio_t *cio = NULL; > > >+#ifdef _DEBUG > /* configure the event callbacks (not required) */ > memset(&event_mgr, 0, sizeof(opj_event_mgr_t)); > event_mgr.error_handler = error_callback; > event_mgr.warning_handler = warning_callback; > event_mgr.info_handler = info_callback; >+#endif > > /* set decoding parameters to default values */ > opj_set_default_decoder_parameters(¶meters); >@@ -116,7 +119,11 @@ > dinfo = opj_create_decompress(CODEC_J2K); > > /* catch events using our callbacks and give a local context */ >- opj_set_event_mgr((opj_common_ptr)dinfo, &event_mgr, stderr); >+#ifdef _DEBUG >+ opj_set_event_mgr((opj_common_ptr)dinfo, &event_mgr, stderr); >+#else >+ opj_set_event_mgr((opj_common_ptr)dinfo, NULL, stderr); >+#endif > > /* setup the decoder decoding parameters using user parameters */ > opj_setup_decoder(dinfo, ¶meters); >@@ -181,10 +188,10 @@ > { > const S32 MAX_COMPS = 5; > opj_cparameters_t parameters; /* compression parameters */ >+#ifdef _DEBUG > opj_event_mgr_t event_mgr; /* event manager */ > >- >- /* >+ /* > configure the event callbacks (not required) > setting of each callback is optional > */ >@@ -192,6 +199,7 @@ > event_mgr.error_handler = error_callback; > event_mgr.warning_handler = warning_callback; > event_mgr.info_handler = info_callback; >+#endif > > /* set encoding parameters to default values */ > opj_set_default_encoder_parameters(¶meters); >@@ -264,7 +272,11 @@ > opj_cinfo_t* cinfo = opj_create_compress(CODEC_J2K); > > /* catch events using our callbacks and give a local context */ >- opj_set_event_mgr((opj_common_ptr)cinfo, &event_mgr, stderr); >+#ifdef _DEBUG >+ opj_set_event_mgr((opj_common_ptr)cinfo, &event_mgr, stderr); >+#else >+ opj_set_event_mgr((opj_common_ptr)cinfo, NULL, stderr); >+#endif > > /* setup the encoder parameters using the current image and using user parameters */ > opj_setup_encoder(cinfo, ¶meters, image); >@@ -309,18 +321,22 @@ > base.updateRawDiscardLevel(); > > opj_dparameters_t parameters; /* decompression parameters */ >+#ifdef _DEBUG > opj_event_mgr_t event_mgr; /* event manager */ >+#endif > opj_image_t *image = NULL; > > opj_dinfo_t* dinfo = NULL; /* handle to a decompressor */ > opj_cio_t *cio = NULL; > > >+#ifdef _DEBUG > /* configure the event callbacks (not required) */ > memset(&event_mgr, 0, sizeof(opj_event_mgr_t)); > event_mgr.error_handler = error_callback; > event_mgr.warning_handler = warning_callback; > event_mgr.info_handler = info_callback; >+#endif > > /* set decoding parameters to default values */ > opj_set_default_decoder_parameters(¶meters); >@@ -336,7 +352,11 @@ > dinfo = opj_create_decompress(CODEC_J2K); > > /* catch events using our callbacks and give a local context */ >- opj_set_event_mgr((opj_common_ptr)dinfo, &event_mgr, stderr); >+#ifdef _DEBUG >+ opj_set_event_mgr((opj_common_ptr)dinfo, &event_mgr, stderr); >+#else >+ opj_set_event_mgr((opj_common_ptr)dinfo, NULL, stderr); >+#endif > > /* setup the decoder decoding parameters using user parameters */ > opj_setup_decoder(dinfo, ¶meters);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 127026
:
87669
|
90814
|
90819
|
92739
|
101806
|
106217
|
106219
|
106221
|
106223
|
106225
|
106253
|
106259
|
106263
|
106265
|
106350
|
106352
|
106354
|
106554
|
106556
|
106558
|
106833
|
106834
|
106839
|
106898
|
106900
|
107290
|
107515
|
107540
|
107542
|
107550
|
107566
|
107598
|
107599
|
107600
|
107601
|
107603
|
108183
|
108224
|
110626
|
110627
|
110629
|
110630
|
110634
|
110636
|
110647
|
110648
|
110649
|
110651
|
110652
|
110654
|
110655
|
110656
|
110696
|
110698
|
111517
|
111519
|
111521
|
113643
|
113644
|
113664
|
113666
| 113668 |
113670
|
135152
|
142612
|
151751
|
151753
|
151755
|
152403
|
152405
|
152481
|
152485
|
152487
|
152745
|
152747
|
152749
|
156521