mythares

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares  发布于  2017-03-10 10:49:14
采纳率 0%
4个问答
10282

求指导,Hi3536解码图像清晰度的问题

 
如下图,前边是Hi3536_SDK_V2.0.5.0中附带的高清视频文件"1080P.H264"的播放效果,后边是解码后从vpss通道截取的输出图像(vpss未作缩放等操作).对比发现解码后图像清晰度下降的厉害(如右上角路牌),求大神指点一下,谢谢Orz


补充内容 (2017-3-30 09:50):
e
我来回答
回答29个
时间排序
认可量排序

741177247

0个粉丝

0

问答

0

专栏

0

资料

741177247 2017-03-10 11:35:03
认可0
帮顶~~~~~~~~~

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-03-10 11:44:05
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46376&ptid=14488]741177247 发表于 2017-3-10 11:35[/url]
帮顶~~~~~~~~~[/quote]

建议直接从vdec 得解码后的图像看看

一般来说,海思的解码没有问题, 还是看看是不是流程上哪里出了问题

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-15 18:11:35
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46379&ptid=14488]zhuangweiye 发表于 2017-3-10 11:44[/url]
建议直接从vdec 得解码后的图像看看

一般来说,海思的解码没有问题, 还是看看是不是流程上哪里出了问 ...[/quote]

谢谢大神的指导,我试了下解码的部分参考的是sample_vo里边的,解码之后通过子线程中HI_MPI_VDEC_GetImage()的到的帧信息里边像素格式是"PIXEL_FORMAT_YUV_SEMIPLANAR_420",然后仿照例子vo_chn_dump 中的例子将420sp转换成420p保存,,,播放效果就是这样

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-15 18:41:24
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46379&ptid=14488]zhuangweiye 发表于 2017-3-10 11:44[/url]
建议直接从vdec 得解码后的图像看看

一般来说,海思的解码没有问题, 还是看看是不是流程上哪里出了问 ...[/quote]

尝试了一下vo使用VO_PART_MODE_SINGLE模式直接绑定vdec后显示效果与播放文件一样,特别清晰..... 如果中间加一个vpss图像就变模糊了:'(...vpss设置就是仿照例子sample_vo中的.:dizzy: 请问大神是不是vpss默认的话会降低图像清晰度来加快处理??

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-03-16 09:01:03
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46612&ptid=14488]mythares 发表于 2017-3-15 18:11[/url]
谢谢大神的指导,我试了下解码的部分参考的是sample_vo里边的,解码之后通过子线程中HI_MPI_VDEC_GetImag ...[/quote]

这个应该是转换出问题了

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-03-16 09:03:01
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46615&ptid=14488]mythares 发表于 2017-3-15 18:41[/url]
尝试了一下vo使用VO_PART_MODE_SINGLE模式直接绑定vdec后显示效果与播放文件一样,特别清晰... ...[/quote]

应该不会,除非楼主有什么特殊处理, 方便的话可以贴下代码以及/proc/umap/vo /proc/umap/vpss /proc/umap/sys

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-16 14:24:30
认可0
本帖最后由 mythares 于 2017-3-16 14:26 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=46623&ptid=14488]zhuangweiye 发表于 2017-3-16 09:03[/url]
应该不会,除非楼主有什么特殊处理, 方便的话可以贴下代码以及/proc/umap/vo /proc/umap/vpss /proc/umap/ ...[/quote]

谢谢了:D  附件:demo.c.zip这个是代码,
============================VO================================
[VOU] Version: [Hi3536_MPP_V2.0.5.0 B020 Release], Build Time[Jun 14 2016, 09:16:41]

-----DEV CONFIG----------------------------------------------------------------
DevId   DevEn    Mux1    Mux2    Mux3     InfSync     BkClr  DevFrt
     0       Y     VGA                      1080P@6099999999      60

-----MODULE PARAM--------------------------------------------------------------
DevId detectCycle
     0          30
ext_csc_en
          0

-----DEV VDAC STATUS-----------------------------------------------------------
DevId    VDAC
     0       -

-----VIDEO LAYER STATUS--------------------------------------------------------
LayerId VideoEn ClustMode  PixFmt    ImgW    ImgH   DispW   DispH DispFrt DoubFrm Toleration Priority
       0       Y         N     420    1920    1080    1920    1080      60       N   10000000        0

-----VIDEO LAYER STATUS 2------------------------------------------------------
layerId VideoEn EnChNum  Matrix    Luma    Cont     Hue    Satu
       0       Y       1       0      50      50      50      50

-----VIDEO LAYER STATUS 3------------------------------------------------------
layerId DevId  SetBeg  SetEnd PartitionMode SupportCompress
       0     0       N       N         Multi               N

-----CHN BASE INFO ------------------------------------------------------------
LayerId ChnId ChnEn  Prio DeFlk  ChnX  ChnY  ChnW  ChnH DispX DispY bSnap Field  bCas CcPos bRcvMatch
       0     0     Y     0     N     0     0  1920  1080    -1    -1     N  both     N     0       N

-----CHN PLAY INFO 1-----------------------------------------------------------
LayerId ChnId Batch  Show Pause  Step Revrs Refsh Thrshd ChnFrt   ChnGap
       0     0     N     Y     N     N     N     N      3     60    16666

-----CHN PLAY INFO 2-----------------------------------------------------------
LayerId ChnId          DisplayPts              PrePts             CurrPts            ScalePts              SetPts           RecvCurPts
       0     0                   0                   0                   0                   0                  -1                   0

-----ByMutli CHN STATUS1-------------------------------------------------------
LayerId ChnId       QCnt      NewDo      OldDo       LCnt       SCnt      ChRpt BusyN ShouD Dsped  Area AreaT
       0     0       3930        791          0       1838        791          0     2     1     1     0     0

-----ByMutli CHN STATUS2-------------------------------------------------------
LayerId ChnId  Buf1  Buf2  Buf3  Buf4  DBuf Stat1 Stat2 QNodeAddr SNodeAddr  DispAddr  ChnFreeNum  ChnBusyNum
       0     0  UseF  UseF  UseF  UseF     1   end   end  5c917c00  5c917c00  5c329000           4           2

-----ByMutli CHN STATUS3--------------------------------------------------------
LayerId ChnId AspectRatioMode     X     Y     Width     Height     BgColor     CompressMode
       0     0            NONE     0     0         0          0           0             NONE

-----BySingle CHN STATUS 1-----------------------------------------------------
LayerId ChnId   Job     Task     LCnt     SCnt    ChRpt     DRpt CBusy DBusy ShouD Dsped b2Scl  ChnAddr DispAddr

-----BySingle CHN STATUS 2-----------------------------------------------------
LayerId ChnId  bBorder  TopWidth  BottomWidth  LeftWidth  RightWidth  Color  ChnFreeNum  ChnBusyNum  DisplayFreeNum  DisplayBusyNum

-----BySingle CHN STATUS3------------------------------------------------------
LayerId ChnId AspectRatioMode     X     Y     Width     Height     BgColor     CompressMode

-----CHN OTHER INFO------------------------------------------------------------
LayerId ChnId bZoom ZmTyp ZoomX ZoomY ZoomW ZoomH  SrcW  SrcH
       0     0     N     0     0     0     0     0     0     0

-----WBC INFO------------------------------------------------------------------
WbcId  WbcW  WbcH PixFmt FrmRat RealRat    Mode  SrcType  SrcId  Depth  NotFin

-----GRAPHICS LAYER------------------------------------------------------------
Layer BindDev
   HC0       0
   HC1       1

-----LAYER CSC PARAM-----------------------------------------------------------
LAYERID  Matrix    Luma    Cont     Hue    Satu
       0       5      50      50      50      50
       3       5      50      50      50      50

-----DEV VIDEO STATUS 3--------------------------------------------------------
DevId bCasCfg  bCasEn bCasSlv  CasRgn CasMode CasPatn enCasDataTranMode Vtth
     0       N       N       N                       0                    240

-----VGA PARAM-----------------------------------------------------------------
DevId  Matrix    Luma    Cont     Hue    Satu    Gain    SharpenStrength
     0       3      50      50      50      50      10                128

-----HDMI PARAM----------------------------------------------------------------
DevId  Matrix    Luma    Cont     Hue    Satu
============================VPSS================================
-----DEV CONFIG----------------------------------------------------------------
DevId   DevEn    Mux1    Mux2    Mux3     InfSync     BkClr  DevFrt
     0       Y     VGA                      1080P@6099999999      60

-----MODULE PARAM--------------------------------------------------------------
DevId detectCycle
     0          30
ext_csc_en
          0

-----DEV VDAC STATUS-----------------------------------------------------------
DevId    VDAC
     0       -

-----VIDEO LAYER STATUS--------------------------------------------------------
LayerId VideoEn ClustMode  PixFmt    ImgW    ImgH   DispW   DispH DispFrt DoubFrm Toleration Priority
       0       Y         N     420    1920    1080    1920    1080      60       N   10000000        0

-----VIDEO LAYER STATUS 2------------------------------------------------------
layerId VideoEn EnChNum  Matrix    Luma    Cont     Hue    Satu
       0       Y       1       0      50      50      50      50

-----VIDEO LAYER STATUS 3------------------------------------------------------
layerId DevId  SetBeg  SetEnd PartitionMode SupportCompress
       0     0       N       N         Multi               N

-----CHN BASE INFO ------------------------------------------------------------
LayerId ChnId ChnEn  Prio DeFlk  ChnX  ChnY  ChnW  ChnH DispX DispY bSnap Field  bCas CcPos bRcvMatch
       0     0     Y     0     N     0     0  1920  1080    -1    -1     N  both     N     0       N

-----CHN PLAY INFO 1-----------------------------------------------------------
LayerId ChnId Batch  Show Pause  Step Revrs Refsh Thrshd ChnFrt   ChnGap
       0     0     N     Y     N     N     N     N      3     60    16666

-----CHN PLAY INFO 2-----------------------------------------------------------
LayerId ChnId          DisplayPts              PrePts             CurrPts            ScalePts              SetPts           RecvCurPts
       0     0                   0                   0                   0                   0                  -1                   0

-----ByMutli CHN STATUS1-------------------------------------------------------
LayerId ChnId       QCnt      NewDo      OldDo       LCnt       SCnt      ChRpt BusyN ShouD Dsped  Area AreaT
       0     0       3930        791          0       1838        791          0     2     1     1     0     0

-----ByMutli CHN STATUS2-------------------------------------------------------
LayerId ChnId  Buf1  Buf2  Buf3  Buf4  DBuf Stat1 Stat2 QNodeAddr SNodeAddr  DispAddr  ChnFreeNum  ChnBusyNum
       0     0  UseF  UseF  UseF  UseF     1   end   end  5c917c00  5c917c00  5c329000           4           2

-----ByMutli CHN STATUS3--------------------------------------------------------
LayerId ChnId AspectRatioMode     X     Y     Width     Height     BgColor     CompressMode
       0     0            NONE     0     0         0          0           0             NONE

-----BySingle CHN STATUS 1-----------------------------------------------------
LayerId ChnId   Job     Task     LCnt     SCnt    ChRpt     DRpt CBusy DBusy ShouD Dsped b2Scl  ChnAddr DispAddr

-----BySingle CHN STATUS 2-----------------------------------------------------
LayerId ChnId  bBorder  TopWidth  BottomWidth  LeftWidth  RightWidth  Color  ChnFreeNum  ChnBusyNum  DisplayFreeNum  DisplayBusyNum

-----BySingle CHN STATUS3------------------------------------------------------
LayerId ChnId AspectRatioMode     X     Y     Width     Height     BgColor     CompressMode

-----CHN OTHER INFO------------------------------------------------------------
LayerId ChnId bZoom ZmTyp ZoomX ZoomY ZoomW ZoomH  SrcW  SrcH
       0     0     N     0     0     0     0     0     0     0

-----WBC INFO------------------------------------------------------------------
WbcId  WbcW  WbcH PixFmt FrmRat RealRat    Mode  SrcType  SrcId  Depth  NotFin

-----GRAPHICS LAYER------------------------------------------------------------
Layer BindDev
   HC0       0
   HC1       1

-----LAYER CSC PARAM-----------------------------------------------------------
LAYERID  Matrix    Luma    Cont     Hue    Satu
       0       5      50      50      50      50
       3       5      50      50      50      50

-----DEV VIDEO STATUS 3--------------------------------------------------------
DevId bCasCfg  bCasEn bCasSlv  CasRgn CasMode CasPatn enCasDataTranMode Vtth
     0       N       N       N                       0                    240

-----VGA PARAM-----------------------------------------------------------------
DevId  Matrix    Luma    Cont     Hue    Satu    Gain    SharpenStrength
     0       3      50      50      50      50      10                128

-----HDMI PARAM----------------------------------------------------------------
DevId  Matrix    Luma    Cont     Hue    Satu

/mnt/Hi3536_SDK/hi3536/demo # cat /proc/umap/vpss

[VPSS] Version: [Hi3536_MPP_V2.0.5.0 B020 Release], Build Time[Jun 14 2016, 09:16:42]

-------------------------VPSS GRP ATTR-----------------------------------
   GrpID    MaxW    MaxH  PixFmt DieMode   DciEn    NrEn    IeEn  HistEn    EsEn
       0    1920    1080   SP420   nodie       0       1       0       0       1

-----------------------VPSS GRP FRAME CONTROL INFO-------------------------
   GrpID bFilter   Width  Height    SrcFRate    DstFRate   bUserCtrl
       0       0       0       0          -1          -1           Y

-------------------------VPSS GRP PARAM-----------------------------------
   GrpID    Cont   IeStr   SfStr   TfStr   CfStr  CTfStr CvbsStr     mdz   HtfRe     edz   WtfRe  DeMotion  DieStr
       0      32       0      16       0       8       0       0       0       0       0       0         0       0

-------------------------VPSS CHN PARAM---------------------------------
   GrpID   ChnID   ChnSp
       0       0      40

-----------------------VPSS GRP PRESCALE INFO-------------------------
   GrpID bPreScl   Width  Height

-------------------------VPSS CHN ATTR-----------------------------------
   GrpId    PhyChnId  Enable    SpEn  UVInvert FrmWkEn      LW      RW      TW      BW     Color   OverlayMask
       0           0       1       1         0       0       2       2       2       2      ff00            ff

-------------------------VPSS CROP INFO-----------------------------------
   GrpId  CropEn    CoorType   CoorX   CoorY   Width  Height    OriW    OriH TrimWid TrimHgt
       0       0         RIT       0       0       0       0    1920    1080    1920    1080

-------------------------VPSS GRP PIC QUEUE-------------------------
   GrpID FreeLen BusyLen   Delay  Backup
       0       6       0       0       1

-----------------------VPSS GRP WORK STATUS-------------------------
   GrpID         RecvPic  ViLost    VdecLost           NewDo   OldDo NewUnDo         OldUnDo StartFl  bStart
       0           60554       0           0           18171       0   42383           30231       0       1

-----------------------VPSS CHN WORK STATUS-------------------------
   GrpID   ChnID    WorkMode   Depth          SendOk  bConfident  SrcFRate  DstFRate   bDouble
       0       0        AUTO       0           18170           1        -1        -1        --

----------------------VPSS CHN OUTPUT RESOLUTION-----------------------
   GrpID   ChnID  Enable   Width  Height  pixfmt cmpMode AspectRatio  videoX  videoY  videoW  videoH   BgColor
       0       0       1    1920    1080   SP420    NONE        NONE       0       0    1920    1080       0

-------------------------DRV WORK STATUS-----------------------------------
   StartSuc0   StartSuc1   StartSuc2     LinkInt   StartErr0   StartErr1   StartErr2  NodeIdErr0  NodeIdErr1  NodeIdErr2      BusErr
       18171           0           0       18170           0           0           0           0           0           0           0

-------------------------DRV NODE QUEUE-----------------------------------
FreeNum WaitNum  OrderWaitNum  Busy00  Busy01    Sel0  Busy10  Busy11    Sel1  Busy20  Busy21    Sel2
     456       0             0       1       0       0       0       0       0       0       0       0
============================SYS================================

[SYS] Version: [Hi3536_MPP_V2.0.5.0 B020 Release], Build Time[Jun 14 2016, 09:16:40]

System State: 0 (0: initialized; 1: exiting; 2: exited)
System Align: 16

-----MEM TABLE--------------------------------------------------------
   MOD           MODNAME DEV CHN           MMZNAME

-----BIND RELATION TABLE--------------------------------------------------------
  FirMod  FirDev  FirChn  SecMod  SecDev  SecChn  TirMod  TirDev  TirChn SendCnt  rstCnt
    vdec       0       0    vpss       0       0      vo       0       0   69745       0
    vpss       0       0      vo       0       0    null       0       0       0       0

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-16 14:33:31
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46622&ptid=14488]zhuangweiye 发表于 2017-3-16 09:01[/url]
这个应该是转换出问题了[/quote]

唔,,这个是说3536内部的转换步骤么?

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-03-16 17:12:00
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46653&ptid=14488]mythares 发表于 2017-3-16 14:24[/url]
谢谢了  这个是代码,
============================VO===== ...[/quote]

把VPSS的NR 关掉试试

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-16 19:17:11
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46660&ptid=14488]zhuangweiye 发表于 2017-3-16 17:12[/url]
把VPSS的NR 关掉试试[/quote]

再次感谢,试了下关闭了NR还是不行:'(

前边的是vdec->vo  使用 vou_chn_dump 抓取的一帧
后边是vdec->vpss->vo 使用vpss_chn_dump 抓取的一帧

麻烦大神帮忙看看这段直接从vdec抓图像的代码有啥问题,这个抓出来就是4#楼的效果,按说都得到像素格式是sp420了按照同样的方法解不出来:funk: ,感觉好像hisi 留了一手的样子:@
======================
HI_VOID* VDEC_GetVdecStreamProc()
{
        HI_S32 s32Ret;
        HI_S32 VdChn = 0;                                        // dec channel ID
        HI_S32 s32Cnt = 50;                                        // dec frame count
        HI_CHAR pixFmt[10];                                        // dec pixel format
        HI_CHAR aszFileName[64];                        // dec origin outputfile
        FILE *pFile;
        VIDEO_FRAME_INFO_S stFrameInfo;
        HI_S32 s32MilliSec = 2000;


        // loop till we can get decoded frame from VO
        memset(&stFrameInfo,0,sizeof(VIDEO_FRAME_INFO_S));
        while(HI_SUCCESS != HI_MPI_VDEC_GetImage(VdChn,&stFrameInfo,s32MilliSec))
        {
                DEMO_PRT("get image err !\n");
                usleep(40000);
        }
        printf("420sp[%x]422sp[%x]\n",PIXEL_FORMAT_YUV_SEMIPLANAR_420,PIXEL_FORMAT_YUV_SEMIPLANAR_422);
        printf("pix fmt [%#x]\n",stFrameInfo.stVFrame.enPixelFormat);
        // set file info
        strcpy(pixFmt,(PIXEL_FORMAT_YUV_SEMIPLANAR_420 == stFrameInfo.stVFrame.enPixelFormat)?"sp420":"sp422");
        sprintf(aszFileName,"vdec_save_chn%d_w%d_h%d_%s.yuv",VdChn,stFrameInfo.stVFrame.u32Width,stFrameInfo.stVFrame.u32Height,pixFmt);
        printf("dump vdec origin output of vdec chn %d to file [%s]\n",VdChn,aszFileName);
        fflush(stdout);
        s32Ret = HI_MPI_VDEC_ReleaseImage(VdChn,&stFrameInfo);
        VDEC_Info(&stFrameInfo);
        // open output file
        pFile = fopen(aszFileName,"wb");
        if(!pFile)
        {
                DEMO_PRT("open file [%s] failed\n",aszFileName);
                return (HI_VOID*)-1;
        }
        while(s32Cnt--)
        {
                if(HI_SUCCESS != HI_MPI_VDEC_GetImage(VdChn,&stFrameInfo,s32MilliSec))
                {
                        DEMO_PRT("get frame fail \n");
                        usleep(1000);
                        continue;
                }
                //printf("frame left [%d]\n",s32Cnt);
                VDEC_Dump(&stFrameInfo,pFile);
                HI_MPI_VDEC_ReleaseImage(VdChn,&stFrameInfo);
        }
        fclose(pFile);
        return (HI_VOID *)0;
}

这个dump函数抄的例子里边的sample_yuv_dump()
HI_VOID VDEC_Dump(VIDEO_FRAME_INFO_S *pstFrameInfo, FILE *pFile)
{
        VIDEO_FRAME_S stVFrame;
        char* buf_y = NULL;
        char* buf_c = NULL;
        char* pContent;
        HI_U32 ysize,csize;
        HI_U32 phy_addr;
        HI_U32 uvHeight;
        HI_S32 h,w;
        HI_U8 tmpbuf[4096];

        stVFrame = pstFrameInfo->stVFrame;
        ysize = (stVFrame.u32Stride[0])*(stVFrame.u32Height);
        csize = (stVFrame.u32Stride[1])*(stVFrame.u32Height)/2;
        uvHeight = stVFrame.u32Height / 2;
       
        buf_y = (char *)HI_MPI_SYS_Mmap(stVFrame.u32PhyAddr[0],ysize);
        if(NULL == buf_y)
        {
                DEMO_PRT("mmap err");
                return;
        }
        buf_c = (char *)HI_MPI_SYS_Mmap(stVFrame.u32PhyAddr[1],csize);
        if(NULL == buf_c)
        {
                DEMO_PRT("mmap err");
                HI_MPI_SYS_Munmap(buf_y,ysize);
                buf_y = NULL;
                return;
        }
        // save y...................
        fprintf(stderr,"saving >>>>>>>>> y >>>>>>>>>>>");
        fflush(stderr);
        for(h = 0; h < stVFrame.u32Height; h++)
        {
                pContent = buf_y + h * stVFrame.u32Stride[0];
                fwrite(pContent, stVFrame.u32Width, 1, pFile);
        }
        fflush(pFile);
        // save u..................
#if 1
        fprintf(stderr,"saving >>>>>>>>> u >>>>>>>>>>>");
        fflush(stderr);
        for(h = 0; h < uvHeight; h++)
        {
                pContent = buf_c + h * stVFrame.u32Stride[1];
                pContent += 1;
                for(w = 0; w < stVFrame.u32Width/2; w++)
                {
                        tmpbuf[w] = *pContent;
                        pContent += 2;
                }
                fwrite(tmpbuf, stVFrame.u32Width/2, 1, pFile);
        }
        fflush(pFile);
        // save v..................
        fprintf(stderr,"saving >>>>>>>>> v >>>>>>>>>>>");
        fflush(stderr);
        for(h = 0; h < uvHeight; h++)
        {
                pContent = buf_c + h * stVFrame.u32Stride[1];
                for(w = 0; w < stVFrame.u32Width/2; w++)
                {
                        tmpbuf[w] = *pContent;
                        pContent += 2;
                }
                fwrite(tmpbuf, stVFrame.u32Width/2, 1, pFile);
        }
        fflush(pFile);
#endif       
        fprintf(stderr,"done %d!\n",stVFrame.u32TimeRef);
        fflush(stderr);

        HI_MPI_SYS_Munmap(buf_y,ysize);
        buf_y = NULL;
        HI_MPI_SYS_Munmap(buf_c,csize);
        buf_c = NULL;
}

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-03-17 11:09:04
认可0
本帖最后由 zhuangweiye 于 2017-3-17 11:10 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=46670&ptid=14488]mythares 发表于 2017-3-16 19:17[/url]
再次感谢,试了下关闭了NR还是不行

前边的是vdec->vo  使用 vou_chn_dump 抓取的一帧
[/quote]

先把下面的值打出来看看

pstFrameInfo->stVFrame.enVideoFormat
pstFrameInfo->stVFrame.enCompressMode

看代码没问题, 但是只能处理非压缩线性的格式

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-03-17 17:21:02
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46670&ptid=14488]mythares 发表于 2017-3-16 19:17[/url]
再次感谢,试了下关闭了NR还是不行

前边的是vdec->vo  使用 vou_chn_dump 抓取的一帧
[/quote]

把VPSS创建参数都设为HI_FALSE再试试

看楼主是把NR和ES(边缘平滑)都打开了

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-18 13:27:34
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46684&ptid=14488]zhuangweiye 发表于 2017-3-17 11:09[/url]
先把下面的值打出来看看

pstFrameInfo->stVFrame.enVideoFormat
[/quote]

:victory:谢谢大神原来vdec直接出来是 TILE格式的,怪不得不能直接显示

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-18 13:29:54
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46710&ptid=14488]zhuangweiye 发表于 2017-3-17 17:21[/url]
把VPSS创建参数都设为HI_FALSE再试试

看楼主是把NR和ES(边缘平滑)都打开了[/quote]

这个都设置了FALSE还是没有效果 Orz

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-03-20 08:47:38
认可0
本帖最后由 zhuangweiye 于 2017-3-20 08:50 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=46731&ptid=14488]mythares 发表于 2017-3-18 13:29[/url]
这个都设置了FALSE还是没有效果 Orz[/quote]

SpEn 设了吗?

看不出还有什么要改了:L

另外:很想知道楼主从VPSS处理后得图的流程,这里会不会有问题?

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-20 10:52:01
认可0
本帖最后由 mythares 于 2017-3-20 10:54 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=46783&ptid=14488]zhuangweiye 发表于 2017-3-20 08:47[/url]
SpEn 设了吗?

看不出还有什么要改了
[/quote]

Spen也设置了:L ,VPSS处理后就直接绑定了VO进行显示

VoLayer = DEMO_VO_LAYER_VHD0;
220     stLayerAttr.bClusterMode = HI_FALSE;
221     stLayerAttr.bDoubleFrame = HI_FALSE;
222     stLayerAttr.enPixFormat = DEMO_PIXEL_FORMAT;                                                                                                                  
223     s32Ret = Demo_VO_GetWH(stVoPubAttr.enIntfSync, &stLayerAttr.stDispRect.u32Width, &stLayerAttr.stDispRect.u32Height, &stLayerAttr.u32DispFrmRt);
224     if(HI_SUCCESS != s32Ret)
225     {
226         DEMO_PRT("failed with %#x!\n", s32Ret);
227         goto  END_6;
228     }
229     stLayerAttr.stImageSize.u32Width = stLayerAttr.stDispRect.u32Width;
230     stLayerAttr.stImageSize.u32Height = stLayerAttr.stDispRect.u32Height;
231
232     s32Ret = Demo_VO_StartLayer(VoLayer, &stLayerAttr);
233     if (HI_SUCCESS != s32Ret)
234     {
235         DEMO_PRT("DEMO_COMM_VO_StartLayer failed!\n");
236         goto END_7;
237     }
238     /**************start Chn****************************/
239     enVoMode = VO_MODE_1MUX;
240     s32Ret = Demo_VO_StartChn(VoLayer,enVoMode);
241     if (s32Ret != HI_SUCCESS)
242     {
243         DEMO_PRT("failed with %#x!\n", s32Ret);
244         goto  END_7;
245     }

503 HI_S32 Demo_VO_BindVpss(VO_LAYER VoLayer, VO_CHN VoChn, VPSS_GRP VpssGrp, VPSS_CHN VpssChn)
504 {
505     HI_S32 s32Ret = HI_SUCCESS;
506     MPP_CHN_S stSrcChn;
507     MPP_CHN_S stDestChn;
508
509     stSrcChn.enModId = HI_ID_VPSS;
510     stSrcChn.s32DevId = VpssGrp;
511     stSrcChn.s32ChnId = VpssChn;
512
513     stDestChn.enModId = HI_ID_VOU;
514     stDestChn.s32DevId = VoLayer;
515     stDestChn.s32ChnId = VoChn;
516
517     s32Ret = HI_MPI_SYS_Bind(&stSrcChn, &stDestChn);
518     if (s32Ret != HI_SUCCESS)
519     {
520         DEMO_PRT("failed with %#x!\n", s32Ret);
521         return HI_FAILURE;
522     }
523
524     return s32Ret;
525 }

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2017-03-20 11:43:31
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46793&ptid=14488]mythares 发表于 2017-3-20 10:52[/url]
Spen也设置了 ,VPSS处理后就直接绑定了VO进行显示

VoLayer = DEMO_VO_LAYER_VHD0;
[/quote]

我的意思是,楼主从vpss取图,然后放到PC上去看的流程上是不是会有问题?


vdec-〉vpss-〉vo都用了好久了,都没有问题

blacktangel

0个粉丝

12

问答

0

专栏

0

资料

blacktangel 2017-03-20 17:48:40
认可0
本帖最后由 blacktangel 于 2017-3-20 19:24 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=46799&ptid=14488]zhuangweiye 发表于 2017-3-20 11:43[/url]
我的意思是,楼主从vpss取图,然后放到PC上去看的流程上是不是会有问题?


[/quote]

    我也和楼主遇到了相同的问题。
    我已经将所有的改变图像的参数都关闭了但是解码出来的视频就是模糊想蒙了一层雾一样。你用3536测试过没有,难道没有出现这种情况吗?感觉这个很明显的现象对比3535更能体现。

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-20 17:57:05
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=46836&ptid=14488]blacktangel 发表于 2017-3-20 17:48[/url]
我也和楼主遇到了相同的问题。
    我已经将所有的改变图像的参数都关闭了但是解码出来的视频就是模 ...[/quote]

恩,是的  解码直接显示不会模糊,,但是中间过vpss哪怕不处理也会变模糊 Orz

mythares

1个粉丝

4

问答

0

专栏

1

资料

mythares 2017-03-20 18:01:15
认可0
本帖最后由 mythares 于 2017-3-20 18:03 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=46799&ptid=14488]zhuangweiye 发表于 2017-3-20 11:43[/url]
我的意思是,楼主从vpss取图,然后放到PC上去看的流程上是不是会有问题?


[/quote]

这个的话 我尝试了使用SDK里边的vpss_chn_dump 工具 抓取后使用ffplay 播放出来的,,,就是最后抓取显示和使用vo在显示器显示都模糊了 =.=
加载中···
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区