aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/image/pdp_imageproc_common.c10
-rw-r--r--system/net/pdp_net.c2
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;
}