equal
deleted
inserted
replaced
48 |
48 |
49 const TInt KJpeg_smico_max_width = 48; |
49 const TInt KJpeg_smico_max_width = 48; |
50 const TInt KJpeg_smico_max_height = 48; |
50 const TInt KJpeg_smico_max_height = 48; |
51 const TInt KJpeg_lrgico_max_width = 120; |
51 const TInt KJpeg_lrgico_max_width = 120; |
52 const TInt KJpeg_lrgico_max_height = 120; |
52 const TInt KJpeg_lrgico_max_height = 120; |
|
53 const TInt KJpeg_tn_max_width = 160; |
|
54 const TInt KJpeg_tn_max_height = 160; |
53 const TInt KJpeg_sm_max_width = 640; |
55 const TInt KJpeg_sm_max_width = 640; |
54 const TInt KJpeg_sm_max_height = 480; |
56 const TInt KJpeg_sm_max_height = 480; |
55 const TInt KJpeg_med_max_width = 1024; |
57 const TInt KJpeg_med_max_width = 1024; |
56 const TInt KJpeg_med_max_height = 768; |
58 const TInt KJpeg_med_max_height = 768; |
57 const TInt KJpeg_lrg_max_width = 4096; |
59 const TInt KJpeg_lrg_max_width = 4096; |
217 imageResolution.iHeight <= KJpeg_lrgico_max_height ) |
219 imageResolution.iHeight <= KJpeg_lrgico_max_height ) |
218 { |
220 { |
219 retval = HBufC::NewL( KJpeg_lrg_ico().Length() ); |
221 retval = HBufC::NewL( KJpeg_lrg_ico().Length() ); |
220 retval->Des().Append( KJpeg_lrg_ico() ); |
222 retval->Des().Append( KJpeg_lrg_ico() ); |
221 } |
223 } |
|
224 else if ( imageResolution.iWidth <= KJpeg_tn_max_width && |
|
225 imageResolution.iHeight <= KJpeg_tn_max_height ) |
|
226 { |
|
227 retval = HBufC::NewL( KJpeg_tn().Length() ); |
|
228 retval->Des().Append( KJpeg_tn() ); |
|
229 } |
222 else if ( imageResolution.iWidth <= KJpeg_sm_max_width && |
230 else if ( imageResolution.iWidth <= KJpeg_sm_max_width && |
223 imageResolution.iHeight <= KJpeg_sm_max_height ) |
231 imageResolution.iHeight <= KJpeg_sm_max_height ) |
224 { |
232 { |
225 retval = HBufC::NewL( KJpeg_sm().Length() ); |
233 retval = HBufC::NewL( KJpeg_sm().Length() ); |
226 retval->Des().Append( KJpeg_sm() ); |
234 retval->Des().Append( KJpeg_sm() ); |