Hi Manuel,

thanks for your reply, your e-mails encouraging me.
I think that in first step this can be quick and more simpler solution.
At first i will try this scale down with VEISP scaler-divider (size divided 
by 1, 2 and 4 factors) and then if this is done and if you can get me some 
instructions i can write more flexible solution from your first proposal.
For me, the best solution would be standard VGA and QVGA resolutions. Okay, 
i can crop image from 720x576 to 640x480 by software and than scale down 
with VEISP divider if i need but this is rough solution with unnecessary 
copying. 
For simpler solution i suppose that i need to set MACC_ISP_SCALER_FACTOR as 
you mentioned to 1, 2 or 4 but i am not sure what else should be done? This 
registers are not described in detail.
This days i am locking in your PoC jpeg encoder as you mentioned before and 
i hope that i will succeed to scale down source image by VEISP divider.

Best regards,
Milos


On Monday, October 24, 2016 at 7:38:56 PM UTC+2, Manuel Braga wrote:
>
> Hi. 
>
> On Fri, 21 Oct 2016 03:19:46 -0700 (PDT) Milos Ladni 
> <milosla...@gmail.com <javascript:>> wrote: 
> > Hi everyone, 
> > 
> > Because there are PoC of hardware JPEG encoding and decoding, i am 
> > now interesting of hw scaling.. 
> > Does does anyone tried to scale image (raw yuv 4:2:2 4:2:0 or rgb) 
> > with A20 hardware? 
> > How can i do this? I need scaler to scale image from one resolution 
> > to another. 
> > Concretely i read frame from tvin 720x576 4:2:0 and convert it to 
> > jpeg with libjpegturbo, but i want to switch to hw scaler-encoder 
>
> I forgot last time, there is another way from what was writing in the 
> previous email, but is only better if what is need is only a scale down 
> image at multiple of image sizes (size divided by 1, 2 and 4 factors) 
>
> As said, the VEISP has a scaler that can use arbitrary scale factors 
> (within a min/max), but doesn't need to use it, because when configured 
> to (also) output raw pixels is possible to choose the outputted size. 
> For your example of a source of 720x576, it can output (simultaneous 
> when encoding) the sizes 720x576 or 360x288 or 180x144. 
>
> If this isn't what you are looking or instead also wants to correct 
> the aspect ratio to get square pixels, then the only option is to use 
> the arbitrary scale factor scaler, as talked in the other email. 
>
>
> > conversion now. The best solution would be 
> > {[raw image] -> [scaler] -> [raw image]} 
> >  but alternative solution can be 
> > {[raw image] -> [scaler -> encoder (jpeg-h264)] -> [compressed 
> > image-stream]} 
> > Can i use ISP as separated block or i need to use it as part of 
> > jpeg-h264 encoder? 
> > Can i utilize G2D for this purpose for example? 
> > Does anyone tried anything similar with A20? 
> > 
>
> -- 
> Manuel Braga 
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to