Guest User

mt9v034 : sensor - ccdc - previewer - resizer

a guest
Sep 24th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. cat sensor-ccdc-preview-resizer.sh
  2.  
  3. #!/bin/sh
  4.  
  5. ./media-ctl -r
  6. ./media-ctl -v -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]'
  7. ./media-ctl -v -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
  8. ./media-ctl -v -l '"OMAP3 ISP preview":1->"OMAP3 ISP resizer":0[1]'
  9. ./media-ctl -v -l '"OMAP3 ISP resizer":1->"OMAP3 ISP resizer output":0[1]'
  10.  
  11. ./media-ctl -v -V '"mt9v032 3-005c":0[SGRBG10 752x480]'
  12. ./media-ctl -v -V '"OMAP3 ISP CCDC":0 [SGRBG10 752x480]'
  13. ./media-ctl -v -V '"OMAP3 ISP CCDC":2 [SGRBG10 752x480]'
  14. ./media-ctl -v -V '"OMAP3 ISP preview":1 [UYVY 752x480]'
  15. ./media-ctl -v -V '"OMAP3 ISP resizer":1 [UYVY 752x480]'
  16.  
  17. # Test pattern
  18. ./yavta --set-control '0x00981901 1' /dev/v4l-subdev8
  19.  
  20. --- start output ---
  21. Opening media device /dev/media0
  22. Enumerating entities
  23. Found 16 entities
  24. Enumerating pads and links
  25. Setting up link 16:0 -> 5:0 [1]
  26. Opening media device /dev/media0
  27. Enumerating entities
  28. Found 16 entities
  29. Enumerating pads and links
  30. Setting up link 5:2 -> 7:0 [1]
  31. Opening media device /dev/media0
  32. Enumerating entities
  33. Found 16 entities
  34. Enumerating pads and links
  35. Setting up link 7:1 -> 10:0 [1]
  36. Opening media device /dev/media0
  37. Enumerating entities
  38. Found 16 entities
  39. Enumerating pads and links
  40. Setting up link 10:1 -> 12:0 [1]
  41. Opening media device /dev/media0
  42. Enumerating entities
  43. Found 16 entities
  44. Enumerating pads and links
  45. Setting up format SGRBG10 752x480 on pad mt9v032 3-005c/0
  46. Format set: SGRBG10 752x480
  47. Setting up format SGRBG10 752x480 on pad OMAP3 ISP CCDC/0
  48. Format set: SGRBG10 752x480
  49. Opening media device /dev/media0
  50. Enumerating entities
  51. Found 16 entities
  52. Enumerating pads and links
  53. Setting up format SGRBG10 752x480 on pad OMAP3 ISP CCDC/0
  54. Format set: SGRBG10 752x480
  55. Opening media device /dev/media0
  56. Enumerating entities
  57. Found 16 entities
  58. Enumerating pads and links
  59. Setting up format SGRBG10 752x480 on pad OMAP3 ISP CCDC/2
  60. Format set: SGRBG10 752x479
  61. Setting up format SGRBG10 752x479 on pad OMAP3 ISP preview/0
  62. Format set: SGRBG10 752x479
  63. Setting up format SGRBG10 752x479 on pad OMAP3 ISP AEWB/0
  64. Unable to set format: Inappropriate ioctl for device (-25)
  65. Setting up format SGRBG10 752x479 on pad OMAP3 ISP AF/0
  66. Unable to set format: Inappropriate ioctl for device (-25)
  67. Setting up format SGRBG10 752x479 on pad OMAP3 ISP histogram/0
  68. Unable to set format: Inappropriate ioctl for device (-25)
  69. Opening media device /dev/media0
  70. Enumerating entities
  71. Found 16 entities
  72. Enumerating pads and links
  73. Setting up format UYVY 752x480 on pad OMAP3 ISP preview/1
  74. Format set: UYVY 734x471
  75. Setting up format UYVY 734x471 on pad OMAP3 ISP resizer/0
  76. Format set: UYVY 734x471
  77. Opening media device /dev/media0
  78. Enumerating entities
  79. Found 16 entities
  80. Enumerating pads and links
  81. Setting up format UYVY 752x480 on pad OMAP3 ISP resizer/1
  82. Format set: UYVY 752x480
  83. Device /dev/v4l-subdev8 opened.
  84. Control 0x00981901 set to 1, is 1
  85. --- end output ---
  86.  
  87. ./yavta -f UYVY -s 752x480 --capture=3 --file=img-#.uyvy /dev/video6
  88. --- start output ---
  89. Device /dev/video6 opened.
  90. Device `OMAP3 ISP resizer output' on `media' is a video capture device.
  91. Video format set: UYVY (59565955) 752x480 (stride 1504) buffer size 721920
  92. Video format: UYVY (59565955) 752x480 (stride 1504) buffer size 721920
  93. 8 buffers requested.
  94. length: 721920 offset: 0
  95. Buffer 0 mapped at address 0xb6eb7000.
  96. length: 721920 offset: 724992
  97. Buffer 1 mapped at address 0xb6e06000.
  98. length: 721920 offset: 1449984
  99. Buffer 2 mapped at address 0xb6d55000.
  100. length: 721920 offset: 2174976
  101. Buffer 3 mapped at address 0xb6ca4000.
  102. length: 721920 offset: 2899968
  103. Buffer 4 mapped at address 0xb6bf3000.
  104. length: 721920 offset: 3624960
  105. Buffer 5 mapped at address 0xb6b42000.
  106. length: 721920 offset: 4349952
  107. Buffer 6 mapped at address 0xb6a91000.
  108. length: 721920 offset: 5074944
  109. Buffer 7 mapped at address 0xb69e0000.
  110. 0 (0) [-] 0 721920 bytes 134.363314 134.363894 32.834 fps
  111. 1 (1) [-] 1 721920 bytes 134.396456 134.396548 30.173 fps
  112. 2 (2) [-] 2 721920 bytes 134.429873 134.429965 29.925 fps
  113. [ 135.502471] omap3isp omap3isp: Unable to stop OMAP3 ISP CCDC
  114. Captured 3 frames in 0.097106 seconds (30.893774 fps, 22302833.231959 B/s).
  115. 8 buffers released
  116. --- end output ---
Advertisement
Add Comment
Please, Sign In to add comment