Changeset 74984 in vbox for trunk/src/VBox
- Timestamp:
- Oct 22, 2018 8:33:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/VideoRec.cpp
r74971 r74984 106 106 /** VPX image context. */ 107 107 vpx_image_t RawImage; 108 /** Pointer to the codec's internal YUV buffer. */ 109 uint8_t *pu8YuvBuf; 108 110 } VPX; 109 111 #endif /* VBOX_WITH_LIBVPX */ … … 293 295 /** Time stamp (in ms) of the last video frame we encoded. */ 294 296 uint64_t uLastTimeStampMs; 295 /** Pointer to the codec's internal YUV buffer. */296 uint8_t *pu8YuvBuf;297 297 /** Number of failed attempts to encode the current video frame in a row. */ 298 298 uint16_t cFailedEncodingFrames; … … 753 753 AssertPtr(pBlock); 754 754 755 #ifdef VBOX_WITH_LIBVPX 755 756 if (pBlock->enmType == VIDEORECBLOCKTYPE_VIDEO) 756 757 { … … 759 760 rc = videoRecRGBToYUV(pVideoFrame->uPixelFormat, 760 761 /* Destination */ 761 pStream->Video. pu8YuvBuf, pVideoFrame->uWidth, pVideoFrame->uHeight,762 pStream->Video.Codec.VPX.pu8YuvBuf, pVideoFrame->uWidth, pVideoFrame->uHeight, 762 763 /* Source */ 763 764 pVideoFrame->pu8RGBBuf, pStream->Video.uWidth, pStream->Video.uHeight); … … 765 766 rc = videoRecEncodeAndWrite(pStream, uTimeStampMs, pVideoFrame); 766 767 } 767 768 #endif 768 769 videoRecBlockFree(pBlock); 769 770 pBlock = NULL; … … 1414 1415 1415 1416 /* 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]; 1417 1418 #endif 1418 1419 pStream->fEnabled = true;
Note:
See TracChangeset
for help on using the changeset viewer.