Changeset 65362 in vbox for trunk/src/VBox
- Timestamp:
- Jan 18, 2017 1:52:32 PM (8 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r65264 r65362 709 709 VBoxC_SDKS += VBOX_VPX 710 710 VBoxC_DEFS += VBOX_WITH_LIBVPX 711 VBoxC_SOURCES += \ 712 src-client/VideoRec.cpp 711 713 else 712 714 $(error "VBox: No alternative for VPX when using video capturing support yet") … … 823 825 src-client/USBDeviceImpl.cpp \ 824 826 src-client/VBoxDriversRegister.cpp \ 825 src-client/VideoRec.cpp \826 827 src-client/VirtualBoxClientImpl.cpp \ 827 828 src-client/VMMDevInterface.cpp \ -
trunk/src/VBox/Main/src-client/EbmlWriter.cpp
r65354 r65362 532 532 int AddVideoTrack(uint16_t uWidth, uint16_t uHeight, double dbFPS, uint8_t *puTrack) 533 533 { 534 #ifdef VBOX_WITH_LIBVPX 534 535 m_Ebml.subStart(MkvElem_TrackEntry); 535 536 m_Ebml.serializeUnsignedInteger(MkvElem_TrackNumber, (uint8_t)CurSeg.mapTracks.size()); … … 556 557 557 558 return VINF_SUCCESS; 559 #else 560 RT_NOREF(uWidth, uHeight, dbFPS, puTrack); 561 return VERR_NOT_SUPPORTED; 562 #endif 558 563 } 559 564 … … 619 624 } 620 625 626 #ifdef VBOX_WITH_LIBVPX 621 627 int writeBlockVP8(WebMTrack *a_pTrack, const vpx_codec_enc_cfg_t *a_pCfg, const vpx_codec_cx_pkt_t *a_pPkt) 622 628 { … … 691 697 return writeSimpleBlockInternal(a_pTrack, tsBlockMs, a_pPkt->data.frame.buf, a_pPkt->data.frame.sz, fFlags); 692 698 } 699 #endif /* VBOX_WITH_LIBVPX */ 693 700 694 701 #ifdef VBOX_WITH_LIBOPUS … … 758 765 return writeSimpleBlockInternal(a_pTrack, tsBlockMs, pvData, cbData, 0 /* Flags */); 759 766 } 760 #endif 767 #endif /* VBOX_WITH_LIBOPUS */ 761 768 762 769 int WriteBlock(uint8_t uTrack, const void *pvData, size_t cbData) 763 770 { 764 RT_NOREF( cbData); /* Only needed for assertions for now. */771 RT_NOREF(pvData, cbData); /* Only needed for assertions for now. */ 765 772 766 773 WebMTracks::iterator itTrack = CurSeg.mapTracks.find(uTrack); … … 799 806 case WebMTrackType_Video: 800 807 { 808 #ifdef VBOX_WITH_LIBVPX 801 809 if (m_enmVideoCodec == WebMWriter::VideoCodec_VP8) 802 810 { … … 806 814 } 807 815 else 816 #endif /* VBOX_WITH_LIBVPX */ 808 817 rc = VERR_NOT_SUPPORTED; 809 818 break; … … 927 936 928 937 char szMux[64]; 929 RTStrPrintf(szMux, sizeof(szMux), "vpxenc%s", vpx_codec_version_str()); 930 938 RTStrPrintf(szMux, sizeof(szMux), 939 #ifdef VBOX_WITH_LIBVPX 940 "vpxenc%s", vpx_codec_version_str()); 941 #else 942 "unknown"); 943 #endif 931 944 char szApp[64]; 932 945 RTStrPrintf(szApp, sizeof(szApp), VBOX_PRODUCT " %sr%u", VBOX_VERSION_STRING, RTBldCfgRevision()); -
trunk/src/VBox/Main/src-client/EbmlWriter.h
r65330 r65362 19 19 #define ____EBMLWRITER 20 20 21 #ifdef _MSC_VER 22 # pragma warning(push) 23 # pragma warning(disable: 4668) /* vpx_codec.h(64) : warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' */ 24 #include <vpx/vpx_encoder.h> 25 # pragma warning(pop) 26 #else 27 # include <vpx/vpx_encoder.h> 28 #endif 21 #ifdef VBOX_WITH_LIBVPX 22 # ifdef _MSC_VER 23 # pragma warning(push) 24 # pragma warning(disable: 4668) /* vpx_codec.h(64) : warning C4668: '__GNUC__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' */ 25 # include <vpx/vpx_encoder.h> 26 # pragma warning(pop) 27 # else 28 # include <vpx/vpx_encoder.h> 29 # endif 30 #endif /* VBOX_WITH_LIBVPX */ 29 31 30 32 #include <iprt/file.h> … … 59 61 }; 60 62 63 #ifdef VBOX_WITH_LIBVPX 61 64 /** 62 65 * Block data for VP8-encoded video data. … … 67 70 const vpx_codec_cx_pkt_t *pPkt; 68 71 }; 72 #endif /* VBOX_WITH_LIBVPX */ 69 73 74 #ifdef VBOX_WITH_LIBOPUS 70 75 /** 71 76 * Block data for Opus-encoded audio data. … … 78 83 size_t cbData; 79 84 }; 85 #endif /* VBOX_WITH_LIBOPUS */ 80 86 81 87 public:
Note:
See TracChangeset
for help on using the changeset viewer.