• Home
  • Raw
  • Download

Lines Matching refs:sDqLayer

509   PredPSkipMvFromNeighbor (&sDqLayer, iWelsMvp); \
516 SDqLayer sDqLayer; in TEST() local
520 memset (&sDqLayer, 0, sizeof (SDqLayer)); in TEST()
523 sDqLayer.iMbWidth = 11; in TEST()
524 sDqLayer.iMbHeight = 9; in TEST()
525 if (AllocLayerData (&sDqLayer)) { //memory allocate failed in TEST()
526 FreeLayerData (&sDqLayer); in TEST()
529 InitRandomLayerData (&sDqLayer); //init MV data, as it would not affect the following logic test in TEST()
531 #define CURR_MB_IDX (sDqLayer.iMbXyIndex) in TEST()
532 #define LEFT_MB_IDX (sDqLayer.iMbXyIndex - 1) in TEST()
534 #define TOP_MB_IDX (sDqLayer.iMbXyIndex - sDqLayer.iMbWidth) in TEST()
536 #define LEFT_TOP_MB_IDX (sDqLayer.iMbXyIndex - sDqLayer.iMbWidth - 1) in TEST()
538 #define RIGHT_TOP_MB_IDX (sDqLayer.iMbXyIndex - sDqLayer.iMbWidth + 1) in TEST()
541 int32_t iTotalMbNum = sDqLayer.iMbHeight * sDqLayer.iMbWidth; in TEST()
543 sDqLayer.iMbX = 0; in TEST()
544 sDqLayer.iMbY = 0; in TEST()
545 sDqLayer.iMbXyIndex = sDqLayer.iMbY * sDqLayer.iMbWidth + sDqLayer.iMbX; in TEST()
549 sDqLayer.iMbX = rand() % sDqLayer.iMbWidth; in TEST()
550 sDqLayer.iMbY = 0; in TEST()
551 sDqLayer.iMbXyIndex = sDqLayer.iMbY * sDqLayer.iMbWidth + sDqLayer.iMbX; in TEST()
555 sDqLayer.iMbX = 0; in TEST()
556 sDqLayer.iMbY = rand() % sDqLayer.iMbHeight; in TEST()
557 sDqLayer.iMbXyIndex = sDqLayer.iMbY * sDqLayer.iMbWidth + sDqLayer.iMbX; in TEST()
561 sDqLayer.iMbX = sDqLayer.iMbWidth - 1; in TEST()
562 sDqLayer.iMbY = rand() % (sDqLayer.iMbHeight - 1) + 1; //not equal to 0 in TEST()
563 sDqLayer.iMbXyIndex = sDqLayer.iMbY * sDqLayer.iMbWidth + sDqLayer.iMbX; in TEST()
565 memset (sDqLayer.pSliceIdc, 0, iTotalMbNum * sizeof (int32_t)); in TEST()
568 sDqLayer.pMbType[i] = MB_TYPE_16x16; in TEST()
571 memset (sDqLayer.pRefIndex[0], 0, iTotalMbNum * MB_BLOCK4x4_NUM * sizeof (int8_t)); in TEST()
572 InitRandomLayerMvData (&sDqLayer); //reset Mv data in TEST()
573sDqLayer.pMv[0][LEFT_MB_IDX][LEFT_MB_BLK][0] = sDqLayer.pMv[0][LEFT_MB_IDX][LEFT_MB_BLK][1] = 0; /… in TEST()
574sDqLayer.pMv[0][ TOP_MB_IDX][ TOP_MB_BLK][0] = sDqLayer.pMv[0][ TOP_MB_IDX][ TOP_MB_BLK][1] = 1; /… in TEST()
578 memset (sDqLayer.pRefIndex[0], 0, iTotalMbNum * MB_BLOCK4x4_NUM * sizeof (int8_t)); in TEST()
579 InitRandomLayerMvData (&sDqLayer); //reset Mv data in TEST()
580sDqLayer.pMv[0][LEFT_MB_IDX][LEFT_MB_BLK][0] = sDqLayer.pMv[0][LEFT_MB_IDX][LEFT_MB_BLK][1] = 1; /… in TEST()
581sDqLayer.pMv[0][ TOP_MB_IDX][ TOP_MB_BLK][0] = sDqLayer.pMv[0][ TOP_MB_IDX][ TOP_MB_BLK][1] = 0; /… in TEST()
585 InitRandomLayerMvData (&sDqLayer); //reset Mv data in TEST()
586 sDqLayer.pRefIndex[0][ TOP_MB_IDX][ TOP_MB_BLK] = 0; //top ref_idx = 0 in TEST()
587 sDqLayer.pRefIndex[0][LEFT_MB_IDX][LEFT_MB_BLK] = 1; //left ref_idx = 1 in TEST()
588 sDqLayer.pRefIndex[0][LEFT_TOP_MB_IDX][LEFT_TOP_MB_BLK] = 1; //left_top ref_idx = 1 in TEST()
589 iAncMvp[0] = sDqLayer.pMv[0][TOP_MB_IDX][TOP_MB_BLK][0]; in TEST()
590 iAncMvp[1] = sDqLayer.pMv[0][TOP_MB_IDX][TOP_MB_BLK][1]; in TEST()
593 sDqLayer.pRefIndex[0][ TOP_MB_IDX][ TOP_MB_BLK] = 1; //top ref_idx = 1 in TEST()
594 sDqLayer.pRefIndex[0][LEFT_MB_IDX][LEFT_MB_BLK] = 0; //left ref_idx = 0 in TEST()
595 sDqLayer.pRefIndex[0][LEFT_TOP_MB_IDX][LEFT_TOP_MB_BLK] = 1; //left_top ref_idx = 1 in TEST()
596 iAncMvp[0] = sDqLayer.pMv[0][LEFT_MB_IDX][LEFT_MB_BLK][0]; in TEST()
597 iAncMvp[1] = sDqLayer.pMv[0][LEFT_MB_IDX][LEFT_MB_BLK][1]; in TEST()
601 sDqLayer.pMbType[i] = MB_TYPE_INTRA16x16; in TEST()
604 sDqLayer.pMbType[LEFT_MB_IDX] = MB_TYPE_16x16; //left P in TEST()
605 iAncMvp[0] = sDqLayer.pMv[0][LEFT_MB_IDX][LEFT_MB_BLK][0]; in TEST()
606 iAncMvp[1] = sDqLayer.pMv[0][LEFT_MB_IDX][LEFT_MB_BLK][1]; in TEST()
610 sDqLayer.pMbType[i] = MB_TYPE_INTRA16x16; in TEST()
612 …memset (sDqLayer.pRefIndex[0], 1, iTotalMbNum * MB_BLOCK4x4_NUM * sizeof (int8_t)); // All ref_idx… in TEST()
613 sDqLayer.pMbType[TOP_MB_IDX] = MB_TYPE_16x16; //top P in TEST()
614 sDqLayer.pRefIndex[0][TOP_MB_IDX][TOP_MB_BLK] = 0; //top ref_idx = 0 in TEST()
615 iAncMvp[0] = sDqLayer.pMv[0][TOP_MB_IDX][TOP_MB_BLK][0]; in TEST()
616 iAncMvp[1] = sDqLayer.pMv[0][TOP_MB_IDX][TOP_MB_BLK][1]; in TEST()
619 sDqLayer.iMbX = (rand() % (sDqLayer.iMbWidth - 2)) + 1; //1 ~ (mb_width - 2) in TEST()
620 sDqLayer.iMbY = (rand() % (sDqLayer.iMbHeight - 2)) + 1; //1 ~ (mb_height - 2) in TEST()
621 sDqLayer.iMbXyIndex = sDqLayer.iMbY * sDqLayer.iMbWidth + sDqLayer.iMbX; in TEST()
623 sDqLayer.pMbType[i] = MB_TYPE_INTRA16x16; in TEST()
625 …memset (sDqLayer.pRefIndex[0], 1, iTotalMbNum * MB_BLOCK4x4_NUM * sizeof (int8_t)); // All ref_idx… in TEST()
626 sDqLayer.pMbType[LEFT_TOP_MB_IDX] = MB_TYPE_16x16; //top P in TEST()
627 sDqLayer.pRefIndex[0][LEFT_TOP_MB_IDX][LEFT_TOP_MB_BLK] = 0; //top ref_idx = 0 in TEST()
631 sDqLayer.iMbX = (rand() % (sDqLayer.iMbWidth - 2)) + 1; //1 ~ (mb_width - 2) in TEST()
632 sDqLayer.iMbY = (rand() % (sDqLayer.iMbHeight - 2)) + 1; //1 ~ (mb_height - 2) in TEST()
633 sDqLayer.iMbXyIndex = sDqLayer.iMbY * sDqLayer.iMbWidth + sDqLayer.iMbX; in TEST()
635 sDqLayer.pMbType[i] = MB_TYPE_INTRA16x16; in TEST()
637 …memset (sDqLayer.pRefIndex[0], 1, iTotalMbNum * MB_BLOCK4x4_NUM * sizeof (int8_t)); // All ref_idx… in TEST()
638 sDqLayer.pMbType[RIGHT_TOP_MB_IDX] = MB_TYPE_16x16; //top P in TEST()
639 sDqLayer.pRefIndex[0][RIGHT_TOP_MB_IDX][RIGHT_TOP_MB_BLK] = 0; //top ref_idx = 0 in TEST()
640 iAncMvp[0] = sDqLayer.pMv[0][RIGHT_TOP_MB_IDX][RIGHT_TOP_MB_BLK][0]; in TEST()
641 iAncMvp[1] = sDqLayer.pMv[0][RIGHT_TOP_MB_IDX][RIGHT_TOP_MB_BLK][1]; in TEST()
645 sDqLayer.pMbType[i] = MB_TYPE_16x16; in TEST()
647 …memset (sDqLayer.pRefIndex[0], 0, iTotalMbNum * MB_BLOCK4x4_NUM * sizeof (int8_t)); // All ref_idx… in TEST()
648 sDqLayer.iMbX = (rand() % (sDqLayer.iMbWidth - 2)) + 1; //1 ~ (mb_width - 2) in TEST()
649 sDqLayer.iMbY = (rand() % (sDqLayer.iMbHeight - 2)) + 1; //1 ~ (mb_height - 2) in TEST()
650 sDqLayer.iMbXyIndex = sDqLayer.iMbY * sDqLayer.iMbWidth + sDqLayer.iMbX; in TEST()
651 sDqLayer.pSliceIdc[CURR_MB_IDX] = 5; in TEST()
652 sDqLayer.pSliceIdc[LEFT_MB_IDX] = 0; in TEST()
653 sDqLayer.pSliceIdc[TOP_MB_IDX] = 1; in TEST()
654 sDqLayer.pSliceIdc[LEFT_TOP_MB_IDX] = 2; in TEST()
655 sDqLayer.pSliceIdc[RIGHT_TOP_MB_IDX] = 3; in TEST()
664 InitRandomLayerData (&sDqLayer); //init MV data, as it would not affect the following logic test in TEST()
665 AnchorPredPSkipMvFromNeighbor (&sDqLayer, iAncMvp); in TEST()
669 FreeLayerData (&sDqLayer); in TEST()