[x265] how to build x265 that supports both 8bit and 10bit

qw applemax82 at 163.com
Fri May 17 10:23:38 CEST 2019



what's the difference between 3.0, 3.0_Au, and 3.0_RC?


Thanks!


Regards


Andrew




At 2019-05-17 11:38:07, "chen" <chenm003 at 163.com> wrote:

Hi,


Could you please try it with multilib.bat
It is Steve's idea, we build lib two times with different bit_depth and combine these libs into one multiple feature lib.


Regards,
Min Chen


At 2019-05-17 11:06:13, "qw" <applemax82 at 163.com> wrote:
hi,


I read x265 source code, and find one function, as shown below:




int x265_param_apply_profile(x265_param *param, const char *profile)
{
    if (!param || !profile)
        return 0;


    /* Check if profile bit-depth requirement is exceeded by internal bit depth */
    bool bInvalidDepth = false;
#if X265_DEPTH > 8
    if (!strcmp(profile, "main") || !strcmp(profile, "mainstillpicture") || !strcmp(profile, "msp") ||
        !strcmp(profile, "main444-8") || !strcmp(profile, "main-intra") ||
        !strcmp(profile, "main444-intra") || !strcmp(profile, "main444-stillpicture"))
        bInvalidDepth = true;
#endif
#if X265_DEPTH > 10
    if (!strcmp(profile, "main10") || !strcmp(profile, "main422-10") || !strcmp(profile, "main444-10") ||
        !strcmp(profile, "main10-intra") || !strcmp(profile, "main422-10-intra") || !strcmp(profile, "main444-10-intra"))
        bInvalidDepth = true;
#endif
#if X265_DEPTH > 12
    if (!strcmp(profile, "main12") || !strcmp(profile, "main422-12") || !strcmp(profile, "main444-12") ||
        !strcmp(profile, "main12-intra") || !strcmp(profile, "main422-12-intra") || !strcmp(profile, "main444-12-intra"))
        bInvalidDepth = true;
#endif


    if (bInvalidDepth)
    {
        x265_log(param, X265_LOG_ERROR, "%s profile not supported, internal bit depth %d.\n", profile, X265_DEPTH);
        return -1;
    }


It seems that the logic will report error, when x265 is built with X265_DEPTH = 10 and profile is of 8bit.


How to make x265 support both 8bit and 10bit?


Thanks!


Regards


Andrew














 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20190517/b30406cf/attachment.html>


More information about the x265-devel mailing list