[x265] [PATCH 2 of 5] Add encoded frame bits into analysis structure
# HG changeset patch # User Santhoshini Sekar # Date 1566979332 -19800 # Wed Aug 28 13:32:12 2019 +0530 # Node ID 96fb4962ccb59f7c51c8a56c5d495ced1d8c2941 # Parent f27e4c589564fcaea1aa777668e80b982bcc5ebf Add encoded frame bits into analysis structure diff -r f27e4c589564 -r 96fb4962ccb5 source/encoder/api.cpp --- a/source/encoder/api.cppThu Oct 17 12:04:07 2019 +0530 +++ b/source/encoder/api.cppWed Aug 28 13:32:12 2019 +0530 @@ -190,6 +190,7 @@ } encoder->create(); +p->frameNumThreads = encoder->m_param->frameNumThreads; if (!param->bResetZoneConfig) { diff -r f27e4c589564 -r 96fb4962ccb5 source/encoder/encoder.cpp --- a/source/encoder/encoder.cppThu Oct 17 12:04:07 2019 +0530 +++ b/source/encoder/encoder.cppWed Aug 28 13:32:12 2019 +0530 @@ -1807,6 +1807,10 @@ if ((m_outputCount + 1) >= m_param->chunkStart) finishFrameStats(outFrame, curEncoder, frameData, m_pocLast); +if (m_param->analysisSave) +{ +pic_out->analysisData.frameBits = frameData->bits; +} /* Write RateControl Frame level stats in multipass encodes */ if (m_param->rc.bStatWrite) diff -r f27e4c589564 -r 96fb4962ccb5 source/x265.h --- a/source/x265.h Thu Oct 17 12:04:07 2019 +0530 +++ b/source/x265.h Wed Aug 28 13:32:12 2019 +0530 @@ -219,6 +219,7 @@ uint8_t* modeFlag[2]; x265_analysis_validatesaveParam; x265_analysis_distortion_data*distortionData; +uint64_t frameBits; } x265_analysis_data; /* cu statistics */ # HG changeset patch # User Santhoshini Sekar # Date 1566979332 -19800 # Wed Aug 28 13:32:12 2019 +0530 # Node ID 96fb4962ccb59f7c51c8a56c5d495ced1d8c2941 # Parent f27e4c589564fcaea1aa777668e80b982bcc5ebf Add encoded frame bits into analysis structure diff -r f27e4c589564 -r 96fb4962ccb5 source/encoder/api.cpp --- a/source/encoder/api.cpp Thu Oct 17 12:04:07 2019 +0530 +++ b/source/encoder/api.cpp Wed Aug 28 13:32:12 2019 +0530 @@ -190,6 +190,7 @@ } encoder->create(); +p->frameNumThreads = encoder->m_param->frameNumThreads; if (!param->bResetZoneConfig) { diff -r f27e4c589564 -r 96fb4962ccb5 source/encoder/encoder.cpp --- a/source/encoder/encoder.cpp Thu Oct 17 12:04:07 2019 +0530 +++ b/source/encoder/encoder.cpp Wed Aug 28 13:32:12 2019 +0530 @@ -1807,6 +1807,10 @@ if ((m_outputCount + 1) >= m_param->chunkStart) finishFrameStats(outFrame, curEncoder, frameData, m_pocLast); +if (m_param->analysisSave) +{ +pic_out->analysisData.frameBits = frameData->bits; +} /* Write RateControl Frame level stats in multipass encodes */ if (m_param->rc.bStatWrite) diff -r f27e4c589564 -r 96fb4962ccb5 source/x265.h --- a/source/x265.h Thu Oct 17 12:04:07 2019 +0530 +++ b/source/x265.h Wed Aug 28 13:32:12 2019 +0530 @@ -219,6 +219,7 @@ uint8_t* modeFlag[2]; x265_analysis_validatesaveParam; x265_analysis_distortion_data*distortionData; +uint64_t frameBits; } x265_analysis_data; /* cu statistics */ ___ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel
[x265] [PATCH 2 of 5] Add encoded frame bits into analysis structure
# HG changeset patch # User Santhoshini Sekar # Date 1566979332 -19800 # Wed Aug 28 13:32:12 2019 +0530 # Node ID 9fee87536f7c7e0ab5af89a65a026e24783d1567 # Parent b2bb096d9e267df7e71a3464e71da14f663b42db Add encoded frame bits into analysis structure diff -r b2bb096d9e26 -r 9fee87536f7c source/encoder/api.cpp --- a/source/encoder/api.cppThu Oct 17 12:04:07 2019 +0530 +++ b/source/encoder/api.cppWed Aug 28 13:32:12 2019 +0530 @@ -190,6 +190,7 @@ } encoder->create(); +p->frameNumThreads = encoder->m_param->frameNumThreads; if (!param->bResetZoneConfig) { diff -r b2bb096d9e26 -r 9fee87536f7c source/encoder/encoder.cpp --- a/source/encoder/encoder.cppThu Oct 17 12:04:07 2019 +0530 +++ b/source/encoder/encoder.cppWed Aug 28 13:32:12 2019 +0530 @@ -1807,6 +1807,10 @@ if ((m_outputCount + 1) >= m_param->chunkStart) finishFrameStats(outFrame, curEncoder, frameData, m_pocLast); +if (m_param->analysisSave) +{ +pic_out->analysisData.frameBits = frameData->bits; +} /* Write RateControl Frame level stats in multipass encodes */ if (m_param->rc.bStatWrite) diff -r b2bb096d9e26 -r 9fee87536f7c source/x265.h --- a/source/x265.h Thu Oct 17 12:04:07 2019 +0530 +++ b/source/x265.h Wed Aug 28 13:32:12 2019 +0530 @@ -219,6 +219,7 @@ uint8_t* modeFlag[2]; x265_analysis_validatesaveParam; x265_analysis_distortion_data*distortionData; +uint64_t frameBits; } x265_analysis_data; /* cu statistics */ # HG changeset patch # User Santhoshini Sekar # Date 1566979332 -19800 # Wed Aug 28 13:32:12 2019 +0530 # Node ID 9fee87536f7c7e0ab5af89a65a026e24783d1567 # Parent b2bb096d9e267df7e71a3464e71da14f663b42db Add encoded frame bits into analysis structure diff -r b2bb096d9e26 -r 9fee87536f7c source/encoder/api.cpp --- a/source/encoder/api.cpp Thu Oct 17 12:04:07 2019 +0530 +++ b/source/encoder/api.cpp Wed Aug 28 13:32:12 2019 +0530 @@ -190,6 +190,7 @@ } encoder->create(); +p->frameNumThreads = encoder->m_param->frameNumThreads; if (!param->bResetZoneConfig) { diff -r b2bb096d9e26 -r 9fee87536f7c source/encoder/encoder.cpp --- a/source/encoder/encoder.cpp Thu Oct 17 12:04:07 2019 +0530 +++ b/source/encoder/encoder.cpp Wed Aug 28 13:32:12 2019 +0530 @@ -1807,6 +1807,10 @@ if ((m_outputCount + 1) >= m_param->chunkStart) finishFrameStats(outFrame, curEncoder, frameData, m_pocLast); +if (m_param->analysisSave) +{ +pic_out->analysisData.frameBits = frameData->bits; +} /* Write RateControl Frame level stats in multipass encodes */ if (m_param->rc.bStatWrite) diff -r b2bb096d9e26 -r 9fee87536f7c source/x265.h --- a/source/x265.h Thu Oct 17 12:04:07 2019 +0530 +++ b/source/x265.h Wed Aug 28 13:32:12 2019 +0530 @@ -219,6 +219,7 @@ uint8_t* modeFlag[2]; x265_analysis_validatesaveParam; x265_analysis_distortion_data*distortionData; +uint64_t frameBits; } x265_analysis_data; /* cu statistics */ ___ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel