开发笔记 | 编译报错 | error: expected identifier or ‘(‘ before ‘return‘

开发笔记 | 编译报错 | error: expected identifier or ‘(‘ before ‘return‘_第1张图片
开发笔记 | 编译报错 | error: expected identifier or ‘(‘ before ‘return‘_第2张图片


INT32 PipView_OnDraw_3sensor(APPDISP_VIEW_DRAW *pDraw) //PIP = Picture In Picture
{
   
	IRECT            dst_region;
    UINT32 uiMovieSize;

    #if (DUALCAM_PIP_BEHIND_FLIP)
    IPOINT  dstLocation;
    #endif

    uiMovieSize = SysGetFlag(FL_MOVIE_SIZE);

    //DBG_ERR("UI_GetData(FL_DUAL_CAM) = %d\r\n",UI_GetData(FL_DUAL_CAM));
	if (pDraw->viewcnt == 3){
   

		if(UI_GetData(FL_DUAL_CAM) == DUALCAM_BOTH){
   
			if(pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_FillData(pDraw->p_dst_img, NULL, COLOR_YUV_BLACK) ;
			}

			// img1 - big
			dst_region.x = 0;
			dst_region.y = 0;
			dst_region.w = pDraw->p_dst_img->Width;
			dst_region.h = pDraw->p_dst_img->Height;
			if(pDraw->p_src_img[0] && pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_ScaleData(pDraw->p_src_img[0], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
			}

			// img2 - small
            if (GetMovieRecType_2p(uiMovieSize) == MOVIE_REC_TYPE_DUAL)
            {
   
    			dst_region.x = 0;
    			dst_region.y = 40;
    			dst_region.w = pDraw->p_dst_img->Width/3;
    			dst_region.h = pDraw->p_dst_img->Height/3;

                //CHKPNT;
    			if(pDraw->p_src_img[1] && pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
    				GxImg_ScaleData(pDraw->p_src_img[1], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
    			}
            }

			// img3 - small
			dst_region.x = pDraw->p_dst_img->Width - pDraw->p_dst_img->Width/3;
			dst_region.y = 40;
			dst_region.w = pDraw->p_dst_img->Width/3;
			dst_region.h = pDraw->p_dst_img->Height/3;
			if(pDraw->p_src_img[2] && pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_ScaleData(pDraw->p_src_img[2], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
			}
		}else if(UI_GetData(FL_DUAL_CAM) == DUALCAM_FRONT){
   //Tx1

            if(pDraw->p_src_img[0] && pDraw->p_dst_img != pDraw->p_src_img[0])
                    GxImg_FillData(pDraw->p_dst_img, NULL, COLOR_YUV_BLACK) ;

            // img0 - big
            dst_region.x = 0;
            dst_region.y = 0;
            dst_region.w = pDraw->p_dst_img->Width;
            dst_region.h = pDraw->p_dst_img->Height;
            if(pDraw->p_src_img[0] && pDraw->p_dst_img != pDraw->p_src_img[0]){
   
                    GxImg_ScaleData(pDraw->p_src_img[0], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
            }

		}else if(UI_GetData(FL_DUAL_CAM) == DUALCAM_BEHIND){
   //Tx2

            if(pDraw->p_src_img[1] && pDraw->p_dst_img != pDraw->p_src_img[1])
                    GxImg_FillData(pDraw->p_dst_img, NULL, COLOR_YUV_BLACK) ;

            // img1 - big
            dst_region.x = 0;
            dst_region.y = 0;
            dst_region.w = pDraw->p_dst_img->Width;
            dst_region.h = pDraw->p_dst_img->Height;
            if(pDraw->p_src_img[1] && pDraw->p_dst_img != pDraw->p_src_img[1]){
   
                    GxImg_ScaleData(pDraw->p_src_img[1], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
            }

		}else if(UI_GetData(FL_DUAL_CAM) == DUALCAM_BOTH2){
   //Rx Sensor

            if(pDraw->p_src_img[2] && pDraw->p_dst_img != pDraw->p_src_img[2])
                    GxImg_FillData(pDraw->p_dst_img, NULL, COLOR_YUV_BLACK) ;

            // img2 - big
            dst_region.x = 0;
            dst_region.y = 0;
            dst_region.w = pDraw->p_dst_img->Width;
            dst_region.h = pDraw->p_dst_img->Height;
            if(pDraw->p_src_img[2] && pDraw->p_dst_img != pDraw->p_src_img[2]){
   
                    GxImg_ScaleData(pDraw->p_src_img[2], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
            }

		}else  if(UI_GetData(FL_DUAL_CAM) == DUALCAM_CUSTOM_1){
    //Tx1, Tx2
			if(pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_FillData(pDraw->p_dst_img, NULL, COLOR_YUV_BLACK) ;
			}
			//DBG_DUMP("src[1] w=%d, %d, src[2] w=%d, %d, dst_img=%d, %d\r\n",pDraw->p_src_img[1]->Width,pDraw->p_src_img[1]->Height,pDraw->p_src_img[2]->Width,pDraw->p_src_img[2]->Height,pDraw->p_dst_img->Width,pDraw->p_dst_img->Height);
			// img1
			dst_region.x = 0;
			dst_region.y = 0;
			dst_region.w = pDraw->p_dst_img->Width / 2;
			dst_region.h = pDraw->p_dst_img->Height;

			if(pDraw->p_src_img[1] && pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_ScaleData(pDraw->p_src_img[1], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
			}
			// img2
			dst_region.x = pDraw->p_dst_img->Width / 2;
			dst_region.y = 0;
			if(pDraw->p_src_img[2] && pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_ScaleData(pDraw->p_src_img[2], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
			}
		}else  if(UI_GetData(FL_DUAL_CAM) == DUALCAM_CUSTOM_2){
    //Tx1, Rx, Tx2, 1:2:1
			if(pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_FillData(pDraw->p_dst_img, NULL, COLOR_YUV_BLACK) ;
			}
			//DBG_DUMP("src[0] w=%d, %d, src[1] w=%d, %d, src[2] w=%d, %d, dst_img=%d, %d\r\n",pDraw->p_src_img[0]->Width,pDraw->p_src_img[0]->Height,pDraw->p_src_img[1]->Width,pDraw->p_src_img[1]->Height,pDraw->p_src_img[2]->Width,pDraw->p_src_img[2]->Height,pDraw->p_dst_img->Width,pDraw->p_dst_img->Height);
			// img1
			UINT32 WidthUnit=ALIGN_CEIL_4(pDraw->p_dst_img->Width / 4);
			dst_region.x = WidthUnit;
			dst_region.y = 0;
			dst_region.w = 2*WidthUnit;
			dst_region.h = pDraw->p_dst_img->Height;
			if(pDraw->p_src_img[0] && pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_ScaleData(pDraw->p_src_img[0], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
			}
			// img2
			dst_region.x = 0;
			dst_region.y = 0;
			dst_region.w = WidthUnit;
			if(pDraw->p_src_img[1] && pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_ScaleData(pDraw->p_src_img[1], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
			}
			// img3
			dst_region.x = 3*WidthUnit;
			dst_region.y = 0;
			dst_region.w = WidthUnit;
			if(pDraw->p_src_img[2] && pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_ScaleData(pDraw->p_src_img[2], REGION_MATCH_IMG, pDraw->p_dst_img, &dst_region);
			}
		}else  if(UI_GetData(FL_DUAL_CAM) == DUALCAM_CUSTOM_3){
    //Tx1, Rx, Tx2, 1:1:1
			if(pDraw->p_dst_img->Width && pDraw->p_dst_img->Height){
   
				GxImg_FillData(pDraw->p_dst_img, NULL, COLOR_YUV_BLACK) ;
			}
			//DBG_DUMP("src[0] w=%d, %d, src[1] w=%d, %d, src[2] w=%d, %d, dst_img=%d, %d\r\n",pDraw->p_src_img[0]->Width,pDraw->p_src_img[0]->Height,pDraw->p_src_img[1]->Width,pDraw->p_src_img[1]->Height,pDraw->p_src_img[2]->Width,pDraw->p_src_img[2]->Height,pDraw->p_dst_img->Width,pDraw->p_dst_img->Height);
			// img1
			UINT32 WidthUnit=ALIGN_CEIL_4(pDraw->p_dst_img->Width / 3);
			dst_region.x = WidthUnit;
			dst_region.y = 0;
			dst_region.w =

你可能感兴趣的:(笔记,笔记)