root/trunk/uploadr/NOTES

Revision 385, 4.9 kB (checked in by calh, 2 years ago)

note from richard

Line 
1 NOTES
2
3
4
5 Offer a preference to not create thumbnails in the name of speed
6         Accomplish this with special case param of thumb_size = 0 to gm.thumb
7         This will still return the date taken but will not actually do the thumbing
8
9
10
11 In case we ever want to set PROPER EXIF orientation rather than actually rotating pixels,
12 here is the C code:
13
14 long orient = exif["Exif.Image.Orientation"].toLong();
15 if (1 > orient || 8 < orient) {
16         orient = 1;
17 }
18 switch (orient) {
19         case 1:
20                 if (90 == degrees) {
21                         orient = 6;
22                 } else if (-90 == degrees || 270 == degrees) {
23                         orient = 8;
24                 }
25         break;
26         case 2:
27                 if (90 == degrees) {
28                         orient = 5;
29                 } else if (-90 == degrees || 270 == degrees) {
30                         orient = 7;
31                 }
32         break;
33         case 3:
34                 if (90 == degrees) {
35                         orient = 8;
36                 } else if (-90 == degrees || 270 == degrees) {
37                         orient = 6;
38                 }
39         break;
40         case 4:
41                 if (90 == degrees) {
42                         orient = 7;
43                 } else if (-90 == degrees || 270 == degrees) {
44                         orient = 5;
45                 }
46         break;
47         case 5:
48                 if (90 == degrees) {
49                         orient = 4;
50                 } else if (-90 == degrees || 270 == degrees) {
51                         orient = 2;
52                 }
53         break;
54         case 6:
55                 if (90 == degrees) {
56                         orient = 3;
57                 } else if (-90 == degrees || 270 == degrees) {
58                         orient = 1;
59                 }
60         break;
61         case 7:
62                 if (90 == degrees) {
63                         orient = 2;
64                 } else if (-90 == degrees || 270 == degrees) {
65                         orient = 4;
66                 }
67         break;
68         case 8:
69                 if (90 == degrees) {
70                         orient = 1;
71                 } else if (-90 == degrees || 270 == degrees) {
72                         orient = 3;
73                 }
74         break;
75         default:
76         break;
77 }
78 exif["Exif.Image.Orientation"] = uint32_t(orient);
79
80
81
82 Files changed in my hacked up XULRunner locales
83         locale/xx-xx/global/dialog.properties
84         locale/xx-xx/global/wizard.dtd
85         locale/xx-xx/mozapps/update/*
86
87
88
89 Errors building FFmpeg into XPCOM:
90
91 ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
92 /usr/local/lib/libavcodec.a(dsputil_mmx.o) definition of common _mm_flags (size 16)
93 /usr/local/lib/libavcodec.a(h261.o) definition of common _ff_h261_rl_table_store (size 400)
94 /usr/local/lib/libavcodec.a(cabac.o) definition of common _ff_h264_lps_range (size 512)
95 /usr/local/lib/libavcodec.a(cabac.o) definition of common _ff_h264_mlps_state (size 256)
96 /usr/local/lib/libavcodec.a(mpeg12.o) definition of common _ff_mpeg12_static_rl_table_store (size 784)
97 /usr/local/lib/libavcodec.a(msmpeg4data.o) definition of common _ff_msmp4_dc_chroma_vlc (size 32)
98 /usr/local/lib/libavcodec.a(msmpeg4data.o) definition of common _ff_msmp4_dc_luma_vlc (size 32)
99 /usr/local/lib/libavcodec.a(msmpeg4data.o) definition of common _ff_msmp4_mb_i_vlc (size 16)
100 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_4mv_block_pattern_vlc (size 64)
101 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_ac_coeff_table (size 128)
102 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_bfraction_vlc (size 16)
103 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_cbpcy_p_vlc (size 64)
104 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_imode_vlc (size 16)
105 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_mv_diff_vlc (size 64)
106 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_norm2_vlc (size 16)
107 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_norm6_vlc (size 16)
108 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_subblkpat_vlc (size 48)
109 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_ttblk_vlc (size 48)
110 /usr/local/lib/libavcodec.a(vc1data.o) definition of common _ff_vc1_ttmb_vlc (size 48)
111 /usr/local/lib/libavcodec.a(msmpeg4.o) definition of common _ff_inter_intra_vlc (size 16)
112 /usr/local/lib/libavcodec.a(msmpeg4.o) definition of common _ff_mb_non_intra_vlc (size 64)
113 /usr/local/lib/libavcodec.a(cabac.o) definition of common _ff_h264_lps_state (size 128)
114 /usr/local/lib/libavcodec.a(cabac.o) definition of common _ff_h264_mps_state (size 128)
115 /usr/bin/libtool: internal link edit command failed
116
117
118
119 ld: Undefined symbols:
120 __Z11img_convertP9AVPictureiPKS_iii
121 __Z12avcodec_openP14AVCodecContextP7AVCodec
122 __Z13av_read_frameP15AVFormatContextP8AVPacket
123 __Z13avcodec_closeP14AVCodecContext
124 __Z14avpicture_fillP9AVPicturePhiii
125 __Z15av_register_allv
126 __Z18av_open_input_filePP15AVFormatContextPKcP13AVInputFormatiP18AVFormatParameters
127 __Z18avpicture_get_sizeiii
128 __Z19av_close_input_fileP15AVFormatContext
129 __Z19av_find_stream_infoP15AVFormatContext
130 __Z19avcodec_alloc_framev
131 __Z20avcodec_decode_videoP14AVCodecContextP7AVFramePiPhi
132 __Z20avcodec_find_decoder7CodecID
133 __Z7av_freePv
134 __Z9av_mallocj
135
136
137
138 Software Update
139
140 Partials are broken.  Eh.
141
142
143
144 some useful XUL video stuff:
145 http://www.sephiroth.it/weblog/archives/2006/10/xul_and_xulrunner_costarring_f.php
146 http://xulplayer.sourceforge.net/
147
148
149 cal     : i assume there's a good reason why we can't build the xpcom objects in msys/mingw?
150 richard : um
151 richard : i don't think so but i don't completely understand the compatibility issues between binaries out of visual studio and binaries from msys
152 richard : er, mingw's g++
Note: See TracBrowser for help on using the browser.