diff options
author | N.N. <sevyves@users.sourceforge.net> | 2009-08-15 09:58:36 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2009-08-15 09:58:36 +0000 |
commit | beb0e755cdeda58dce45e96ae6d7789548c0c298 (patch) | |
tree | dc03d6889d690aa5da65a4f6b26df3bbd3e86202 /system | |
parent | 4a87d7a76e84b9b5a98207861b28873e0f317c32 (diff) |
removed 1024x1024 limitation
svn path=/trunk/externals/pdp/; revision=11918
Diffstat (limited to 'system')
-rw-r--r-- | system/image/pdp_imageproc_common.c | 10 | ||||
-rw-r--r-- | system/net/pdp_net.c | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/system/image/pdp_imageproc_common.c b/system/image/pdp_imageproc_common.c index a84fa0b..68bd8b8 100644 --- a/system/image/pdp_imageproc_common.c +++ b/system/image/pdp_imageproc_common.c @@ -41,7 +41,9 @@ u32 pdp_imageproc_legalwidth(int i) { - if (i>1024) return 1024; + // sevy : we don't see no need for that limitation + // has been tested on linux with 1280x1024 without problems + // if (i>1024) return 1024; if (i>0) return ((((i-1)>>3)+1)<<3); return 8; @@ -49,13 +51,13 @@ u32 pdp_imageproc_legalwidth(int i) u32 pdp_imageproc_legalheight(int i) { - if (i>1024) return 1024; + // if (i>1024) return 1024; if (i>0) return ((((i-1)>>3)+1)<<3); return 8; } u32 pdp_imageproc_legalwidth_round_down(int i) { - if (i>1024) return 1024; + // if (i>1024) return 1024; if (i>8) return ((i>>3)<<3); return 8; @@ -63,7 +65,7 @@ u32 pdp_imageproc_legalwidth_round_down(int i) u32 pdp_imageproc_legalheight_round_down(int i) { - if (i>1024) return 1024; + // if (i>1024) return 1024; if (i>8) return ((i>>3)<<3); return 8; } diff --git a/system/net/pdp_net.c b/system/net/pdp_net.c index 04c97d6..522fa55 100644 --- a/system/net/pdp_net.c +++ b/system/net/pdp_net.c @@ -564,7 +564,7 @@ void pdp_udp_sender_sleepperiod(t_pdp_udp_sender *x, unsigned int sleepperiod) void pdp_udp_sender_udp_packet_size(t_pdp_udp_sender *x, unsigned int udp_packet_size) { int i = (int)udp_packet_size - sizeof(t_pdp_udp_header); - if (i < 1024) i = 1024; + // if (i < 1024) i = 1024; if (i > PDP_UDP_BUFSIZE) i = PDP_UDP_BUFSIZE; x->x_udp_payload_size = i; } |