[x265] [X265 PATCH] Enable cutree for two pass encode
Dinesh Kumar Reddy
dinesh at multicorewareinc.com
Tue May 21 11:06:00 CEST 2019
# HG changeset patch
# User Akil Ayyappan<akil at multicorewareinc.com>
# Date 1558085430 -19800
# Fri May 17 15:00:30 2019 +0530
# Node ID b218b70740af26fb83ac43b35397c9a3ae795f33
# Parent 39b35ea862834f05e7437e1670e55de595c8f875
Enable cutree for two pass encode
Pushed patch to x265 default public repo.
Thanks & Regards,
Dinesh
On Fri, May 17, 2019 at 3:24 PM Akil <akil at multicorewareinc.com> wrote:
> Modified tab to space.
>
> # HG changeset patch
> # User Akil Ayyappan<akil at multicorewareinc.com>
> # Date 1558085430 -19800
> # Fri May 17 15:00:30 2019 +0530
> # Node ID b218b70740af26fb83ac43b35397c9a3ae795f33
> # Parent 39b35ea862834f05e7437e1670e55de595c8f875
> Enable cutree for two pass encode
>
> diff -r 39b35ea86283 -r b218b70740af source/encoder/slicetype.cpp
> --- a/source/encoder/slicetype.cpp Tue Mar 26 10:31:41 2019 +0530
> +++ b/source/encoder/slicetype.cpp Fri May 17 15:00:30 2019 +0530
> @@ -1165,7 +1165,9 @@
> ProfileScopeEvent(prelookahead);
> m_lock.release();
> preFrame->m_lowres.init(preFrame->m_fencPic, preFrame->m_poc);
> - if (m_lookahead.m_bAdaptiveQuant)
> + if (m_lookahead.m_param->rc.bStatRead &&
> m_lookahead.m_param->rc.cuTree && IS_REFERENCED(preFrame))
> + /* cu-tree offsets were read from stats file */;
> + else if (m_lookahead.m_bAdaptiveQuant)
> tld.calcAdaptiveQuantFrame(preFrame, m_lookahead.m_param);
> tld.lowresIntraEstimate(preFrame->m_lowres,
> m_lookahead.m_param->rc.qgSize);
> preFrame->m_lowresInit = true;
>
> On Fri, May 17, 2019 at 3:06 PM Akil <akil at multicorewareinc.com> wrote:
>
>> # HG changeset patch
>> # User Akil Ayyappan<akil at multicorewareinc.com>
>> # Date 1558085430 -19800
>> # Fri May 17 15:00:30 2019 +0530
>> # Node ID 9f990b56a958a4c58eb1dccf1f66a489976d8865
>> # Parent 39b35ea862834f05e7437e1670e55de595c8f875
>> Enable cutree for two pass encode
>>
>> diff -r 39b35ea86283 -r 9f990b56a958 source/encoder/slicetype.cpp
>> --- a/source/encoder/slicetype.cpp Tue Mar 26 10:31:41 2019 +0530
>> +++ b/source/encoder/slicetype.cpp Fri May 17 15:00:30 2019 +0530
>> @@ -1165,7 +1165,9 @@
>> ProfileScopeEvent(prelookahead);
>> m_lock.release();
>> preFrame->m_lowres.init(preFrame->m_fencPic, preFrame->m_poc);
>> - if (m_lookahead.m_bAdaptiveQuant)
>> + if (m_lookahead.m_param->rc.bStatRead &&
>> m_lookahead.m_param->rc.cuTree && IS_REFERENCED(preFrame))
>> + /* cu-tree offsets were read from stats file */;
>> + else if (m_lookahead.m_bAdaptiveQuant)
>> tld.calcAdaptiveQuantFrame(preFrame, m_lookahead.m_param);
>> tld.lowresIntraEstimate(preFrame->m_lowres,
>> m_lookahead.m_param->rc.qgSize);
>> preFrame->m_lowresInit = true;
>>
>>
>> --
>> *Regards,*
>> *Akil R*
>>
>
>
> --
> *Regards,*
> *Akil R*
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20190521/df39f1ae/attachment.html>
More information about the x265-devel
mailing list