[linux-sunxi] It seems that AllWinner released media codec source code

2015-05-18 Thread jacky lau
At least the source code of mpeg2, mpeg4, jpeg, h.264 decode library has been 
released today: github.com/allwinner-zh/media-codec

Well done, allwinner. Hope encode library will follow.

-- 
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.


[linux-sunxi] Does anyone success encode image to jpg stream by using allwinner media-codec library?

2015-05-15 Thread jacky lau
Hi, all. I'm writing a program that encode image (grab from camera sensor) to 
jpg file. I saw there ia a function named AWJpecEnc() in allwinner media-codec 
library, so I use it. But when I call this function, the cpu load up to 100% 
and this function don't return, it seems that this function enter an infinite 
loop. Does anyone success encode image to jpg stream by using allwinner 
media-codec library?

-- 
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.


[linux-sunxi] g2d rotation has poor performance, is it normal?

2015-02-04 Thread jacky lau
Hi, all. I'm capturing image from csi, with yuv420 pixel format 
(G2D_FMT_PYUV420UVC) and the size is 1280x720. I need to rotate the image, 
as csi don't support rotation, so I employ g2d.
But the rotation performance is very poor. I meansure the performance by 
calculating how many time g2d_wait_cmd_finish() used. It's about 60ms per 
frame! This is too slow, is it normal?

-- 
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.


[linux-sunxi] Re: g2d rotation has poor performance, is it normal?

2015-02-04 Thread jacky lau
I'm using a10 and linux-sunxi kernel 3.4 from linux-sunxi github repository.

在 2015年2月4日星期三 UTC+8下午11:22:14,jacky lau写道:

 Hi, all. I'm capturing image from csi, with yuv420 pixel format 
 (G2D_FMT_PYUV420UVC) and the size is 1280x720. I need to rotate the image, 
 as csi don't support rotation, so I employ g2d.
 But the rotation performance is very poor. I meansure the performance by 
 calculating how many time g2d_wait_cmd_finish() used. It's about 60ms per 
 frame! This is too slow, is it normal?



-- 
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.


Re: Re: [linux-sunxi] Allwinner documentation (hardware datasheet, user manual) for A10, A10s, A13, A20, A31, A31s

2014-10-13 Thread jacky lau
I agree with you and Jhon Yi. Developing a soc is not too hard now, getting 
customers is harder and more important. I hope the market will force all 
China Soc company more open. But before that happen, I don't think they 
will become more open.
They don't have experience in working with the open source community, if you 
want 
them to be more open, you need to do more communicate with them. And 
remember, to them, neither the law nor the spirit of free software, but making 
money is paramount. Tell them they will get more customers, make more money 
and prove it, then they will follow.

在 2014年10月11日星期六UTC+8下午10时53分48秒,Jon Smirl写道:

 On Sat, Oct 11, 2014 at 10:31 AM, jacky lau i90...@gmail.com 
 javascript: wrote: 
  A big client will buy thousands of chips once. Are there any relation 
  between big client and user manual publishing? No. So they don't think 
 it's 
  necessary to open their private property. When you are a big client, you 
 are 
  VIP, all document and source code is open to you. And if publish all 
  technical documentation, competitors will know some technical secret 
 (e.g. 
  bug;) they don't want them to know. 
  Open world is beautiful, but they will not actively participate if there 
 is 
  no return. Why some China soc company publish some documents and source 
 code 
  now? I think this is mainly for marketing. But no matter how, VIP 
 priority. 

 Right now Allwinner is only good for tablets and STBs because 
 Allwinner supplies turnkey solutions. If documentation were more open 
 other applications could be developed. If customer can't get software 
 working for these other applications, they won't buy thousands of 
 chips. So if Allwinner wants to survive past the end of the tablet fad 
 they have to start developing these other markets. Otherwise when the 
 tablet fad is over it will be the end of Allwinner. 

 You also over estimate the value of technical secrets.  What is the 
 point of putting a secret h.264 encode/decode unit on the chip if half 
 of your customers can't get it working?  Obviously Rockchip knows how 
 to make h.264 encode/decode since they have a similar unit on their 
 chip. And so does Freescale, TI, ST, etc. -- there is no big secret in 
 making h.264 hardware for people familiar with how to do it (hint, it 
 is an ISO standard).  So by keeping the documentation secret you hide 
 nothing significant from your competitors and much, much worse -- you 
 keep your own customers from using the hardware they bought.  Think 
 about it --- which is more important - hiding something form a 
 competitor that they probably already know, or getting your customers 
 to ship and buy more chips? 

 Bottom line - which one brings cash in the door - secret documentation 
 or getting as many customers as possible to ship? 


  
  在 2014年10月6日星期一UTC+8下午8时55分30秒,RFat写道: 
  
  Hi Kevin, 
  
  Publishing the user manuals will certainly increase Allwinner's chips 
  popularity. 
  
  I was wondering if there is a rough estimate as to when the A80's 
 manual 
  will be made available? 
  
  Thanks! 
  Raanan 
  
  On Monday, September 29, 2014 12:46:53 PM UTC+3, 
 ke...@allwinnertech.com 
  wrote: 
  
  Hi All, 
  
  I have put the documents on github, and the url is 
  https://github.com/allwinner-zh/documents.git 
  Thanks Simos, Henrik and Luc's suggestion. And other documents will be 
  upated to here when released. 
  
  
   
  Best Regards, 
  kevin.z.m 
  
  
  
  From: HenrikNordström 
  Date: 2014-09-29 08:46 
  To: linux...@googlegroups.com 
  CC: sh...@allwinnertech.com; Meng Zhang 
  Subject: Re: [linux-sunxi] Allwinner documentation (hardware 
 datasheet, 
  user manual) for A10, A10s, A13, A20, A31, A31s 
  sön 2014-09-28 klockan 02:18 +0200 skrev Luc Verhaegen: 
  
   Why didn't someone from Allwinner send these documents in 
 him/herself? 
  
  The current person discussion the matter with Allwiner was Simos, who 
 is 
  part of the linux-sunxi community. Allwinner sent current versions of 
  the documents to Simos for distribution in the community. What is 
 wrong? 
  
  Mailing the full set of documents as attachments directly to the 
  mailinglist is not appropriate. And for some strange and unknown 
 reason 
  Allwinner do not appear to have a public document archive for this 
 kind 
  of documents themselves, and seems to only distribute them via email 
 to 
  their customers when requested. 
  
  The real question is why AW do not make the documents available in 
  public themselves, and likewise why they do not have a public git 
  repository for SDK sources etc (github or elsewhere). 
  
  Regards 
  Henrik 
  
  
  NOTICE: This e-mail and any included attachments are intended only for 
  the sole use of named and intended recipient (s) only. If you are the 
 named 
  and intended recipient, please note that the information contained in 
 this 
  email and its embedded files are confidential and privileged. If you

Re: Re: [linux-sunxi] Allwinner documentation (hardware datasheet, user manual) for A10, A10s, A13, A20, A31, A31s

2014-10-11 Thread jacky lau
A big client will buy thousands of chips once. Are there any relation 
between big client and user manual publishing? No. So they don't think it's 
necessary to open their private property. When you are a big client, you 
are VIP, all document and source code is open to you. And if publish all 
technical 
documentation, competitors will know some technical secret (e.g. bug;) they 
don't want them to know.
Open world is beautiful, but they will not actively participate if there is 
no return. Why some China soc company publish some documents and source 
code now? I think this is mainly for marketing. But no matter how, VIP 
priority.

在 2014年10月6日星期一UTC+8下午8时55分30秒,RFat写道:

 Hi Kevin,

 Publishing the user manuals will certainly increase Allwinner's chips 
 popularity. 

 I was wondering if there is a rough estimate as to when the A80's manual 
 will be made available?

 Thanks!
 Raanan

 On Monday, September 29, 2014 12:46:53 PM UTC+3, ke...@allwinnertech.com 
 wrote:

  Hi All,

  I have put the documents on github, and the url is 
 https://github.com/allwinner-zh/documents.git 
 Thanks Simos, Henrik and Luc's suggestion. And other documents will be 
 upated to here when released.

  
  --
  Best Regards,
 kevin.z.m

  

  *From:* HenrikNordström
 *Date:* 2014-09-29 08:46
 *To:* linux...@googlegroups.com
 *CC:* sh...@allwinnertech.com; Meng Zhang
 *Subject:* Re: [linux-sunxi] Allwinner documentation (hardware 
 datasheet, user manual) for A10, A10s, A13, A20, A31, A31s
   sön 2014-09-28 klockan 02:18 +0200 skrev Luc Verhaegen:
  
  Why didn't someone from Allwinner send these documents in him/herself?
  
 The current person discussion the matter with Allwiner was Simos, who is
 part of the linux-sunxi community. Allwinner sent current versions of
 the documents to Simos for distribution in the community. What is wrong?
  
 Mailing the full set of documents as attachments directly to the
 mailinglist is not appropriate. And for some strange and unknown reason
 Allwinner do not appear to have a public document archive for this kind
 of documents themselves, and seems to only distribute them via email to
 their customers when requested.
  
 The real question is why AW do not make the documents available in
 public themselves, and likewise why they do not have a public git
 repository for SDK sources etc (github or elsewhere).
  
 Regards
 Henrik
  
  
 NOTICE: This e-mail and any included attachments are intended only for 
 the sole use of named and intended recipient (s) only. If you are the named 
 and intended recipient, please note that the information contained in this 
 email and its embedded files are confidential and privileged. If you are 
 neither the intended nor named recipient, you are hereby notified that any 
 unauthorized review, use, disclosure, dissemination, distribution, or 
 copying of this communication, or any of its contents, is strictly 
 prohibited. Please reply to the sender and destroy the original message and 
 all your records of this message (whether electronic or otherwise). 
 Furthermore, you should not disclose to any other person, use, copy or 
 disseminate the contents of this e-mail and/or the documents accompanying 
 it. 



-- 
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.


[linux-sunxi] configure lcdc in u-boot do not working, any suggestion?

2014-07-10 Thread jacky lau
I has a AllWinner A10 board which with a 480x800 LCD panel connected. I 
want to configure the lcdc in u-boot. But after setting the registers, no 
signal output in LCD0_xxx pin. Below is my u-boot commands, do I miss 
anything?

# port config, set PDx to LCD0_x
base 0x01c20800
mw 0x6c 0x
mw 0x70 0x
mw 0x74 0x
mw 0x78 0x

# lcdc clock config
base 0x01c2
# open lcdc clock
mw 0x64 0x10
# set pll3 to 270mhz
mw 0x10 0x8000
# open lcd0 ch0 clk
mw 0x118 0x8000
sleep 1
mw 0x118 0xc000
# open lcd0 ch1 clk
mw 0x12c 0x80008000

# lcdc config
base 0x01c0c000
mw 0x000 0x8000

mw 0x044 0xf00a
# w = 480, h = 800
mw 0x048 0x01df031f
# ht = 563, hbp = 33
mw 0x04c 0x02320020
# vt = 839, vbp = 17
mw 0x050 0x068e0010
# hspw = 17, vspw = 5
mw 0x054 0x0014
mw 0x058 0x0
# enable lcd0
mw 0x040 0x804001e3

-- 
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.


[linux-sunxi] DirectFB has poor performance in A10?

2014-04-12 Thread Jacky Lau
Hi, all. I run a DirectFB program on an AllWinner A10 board (1GHz with
512MB 16bit RAM). My program is simple, it display a window and show a RGBA
png image(800x480). But the program cost about 2.5 seconds from create
window to show the image. The performance is very poor. Is it normal?

-- 
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.