Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
The compression setting (RLE) is independent of the truncated colour vs
palette. Given a pixel value with 8 bits of precision:

RRRRRRRR GGGGGGGG BBBBBBBB

Can be encoded in the following ways:

0RRRRRGG GGGBBBBB (X1 R5 G5 B5)
RRRRRGGG GGGBBBBB (R5 G6 B5)
0000RRRR GGGGBBBB (X4 R4 G4 B4)

Or as a 16 bit value as an index to a palette. The phone screen doesn't
have 8 bits of colour precision anyway, but I prefer the palette method
since it won't lose any colour information. It will however lead to
a larger file for images like photographs where no two pixels have
exactly the same colour anyway.

Roger
------=_NextPart_000_0073_01C4EFE9.A3FB2460
Content-Type: text/plain;
format=flowed;
name="err.txt";
reply-type=original
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="err.txt"

An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
File "/home/space/bitpim/calendarentryeditor.py", line 230, in OnAllday
self.__w['start'].SetAllday(v)
File "/home/space/bitpim/calendarentryeditor.py", line 949, in SetAllday
v=self.GetValue()
File "/home/space/bitpim/calendarentryeditor.py", line 937, in GetValue
elif res[3]==12: # 12 am
IndexError: list index out of range

Variables by last 8 frames, innermost last

Frame ? in bp.py at line 79
profile = <function profile at 0x40301bc4>
__file__ = 'bp.py'
__name__ = '__main__'
__doc__ = 'Main entry point to Bitpim\n\nIt invokes BitPim in gui or commandline mode as a

Frame run in /home/space/bitpim/gui.py at line 361
args = (['bp.py'],)
m = <gui.MainApp; proxy of C++ wxPyApp instance at _e89e3a08_p_wxPyApp>

Frame MainLoop in /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py at line 5320
self = <gui.MainApp; proxy of C++ wxPyApp instance at _e89e3a08_p_wxPyApp>

Frame MainLoop in /usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode/wx/_core.py at line 4781
args = (<gui.MainApp; proxy of C++ wxPyApp instance at _e89e3a08_p_wxPyApp>,)
kwargs = Keys []
{}

Frame OnAllday in /home/space/bitpim/calendarentryeditor.py at line 230
self = <calendarentryeditor.GeneralEditor; proxy of C++ wxPanel instance at _f0cf2c08_p
evt = <wx._core.CommandEvent; proxy of C++ wxCommandEvent instance at _c0d8ffbf_p_wxCo
v = True

Frame SetAllday in /home/space/bitpim/calendarentryeditor.py at line 949
self = <calendarentryeditor.DVDateTimeControl; proxy of C++ wxPanel instance at _a04467
allday = True
v = None

Frame GetValue in /home/space/bitpim/calendarentryeditor.py at line 937
digits = '0123456789'
val = None
i = u'M'
res = []
self = <calendarentryeditor.DVDateTimeControl; proxy of C++ wxPanel instance at _a04467
str = u' . . : M'



------=_NextPart_000_0073_01C4EFE9.A3FB2460--

Loading...