<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        lcddebugnotes2(qcomandorise)

        來源:懂視網 責編:小采 時間:2020-11-09 15:51:38
        文檔

        lcddebugnotes2(qcomandorise)

        lcddebugnotes2(qcomandorise):1 polarity inversion 面板極性變換方式 可使用的common電極驅動方式 Frame inversion 固定與變動 Row inversion 固定與變動 Column inversion 只能使用固定的common電極電壓 Dot inversion 只能使用固定的common電極電壓 面板極性變換
        推薦度:
        導讀lcddebugnotes2(qcomandorise):1 polarity inversion 面板極性變換方式 可使用的common電極驅動方式 Frame inversion 固定與變動 Row inversion 固定與變動 Column inversion 只能使用固定的common電極電壓 Dot inversion 只能使用固定的common電極電壓 面板極性變換

        1 polarity inversion 面板極性變換方式 可使用的common電極驅動方式 Frame inversion 固定與變動 Row inversion 固定與變動 Column inversion 只能使用固定的common電極電壓 Dot inversion 只能使用固定的common電極電壓 面板極性變換方式 Flicker的現象 Cr

        1 polarity inversion

        面板極性變換方式 可使用的common電極驅動方式
        Frame inversion 固定與變動
        Row inversion 固定與變動
        Column inversion 只能使用固定的common電極電壓
        Dot inversion 只能使用固定的common電極電壓


        面板極性變換方式 Flicker的現象 Crosstalk(串擾; 串音)的現象
        Frame inversion 明顯 垂直與水平方向都易發生
        Row inversion 不明顯 水平方向容易發生
        Columninversion 不明顯 垂直方向容易發生
        Dot inversion 幾乎沒有 不易發生


        Current Orise IC is supported for Column Inversion and Dot Inversion (0xC0B4h Panel Driving Mode)


        2 The method of showing layer (qcom)

        2.1 Insert the following patch

        diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp
        index ae7bb95..3f1a657 1004
        --- a/libhwcomposer/hwc.cpp
        +++ b/libhwcomposer/hwc.cpp
        @@ -331,11 +331,121 @@ static int hwc_query(struct hwc_composer_device_1* dev,
         
         }
         
        +inline void getHalPixelFormatStr(int format, char pixelformatstr[])
        +{
        + if (!pixelformatstr)
        + return;
        +
        + switch(format) {
        + case HAL_PIXEL_FORMAT_RGBA_8888:
        + strcpy(pixelformatstr, "RGBA_8888");
        + break;
        + case HAL_PIXEL_FORMAT_RGBX_8888:
        + strcpy(pixelformatstr, "RGBX_8888");
        + break;
        + case HAL_PIXEL_FORMAT_RGB_888:
        + strcpy(pixelformatstr, "RGB_888");
        + break;
        + case HAL_PIXEL_FORMAT_RGB_565:
        + strcpy(pixelformatstr, "RGB_565");
        + break;
        + case HAL_PIXEL_FORMAT_BGRA_8888:
        + strcpy(pixelformatstr, "BGRA_8888");
        + break;
        + case HAL_PIXEL_FORMAT_RGBA_5551:
        + strcpy(pixelformatstr, "RGBA_5551");
        + break;
        + case HAL_PIXEL_FORMAT_RGBA_4444:
        + strcpy(pixelformatstr, "RGBA_4444");
        + break;
        + case HAL_PIXEL_FORMAT_YV12:
        + strcpy(pixelformatstr, "YV12");
        + break;
        + case HAL_PIXEL_FORMAT_YCbCr_422_SP:
        + strcpy(pixelformatstr, "YCbCr_422_SP_NV16");
        + break;
        + case HAL_PIXEL_FORMAT_YCrCb_420_SP:
        + strcpy(pixelformatstr, "YCrCb_420_SP_NV21");
        + break;
        + case HAL_PIXEL_FORMAT_YCbCr_422_I:
        + strcpy(pixelformatstr, "YCbCr_422_I_YUY2");
        + break;
        + case HAL_PIXEL_FORMAT_NV12_ENCODEABLE:
        + strcpy(pixelformatstr, "NV12_ENCODEABLE");
        + break;
        + case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED:
        + strcpy(pixelformatstr, "YCbCr_420_SP_TILED_TILE_4x2");
        + break;
        + case HAL_PIXEL_FORMAT_YCbCr_420_SP:
        + strcpy(pixelformatstr, "YCbCr_420_SP");
        + break;
        + case HAL_PIXEL_FORMAT_YCrCb_420_SP_ADRENO:
        + strcpy(pixelformatstr, "YCrCb_420_SP_ADRENO");
        + break;
        + case HAL_PIXEL_FORMAT_YCrCb_422_SP:
        + strcpy(pixelformatstr, "YCrCb_422_SP");
        + break;
        + case HAL_PIXEL_FORMAT_R_8:
        + strcpy(pixelformatstr, "R_8");
        + break;
        + case HAL_PIXEL_FORMAT_RG_88:
        + strcpy(pixelformatstr, "RG_88");
        + break;
        + case HAL_PIXEL_FORMAT_INTERLACE:
        + strcpy(pixelformatstr, "INTERLACE");
        + break;
        + default:
        + sprintf(pixelformatstr, "Unknown0x%X", format);
        + break;
        + }
        +}
        +
        +void dump_layers(int layercount, size_t layerIndex, hwc_layer_1_t hwLayers[])
        +{
        + hwc_layer_1_t *layer = &hwLayers[layerIndex];
        + hwc_rect_t sourceCrop = layer->sourceCrop;
        + hwc_rect_t displayFrame = layer->displayFrame;
        + private_handle_t *hnd = (private_handle_t *)layer->handle;
        + char *layer_format=new char[50];
        + getHalPixelFormatStr(hnd->format,layer_format);
        + int composition_type =layer->compositionType;
        + char sfdumpfile_name[256];
        +
        + sprintf(sfdumpfile_name, "/data/layerdump/dump%03d_layer%d_%dx%d_%s_comp%d.raw",
        + layercount, layerIndex, hnd->width, hnd->height,
        + layer_format,composition_type);
        + FILE* fp = fopen(sfdumpfile_name, "w+");
        + if (fp != NULL) {
        + fwrite((void*)hnd->base, hnd->size, 1, fp);
        + fclose(fp);
        + }
        + 
        +}
        +
         static int hwc_set_primary(hwc_context_t *ctx, hwc_display_contents_1_t* list) {
         ATRACE_CALL();
         int ret = 0;
         const int dpy = HWC_DISPLAY_PRIMARY;
         if (LIKELY(list) && ctx->dpyAttr[dpy].isActive) {
        +
        + char property_fb[PROPERTY_VALUE_MAX];
        + static int layer_count =0;
        + int count_limit=0;
        + if (property_get("debug.sf.dump", property_fb, NULL) > 0) {
        + if(atoi(property_fb) > 0) {
        + count_limit=atoi(property_fb) ;
        + if (0 == mkdir("/data/layerdump", 0777))
        + layer_count=0;
        + if(layer_countnumHwLayers;i++)
        + dump_layers(layer_count, i, list->hwLayers);
        + layer_count ++ ;
        + }
        + }
        + }
        +
        +
        +
         uint32_t last = list->numHwLayers - 1;
         hwc_layer_1_t *fbLayer = &list->hwLayers[last];
         int fd = -1; //FenceFD from the Copybit(valid in async mode)
        

        2.2 Issue the following command

        # setprop debug.sf.dump 100

        The dump data is in /data/layerdump folder.


        2.3 Issue the following command

        # adb pull  

        2.4 Download the tool: Irfanview and PlugIns

        The newest version of Irfanview is 4.36


        2.5 Open the corresponding files, such as *.raw

        Please notes that the pixels need to be matched to oringinal size. Then the pictures can be shown, as follows:


        dump035_layer0_4x960_RGBX_8888_comp1.raw // layer0 means layer 0; RGBX X means no alpha

        dump034_layer1_4x960_RGBA_8888_comp1.raw

        dump035_layer2_416x608_RGBA_8888_comp1.raw // layer2 means layer 2; comp1 means mdpcomp

        dump033_layer3_4x960_RGBA_8888_comp1.raw

        dump035_layer4_4x960_RGBA_8888_comp3.raw // layer4 means layer 4; comp3 means fb_target


        3 popup menu jitter(抖動; 顫動)

        According to the methods in div 2, we can capture all layers from hwc.cpp. The root cause is related to the progress of animation. Because of the animation, the actual size of popup menu is variable and the alpha value isn't 0xff until the animation is shown completely. But mdp RGB pipe can't handle this scenario smoothly which causes the edge of popup menu jitter. So if this scenario appears, mdp composition should be disabled.


        The animation can be disabled via the following steps:

        Settings -> Developer options ->

        Window animation scale (off, .5x, 1x, 2x, 5x, 10x)

        Transition animation scale

        Animator duration scale


        So the animation progress can be adjusted if you need to do this. Meanwhile we can disable hw overlay via the option of Disable HW overlays.


        4 overlay process

        4.1 mdp4_overlay_set (key point)
        a. Get pipe from request (struct mdp_overlay ), choose corresponding pipe type;
        Where the function checks if the request is valid or not, such as width, height, downscale ratio(1/8), upscale ratio(20(mdp version > 4.1, otherwise 8)) and so on.
        b. Return pipe index;
        c. Calc mdp clock for current frame and bandwidth;
        d. Done.

        5 Ghost Shadow

        This issue is caused by VCOM. For orise 9605, we can adjust 0xD900h(VCOMDC: VCOM voltage setting, 0x39:-1)

        影像殘留主要是PANEL Pixel上的正負電壓È不對稱,解決方案是調整VCOM(寄存器D900)。如果改Panel的翻轉方式,也可以改善。如果LCM上有GVDD、NGVDD的測試點,可以量一下這兩個點的電壓,理論上這兩個電壓È是一致的!

        If we adjust the mode of inversion to dot inversion, the power will increase about 10mA, althrough this way can fix this issue too. I don't think it is a good method.


        6 DTYPE_DCS_WRITE (long, short)

        #define DTYPE_DCS_LWRITE	0x39	/* long write */
        #define DTYPE_DCS_WRITE	0x05	/* short write, 0 parameter */
        #define DTYPE_DCS_WRITE1	0x15	/* short write, 1 parameter */
        #define DTYPE_DCS_READ	0x06	/* read */

        With regard to opening lcd or closing lcd(sleep out/in), it is proper to use DTYPE_DCS_WRITE. If the commands have one parameter, it is proper to use DTYPE_DCS_WRITE1. If the commands have more than one parameter, it is proper to use DTYPE_DCS_LWRITE.


        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        lcddebugnotes2(qcomandorise)

        lcddebugnotes2(qcomandorise):1 polarity inversion 面板極性變換方式 可使用的common電極驅動方式 Frame inversion 固定與變動 Row inversion 固定與變動 Column inversion 只能使用固定的common電極電壓 Dot inversion 只能使用固定的common電極電壓 面板極性變換
        推薦度:
        標簽: and debug lcd
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top 主站蜘蛛池模板: 亚洲一级黄色视频| 成人免费无码精品国产电影| 久久亚洲国产精品123区| 亚洲1区2区3区精华液| 国产精品免费观看久久| 亚洲特级aaaaaa毛片| 99久久精品免费视频| 久久精品亚洲日本佐佐木明希| a毛片免费观看完整| 久久综合日韩亚洲精品色| 成人无码a级毛片免费| 亚洲高清专区日韩精品| 野花香高清在线观看视频播放免费| 亚洲一区二区三区香蕉| 亚洲国产精品免费视频| 亚洲男人电影天堂| 成人人免费夜夜视频观看| 亚洲国产精品18久久久久久| 免费a级黄色毛片| 国产久爱免费精品视频| 国产成人亚洲综合无码精品 | 久久www免费人成看片| 国产精品高清视亚洲精品| 亚洲爆乳大丰满无码专区| 又爽又高潮的BB视频免费看| xxxx日本在线播放免费不卡| 亚洲AV无一区二区三区久久| **一级一级毛片免费观看| 亚洲国产欧美国产综合一区| 亚洲色偷偷狠狠综合网| 久久九九全国免费| 亚洲人成77777在线播放网站不卡| 国产精品免费电影| 成人电影在线免费观看| 亚洲一区免费在线观看| 亚洲av午夜精品一区二区三区 | 国产亚洲精品精品精品| 亚洲热妇无码AV在线播放| 我们的2018在线观看免费高清| 亚洲av永久中文无码精品综合| 亚洲情综合五月天|