Home | History | Annotate | Download | only in src

Lines Matching refs:psPicParams

1305     PIC_PARAMS * psPicParams = &ctx->sPicParams;
1306 ui32Flags = psPicParams->ui32Flags;
1336 PIC_PARAMS *psPicParams = &(ctx->sPicParams);
1371 psPicParams->sInParams.ui8SeInitQP = psRCParams->ui32InitialQp;
1372 psPicParams->sInParams.ui8MBPerRow = (ctx->ui16Width>>4);
1373 psPicParams->sInParams.ui16MBPerBU = psRCParams->ui32BUSize;
1374 psPicParams->sInParams.ui16MBPerFrm = (ctx->ui16Width>>4) * (ctx->ui16PictureHeight>>4);
1375 psPicParams->sInParams.ui16BUPerFrm = (psPicParams->sInParams.ui16MBPerFrm) / psRCParams->ui32BUSize;
1377 psPicParams->sInParams.ui16IntraPeriod = psRCParams->ui32IntraFreq;
1378 psPicParams->sInParams.ui16BFrames = psRCParams->ui16BFrames;
1379 psPicParams->sInParams.i32BitRate = psRCParams->ui32BitsPerSecond;
1381 psPicParams->sInParams.bFrmSkipDisable = psRCParams->bDisableFrameSkipping;
1382 psPicParams->sInParams.i32BitsPerFrm = (psRCParams->ui32BitsPerSecond + psRCParams->ui32FrameRate/2) / psRCParams->ui32FrameRate;
1383 psPicParams->sInParams.i32BitsPerBU = psPicParams->sInParams.i32BitsPerFrm / (4 * psPicParams->sInParams.ui16BUPerFrm);
1387 psPicParams->sInParams.mode.h264.i32TransferRate = (psRCParams->ui32TransferBitsPerSecond + psRCParams->ui32FrameRate/2) / psRCParams->ui32FrameRate;
1388 psPicParams->sInParams.mode.h264.bHierarchicalMode = psRCParams->b16Hierarchical;
1390 psPicParams->sInParams.mode.other.i32BitsPerGOP = (psRCParams->ui32BitsPerSecond / psRCParams->ui32FrameRate) * psRCParams->ui32IntraFreq;
1391 psPicParams->sInParams.mode.other.ui16AvQPVal = psRCParams->ui32InitialQp;
1392 psPicParams->sInParams.mode.other.ui16MyInitQP = psRCParams->ui32InitialQp;
1396 if (psPicParams->sInParams.i32BitsPerFrm) {
1397 i32BufferSizeInFrames = (psRCParams->ui32BufferSize + (psPicParams->sInParams.i32BitsPerFrm/2))/psPicParams->sInParams.i32BitsPerFrm;
1408 psPicParams->sInParams.ui8MaxQPVal = 51;
1409 ctx->ui32KickSize = psPicParams->sInParams.ui16MBPerBU;
1430 if (psPicParams->sInParams.ui16MBPerFrm > 2000) {
1437 psPicParams->sInParams.ui8MinQPVal = 2;
1439 psPicParams->sInParams.ui8MinQPVal = i32TmpQp;
1443 i32TmpQp = psPicParams->sInParams.ui8SeInitQP;
1444 if (psPicParams->sInParams.ui8SeInitQP==0) {
1477 if (psPicParams->sInParams.ui16MBPerFrm > 2000) {
1481 if(psPicParams->sInParams.ui16IntraPeriod ==1)
1485 } else if (psPicParams->sInParams.ui16IntraPeriod<5) {
1493 if (i32TmpQp < psPicParams->sInParams.ui8MinQPVal) {
1494 i32TmpQp = psPicParams->sInParams.ui8MinQPVal;
1496 psPicParams->sInParams.ui8SeInitQP = i32TmpQp;
1499 psPicParams->ui32Flags |= ISRC_I16BIAS;
1506 psPicParams->sInParams.ui8MaxQPVal = 31;
1515 if (psPicParams->sInParams.ui8SeInitQP==0) {
1517 psPicParams->sInParams.ui8SeInitQP = 31;
1519 psPicParams->sInParams.ui8SeInitQP = 26;
1521 psPicParams->sInParams.ui8SeInitQP = 22;
1523 psPicParams->sInParams.ui8SeInitQP = 18;
1525 psPicParams->sInParams.ui8SeInitQP = 14;
1527 psPicParams->sInParams.ui8SeInitQP = 10;
1529 psPicParams->sInParams.ui8SeInitQP = 8;
1534 psPicParams->sInParams.ui8SeInitQP += 2;
1537 if (psPicParams->sInParams.ui8SeInitQP > psPicParams->sInParams.ui8MaxQPVal) {
1538 psPicParams->sInParams.ui8SeInitQP = psPicParams->sInParams.ui8MaxQPVal;
1540 psPicParams->sInParams.mode.other.ui16AvQPVal = psPicParams->sInParams.ui8SeInitQP;
1542 psPicParams->sInParams.ui8MinQPVal = 2;
1546 psPicParams->sInParams.ui8MinQPVal += 1;
1556 psPicParams->sInParams.ui16MBPerBU = psPicParams->sInParams.ui16MBPerFrm;
1557 psPicParams->sInParams.ui16BUPerFrm = 1;
1560 psPicParams->sInParams.i32BufferSize = psRCParams->ui32BufferSize;
1566 psPicParams->sInParams.ui8ScaleFactor = 2; // related to complexity
1570 psPicParams->sInParams.ui8ScaleFactor = 4;
1574 psPicParams->sInParams.ui8ScaleFactor = 6;
1576 psPicParams->sInParams.ui8ScaleFactor = 8;
1583 psPicParams->sInParams.i32BufferSize = psRCParams->ui32BufferSize;
1588 psPicParams->sInParams.ui8ScaleFactor = 0;
1591 psPicParams->sInParams.ui8ScaleFactor = 1;
1594 psPicParams->sInParams.ui8ScaleFactor = 2;
1597 psPicParams->sInParams.ui8ScaleFactor = 3;
1599 psPicParams->sInParams.ui8ScaleFactor = 4;
1603 psPicParams->sInParams.i32BufferSize = i32BufferSizeInFrames;
1612 psPicParams->sInParams.ui16MBPerFrm > 1024 && flBpp < 16) || (psPicParams->sInParams.ui16MBPerFrm <= 1024 && flBpp < 24))
1613 psPicParams->sInParams.mode.other.ui8HalfFrameRate = 1;
1615 psPicParams->sInParams.mode.other.ui8HalfFrameRate = 0;
1617 if (psPicParams->sInParams.mode.other.ui8HalfFrameRate >= 1) {
1618 psPicParams->sInParams.ui8SeInitQP = 31;
1619 psPicParams->sInParams.mode.other.ui16AvQPVal = 31;
1620 psPicParams->sInParams.mode.other.ui16MyInitQP = 31;
1623 psPicParams->sInParams.i32BufferSize = psRCParams->ui32BufferSize;
1631 psPicParams->ui32Flags |= ISSCENE_DISABLED;
1633 psPicParams->sInParams.i32InitialDelay = psRCParams->i32InitialDelay;
1634 psPicParams->sInParams.i32InitialLevel = psRCParams->i32InitialLevel;
1635 psRCParams->ui32InitialQp = psPicParams->sInParams.ui8SeInitQP;
1639 if (psPicParams->sInParams.i32BitsPerFrm) {
1641 psPicParams->sInParams.mode.h264.ui32RCScaleFactor = (bitsPerGop * 256) /
1642 (psPicParams->sInParams.i32BufferSize - psPicParams->sInParams.i32InitialLevel);
1644 psPicParams->sInParams.mode.h264.ui32RCScaleFactor = 0;
1647 psPicParams->sInParams.mode.other.ui16MyInitQP = psPicParams->sInParams.ui8SeInitQP;
2379 PIC_PARAMS *psPicParams = &(ctx->sPicParams);
2380 IN_RC_PARAMS* psInParams = &(psPicParams->sInParams);
2381 psPicParams->ui32Flags = 0;
2387 psPicParams->ui32Flags |= ISH263_FLAGS;
2390 psPicParams->ui32Flags |= ISMPEG4_FLAGS;
2393 psPicParams->ui32Flags |= ISMPEG2_FLAGS;
2400 psPicParams->ui32Flags |= ISRC_FLAGS;