当前位置: 首页 > news >正文

如何更快的让百度收录网站ftp上传网站

如何更快的让百度收录网站,ftp上传网站,滕州建设局网站,用wordpress仿一个网站一.RK安卓hal3 camera框架 Camera hal3 在 android 框架中所处的位置如上图#xff0c; 对上#xff0c;主要实现 Framework 一整套 API 接口#xff0c;响应其 控制命令#xff0c;返回数据与控制参数结果。 对下#xff0c; 主要是通 V4l2 框架实现与 kernel 的交互。3a…一.RK安卓hal3 camera框架 Camera hal3 在 android 框架中所处的位置如上图 对上主要实现 Framework 一整套 API 接口响应其 控制命令返回数据与控制参数结果。 对下 主要是通 V4l2 框架实现与 kernel 的交互。3a 控制则是通 control loop 接口与 camera_engine_isp 交互。 另外其中一些组件或功能的实现也会调用到其他一些第三方 库 如 cameraBuffer 相关会调用到 Galloc 相关库 jpeg 编码则会调用到 Hwjpeg 相关库。 二.Camera hal3 与 Frame work 交互时序  三.usbcamera调试 首先硬件给usb供电供电后插上usbcamera可以看到新生成的pid vid。 ls /dev/video* 新生成了video1 video2. media-ctl -d /dev/media0 -p 1|console:/ # media-ctl -d /dev/media0 -p Opening media device /dev/media0 Enumerating entities Found 4 entities Enumerating pads and links Media controller API version 0.0.189Media device information ------------------------ driver uvcvideo model USB2.0 PC CAMERA: USB2.0 PC CAM serial bus info usb-fc880000.usb-1.3 hw revision 0x100 driver version 0.0.189Device topology - entity 1: USB2.0 PC CAMERA: USB2.0 PC CAM (1 pad, 1 link)type Node subtype V4Ldevice node name /dev/video1pad0: Sink- Processing 2:1 [ENABLED,IMMUTABLE]- entity 4: USB2.0 PC CAMERA: USB2.0 PC CAM (0 pad, 0 link)type Node subtype V4Ldevice node name /dev/video2- entity 8: Processing 2 (2 pads, 2 links)type V4L2 subdev subtype Unknownpad0: Sink v4l2_subdev_open: Failed to open subdev device node- Input 1:0 [ENABLED,IMMUTABLE]pad1: Source v4l2_subdev_open: Failed to open subdev device node- USB2.0 PC CAMERA: USB2.0 PC CAM:0 [ENABLED,IMMUTABLE]- entity 11: Input 1 (1 pad, 1 link)type V4L2 subdev subtype Sensorpad0: Source v4l2_subdev_open: Failed to open subdev device node- Processing 2:0 [ENABLED,IMMUTABLE] 查看拓扑图生成新的video1 video2. dumpsys media.camera onsole:/ # dumpsys media.camera Service global info: Number of camera devices: 1 Number of normal camera devices: 1 Number of public camera devices visible to API1: 1Device 0 maps to 101 Active Camera Clients: [] Allowed user IDs: 0 Camera service events log (most recent at top): 02-01 18:52:22 : ADD device 101, reason: (Device added)02-01 18:50:29 : REMOVE device 101, reason: (Device status changed from 1 to 0)02-01 18:08:37 : DISCONNECT device 101 client for package com.android.camera2 (PID 6195)02-01 18:08:37 : CONNECT device 101 client for package com.android.camera2 (PID 6195)02-01 18:06:25 : ADD device 101, reason: (Device added)02-01 18:06:16 : REMOVE device 101, reason: (Device status changed from 1 to 0)02-01 18:03:23 : ADD device 101, reason: (Device added)02-01 18:01:26 : REMOVE device 101, reason: (Device status changed from 1 to 0)02-01 18:00:53 : DISCONNECT device 101 client for package com.android.camera2 (PID 4701)02-01 18:00:53 : CONNECT device 101 client for package com.android.camera2 (PID 4701)02-01 18:00:34 : DISCONNECT device 101 client for package com.android.camera2 (PID 3004)02-01 18:00:34 : CONNECT device 101 client for package com.android.camera2 (PID 3004)02-01 18:00:29 : DISCONNECT device 101 client for package com.android.camera2 (PID 3004)02-01 18:00:29 : CONNECT device 101 client for package com.android.camera2 (PID 3004)02-01 18:00:04 : ADD device 101, reason: (Device added)02-01 18:00:01 : USER_SWITCH previous allowed user IDs: None, current allowed user IDs: 0 Camera device 101 dynamic info: Device 101 is closed, no client instanceCamera Provider HAL external/0-0 (v2.5, remote) static info: 1 devices: Camera HAL device device3.4/external/101 (v3.4) static information: Resource cost: 100Conflicting devices: NoneAPI1 info:Has a flash unit: falseFacing: FrontOrientation: 0API2 camera characteristics:Dumping camera metadata array: 55 / 55 entries, 2048 / 2048 bytes of extra data.Version: 1, Flags: 00000000android.info.supportedHardwareLevel (150000): byte[1][EXTERNAL ]android.colorCorrection.availableAberrationModes (00004): byte[1][0 ]android.control.aeAvailableAntibandingModes (10012): byte[1][3 ]android.control.maxRegions (1001c): int32[3][0 0 0 ]android.control.availableVideoStabilizationModes (1001a): byte[1][0 ]android.control.awbAvailableModes (1001b): byte[1][1 ]android.control.aeAvailableModes (10013): byte[1][1 ]android.control.availableEffects (10018): byte[1][0 ]android.control.availableModes (10026): byte[2][0 1 ]android.edge.availableEdgeModes (30002): byte[1][0 ]android.flash.info.available (50000): byte[1][FALSE ]android.hotPixel.availableHotPixelModes (60001): byte[1][0 ]android.jpeg.availableThumbnailSizes (70007): int32[14][0 0 176 144 ][240 144 256 144 ][240 160 256 154 ][240 180 ]android.jpeg.maxSize (70008): int32[1][3145728 ]android.lens.info.focusDistanceCalibration (90007): byte[1][UNCALIBRATED ]android.lens.info.availableOpticalStabilization (90003): byte[1][0 ]android.lens.facing (80005): byte[1][FRONT ]android.noiseReduction.availableNoiseReductionModes (a0002): byte[1][0 ]android.noiseReduction.mode (a0000): byte[1][OFF ]android.request.partialResultCount (c000b): int32[1][1 ]android.request.pipelineMaxDepth (c000a): byte[1][4 ]android.request.maxNumOutputStreams (c0006): int32[3][0 2 1 ]android.request.maxNumInputStreams (c0008): int32[1][0 ]android.scaler.availableMaxDigitalZoom (d0004): float[1][4.00000000 ]android.scaler.croppingType (d000d): byte[1][CENTER_ONLY ]android.sensor.availableTestPatternModes (e0019): int32[2][0 1 ]android.sensor.info.timestampSource (f0008): byte[1][UNKNOWN ]android.sensor.orientation (e000e): int32[1][0 ]android.shading.availableModes (100002): byte[1][0 ]android.statistics.info.availableFaceDetectModes (120000): byte[1][0 ]android.statistics.info.maxFaceCount (120002): int32[1][0 ]android.statistics.info.availableHotPixelMapModes (120006): byte[1][0 ]android.statistics.info.availableLensShadingMapModes (120007): byte[1][0 ]android.sync.maxLatency (170001): int32[1][UNKNOWN ]android.request.availableRequestKeys (c000d): int32[28][3 65536 65537 65538 ][65539 65542 65541 65543 ][65545 65546 65547 65549 ][65550 65551 65552 65553 ][262146 458755 458756 458757 ][458758 524292 655360 851968 ][917528 1114112 1114115 65583 ]android.request.availableResultKeys (c000e): int32[35][3 65536 65537 65538 ][65539 65542 65567 65541 ][65543 65568 65545 65546 ][65547 65570 65549 65550 ][65551 65552 65553 262146 ][262149 458755 458756 458757 ][458758 524292 655360 786441 ][851968 917520 1114112 1114115 ][1114128 1114126 65583 ]android.request.availableCharacteristicsKeys (c000f): int32[43][4 65554 65555 65556 ][65557 65558 65572 65559 ][65560 65574 65561 65562 ][65563 65573 65564 327680 ][1376256 458759 524293 589827 ][589831 655362 786444 786440 ][786438 786443 786442 851972 ][851978 851981 983040 983044 ][983046 983050 983048 917518 ][1048578 1179648 1179654 1179655 ][1179650 1507329 65582 ]android.control.aeCompensationRange (10015): int32[2][0 0 ]android.control.aeCompensationStep (10016): rational[1][(0 / 1) ]android.control.afAvailableModes (10017): byte[2][1 0 ]android.control.availableSceneModes (10019): byte[1][0 ]android.control.aeLockAvailable (10024): byte[1][FALSE ]android.control.awbLockAvailable (10025): byte[1][FALSE ]android.scaler.availableStreamConfigurations (d000a): int32[72][33 160 120 OUTPUT ][35 160 120 OUTPUT ][34 160 120 OUTPUT ][33 176 144 OUTPUT ][35 176 144 OUTPUT ][34 176 144 OUTPUT ][33 320 240 OUTPUT ][35 320 240 OUTPUT ][34 320 240 OUTPUT ][33 352 288 OUTPUT ][35 352 288 OUTPUT ][34 352 288 OUTPUT ][33 640 480 OUTPUT ][35 640 480 OUTPUT ][34 640 480 OUTPUT ][33 800 600 OUTPUT ][35 800 600 OUTPUT ][34 800 600 OUTPUT ]android.scaler.availableMinFrameDurations (d000b): int64[72][33 160 ][120 33333333 ][35 160 ][120 33333333 ][34 160 ][120 33333333 ][33 176 ][144 33333333 ][35 176 ][144 33333333 ][34 176 ][144 33333333 ][33 320 ][240 33333333 ][35 320 ][240 33333333 ][34 320 ][240 33333333 ][33 352 ][288 33333333 ][35 352 ][288 33333333 ][34 352 ][288 33333333 ][33 640 ][480 33333333 ][35 640 ][480 33333333 ][34 640 ][480 33333333 ][33 800 ][600 33333333 ][35 800 ][600 33333333 ][34 800 ][600 33333333 ]android.scaler.availableStallDurations (d000c): int64[72][33 160 ][120 1000000000 ][35 160 ][120 0 ][34 160 ][120 0 ][33 176 ][144 1000000000 ][35 176 ][144 0 ][34 176 ][144 0 ][33 320 ][240 1000000000 ] dump出来可以看到生成新的cameraid。 Number of camera devices: 1 Number of normal camera devices: 1 v4l2-ctl -d /dev/video1 --all 查看video1信息 130|console:/ # v4l2-ctl -d /dev/video1 --all Driver Info:Driver name : uvcvideoCard type : USB2.0 PC CAMERA: USB2.0 PC CAMBus info : usb-fc880000.usb-1.3Driver version : 5.10.189Capabilities : 0x84a00001Video CaptureMetadata CaptureStreamingExtended Pix FormatDevice CapabilitiesDevice Caps : 0x04200001Video CaptureStreamingExtended Pix Format Media Driver Info:Driver name : uvcvideoModel : USB2.0 PC CAMERA: USB2.0 PC CAMSerial :Bus info : usb-fc880000.usb-1.3Media version : 5.10.189Hardware revision: 0x00000100 (256)Driver version : 5.10.189 Interface Info:ID : 0x03000002Type : V4L Video Entity Info:ID : 0x00000001 (1)Name : USB2.0 PC CAMERA: USB2.0 PC CAMFunction : V4L2 I/OPad 0x01000007 : SinkLink 0x0200000d: from remote pad 0x100000a of entity Processing 2: Data, Enabled, Immutable Priority: 2 Video input : 0 (Input 1: ok) Format Video Capture:Width/Height : 640/480Pixel Format : YUYVField : NoneBytes per Line : 1280Size Image : 614400Colorspace : DefaultTransfer Function : Default (maps to Rec. 709)YCbCr/HSV Encoding: Default (maps to ITU-R 601)Quantization : Default (maps to Limited Range)Flags : Crop Capability Video Capture:Bounds : Left 0, Top 0, Width 640, Height 480Default : Left 0, Top 0, Width 640, Height 480Pixel Aspect: 1/1 Selection: crop_default, Left 0, Top 0, Width 640, Height 480, Flags: Selection: crop_bounds, Left 0, Top 0, Width 640, Height 480, Flags: Streaming Parameters Video Capture:Capabilities : timeperframeFrames per second: 30.000 (30/1)Read buffers : 0brightness 0x00980900 (int) : min0 max255 step1 default128 value128contrast 0x00980901 (int) : min0 max255 step1 default135 value135saturation 0x00980902 (int) : min0 max255 step1 default75 value75hue 0x00980903 (int) : min-127 max127 step1 default0 value0gamma 0x00980910 (int) : min1 max8 step1 default4 value4power_line_frequency 0x00980918 (menu) : min0 max2 default1 value1sharpness 0x0098091b (int) : min0 max15 step1 default5 value5backlight_compensation 0x0098091c (int) : min1 max5 step1 default1 value1 v4l2-ctl -d /dev/video1 --list-formats-ext 查看video1支持的格式和分辨率 console:/ # v4l2-ctl -d /dev/video1 --list-formats-ext ioctl: VIDIOC_ENUM_FMTIndex : 0Type : Video CapturePixel Format: YUYVName : YUYV 4:2:2Size: Discrete 640x480Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.067s (15.000 fps)Size: Discrete 352x288Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.067s (15.000 fps)Size: Discrete 320x240Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.067s (15.000 fps)Size: Discrete 176x144Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.067s (15.000 fps)Size: Discrete 160x120Interval: Discrete 0.033s (30.000 fps)Interval: Discrete 0.067s (15.000 fps) 分析此时打开usbcamera的画面是黑屏查看hal3 camera框架里面适配的分辨率和视频格式是否支持yuvv最大的分辨率为640*480. 四.代码修改点亮usbcamera --- a/rk3588_an13/device/rockchip/common/external_camera_config.xmlb/rk3588_an13/device/rockchip/common/external_camera_config.xml-7,7 7,8 !-- See ExternalCameraUtils.cpp for default values of Device configurations below--Device!-- Max JPEG buffer size in bytes-- - MaxJpegBufferSize bytes3145728/ !-- 3MB (~ 1080p YUV420) --!-- MaxJpegBufferSize bytes3145728/ -- !-- 3MB (~ 1080p YUV420) --MaxJpegBufferSize bytes13631488/ !-- 13MB 1300w pixel (~ 4k YUV420) --!-- Size of v4l2 buffer queue when streaming 30fps --!-- Larger value: more request can be cached pipeline (less janky) --!-- Smaller value: use less memory -- --- a/rk3588_an13/frameworks/av/services/camera/libcameraservice/api1/client2/Parameters.hb/rk3588_an13/frameworks/av/services/camera/libcameraservice/api1/client2/Parameters.h-199,11 199,11 struct Parameters {// Max preview size allowed// This is set to a 1:1 value to allow for any aspect ratio that has// a max long side of 1920 pixels - static const unsigned int MAX_PREVIEW_WIDTH 1920; - static const unsigned int MAX_PREVIEW_HEIGHT 1920;static const unsigned int MAX_PREVIEW_WIDTH 640;static const unsigned int MAX_PREVIEW_HEIGHT 480;// Initial max preview/recording size bound - static const int MAX_INITIAL_PREVIEW_WIDTH 1920; - static const int MAX_INITIAL_PREVIEW_HEIGHT 1080;static const int MAX_INITIAL_PREVIEW_WIDTH 640;static const int MAX_INITIAL_PREVIEW_HEIGHT 480; --- a/rk3588_an13/hardware/interfaces/camera/device/3.4/default/ExternalCameraDevice.cppb/rk3588_an13/hardware/interfaces/camera/device/3.4/default/ExternalCameraDevice.cpp-52,7 52,7 constexpr int MAX_RETRY 5; // Allow retry v4l2 open failures a few times.constexpr int OPEN_RETRY_SLEEP_US 100000; // 100ms * MAX_RETRY 0.5 secondsstatic uint Camera_Resolution[][2] {{320,240},/*{352,288},*/ - {640,480},{800,600},/*{1280,720},{1280,960},{1920,1080},{2048,1536},{2560,1440},{2592,1944},{2592,1456},*/{640,480},/*{800,600},{1280,720},{1280,960},{1920,1080},{2048,1536},{2560,1440},{2592,1944},{2592,1456},*/{0,0}};} // anonymous namespace-444,7 444,8 status_t ExternalCameraDevice::initDefaultCharsKeys(256, 144,240, 160,256, 154, - 240, 180};240, 180,640, 480};UPDATE(ANDROID_JPEG_AVAILABLE_THUMBNAIL_SIZES, jpegAvailableThumbnailSizes,ARRAY_SIZE(jpegAvailableThumbnailSizes)); --- a/rk3588_an13/hardware/interfaces/camera/device/3.4/default/RgaCropScale.cppb/rk3588_an13/hardware/interfaces/camera/device/3.4/default/RgaCropScale.cpp-38,6 38,11 namespace camera2 {#define RGA_ACTIVE_H (2048)#define RGA_VIRTUAL_H (2048)#define RGA_ACTIVE_W (640) #define RGA_VIRTUAL_W (640) #define RGA_ACTIVE_H (480) #define RGA_VIRTUAL_H (480) #endif
http://www.ho-use.cn/article/10822639.html

相关文章:

  • 网站上传空间的ip地址吗做网站品牌
  • 网站 栏目有没有网站
  • 谷歌官方网站电器企业网站建站
  • 郑州网站优化排名推广加强官网建设
  • 上海傲石设计网站建设网站主机
  • 快速网站推广工具wordpress查看访问
  • 北京酒店设计公司郴州网站seo
  • 外贸网站怎么推广app推广
  • 机械设备公司网站制作wordpress导航去掉多余的样式
  • 学校网站建设内容医院网站建设的规划方案
  • 东莞网站建设收费外包公司能去吗
  • 网站程序模板下载服务器网站崩溃
  • 网站建设的发展趋势建设银行官方网站面试详细信息
  • 上海网站建设网页制作怎么样专业的个人网站建设哪家
  • 做网站 难山东坤泰建设集团网站
  • 在线旅游网站如何建议一个网站
  • 贵阳网站建设多少钱?罗湖中心区做网站
  • 支付宝网站登录入口网站加黑链
  • 可以自己做网站的网址怎样推广产品
  • 企业品牌网站建设首选公司好用的小程序推荐
  • 做学术论文的网站深圳做网站网络公司排名
  • 如何在腾讯云上网站建设做集装箱的网站
  • 企业做网站多少钱五大建设的主要内容
  • 同德县wap网站建设公司wordpress最大的网站
  • 42区 网站开发指南佛山网站关键词
  • 域名换了网站需要备案么wordpress给用户推送消息
  • 怎样做服装网站如何在阿里云自主建网站
  • 班级网站空间建设取得效果wordpress伪静态配置不了
  • 龙江网站设计制作梅州建站联系方式
  • 营销型网站建设实训总结电影爱好网