VirtualBox

Changeset 74984 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 22, 2018 8:33:59 PM (6 years ago)
Author:
vboxsync
Message:

VideoRec/Main: Moved the video codec's pointer to the YUV plane into its according struct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/VideoRec.cpp

    r74971 r74984  
    106106            /** VPX image context. */
    107107            vpx_image_t         RawImage;
     108            /** Pointer to the codec's internal YUV buffer. */
     109            uint8_t            *pu8YuvBuf;
    108110        } VPX;
    109111#endif /* VBOX_WITH_LIBVPX */
     
    293295        /** Time stamp (in ms) of the last video frame we encoded. */
    294296        uint64_t            uLastTimeStampMs;
    295         /** Pointer to the codec's internal YUV buffer. */
    296         uint8_t            *pu8YuvBuf;
    297297        /** Number of failed attempts to encode the current video frame in a row. */
    298298        uint16_t            cFailedEncodingFrames;
     
    753753                    AssertPtr(pBlock);
    754754
     755#ifdef VBOX_WITH_LIBVPX
    755756                    if (pBlock->enmType == VIDEORECBLOCKTYPE_VIDEO)
    756757                    {
     
    759760                        rc = videoRecRGBToYUV(pVideoFrame->uPixelFormat,
    760761                                              /* Destination */
    761                                               pStream->Video.pu8YuvBuf, pVideoFrame->uWidth, pVideoFrame->uHeight,
     762                                              pStream->Video.Codec.VPX.pu8YuvBuf, pVideoFrame->uWidth, pVideoFrame->uHeight,
    762763                                              /* Source */
    763764                                              pVideoFrame->pu8RGBBuf, pStream->Video.uWidth, pStream->Video.uHeight);
     
    765766                            rc = videoRecEncodeAndWrite(pStream, uTimeStampMs, pVideoFrame);
    766767                    }
    767 
     768#endif
    768769                    videoRecBlockFree(pBlock);
    769770                    pBlock = NULL;
     
    14141415
    14151416    /* Save a pointer to the first raw YUV plane. */
    1416     pStream->Video.pu8YuvBuf = pVC->VPX.RawImage.planes[0];
     1417    pStream->Video.Codec.VPX.pu8YuvBuf = pVC->VPX.RawImage.planes[0];
    14171418#endif
    14181419    pStream->fEnabled = true;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette