Commit 98378137 authored by Sebastien Alaiwan's avatar Sebastien Alaiwan Committed by sebastien alaiwan

Allow disabling the 8-bit (low-bitdepth) operating path.

This allows compiling a codec using the same operating path (the generic
"high-bitdepth" one), regardless of the profile of the input bitstream.
For now, keep the 16-bit (generic) pixel operating path disabled by default.

Change-Id: Idd31a842b801a82c4918b1cfa7cc0bff5b11d060
parent 343c1399
......@@ -3959,15 +3959,22 @@ static void read_bitdepth_colorspace_sampling(AV1_COMMON *cm,
struct aom_read_bit_buffer *rb) {
if (cm->profile >= PROFILE_2) {
cm->bit_depth = aom_rb_read_bit(rb) ? AOM_BITS_12 : AOM_BITS_10;
#if CONFIG_AOM_HIGHBITDEPTH
cm->use_highbitdepth = 1;
#endif
} else {
cm->bit_depth = AOM_BITS_8;
}
#if CONFIG_AOM_HIGHBITDEPTH
if (cm->bit_depth > AOM_BITS_8) {
cm->use_highbitdepth = 1;
} else {
#if CONFIG_AOM_LOWBITDEPTH
cm->use_highbitdepth = 0;
#else
cm->use_highbitdepth = 1;
#endif
}
#endif
cm->color_space = aom_rb_read_literal(rb, 3);
if (cm->color_space != AOM_CS_SRGB) {
// [16,235] (including xvycc) vs [0,255] range
......
......@@ -34,7 +34,8 @@ Advanced options:
${toggle_codec_srcs} in/exclude codec library source code
${toggle_debug_libs} in/exclude debug version of libraries
${toggle_static_msvcrt} use static MSVCRT (VS builds only)
${toggle_aom_highbitdepth} use high bit depth (10/12) profiles
${toggle_aom_highbitdepth} enable 16-bit generic pixel pipeline (used by high bitdepth profiles)
${toggle_lowbitdepth} enable 8-bit optimized pixel pipeline
${toggle_better_hw_compatibility}
enable encoder to produce streams with better
hardware decoder compatibility
......@@ -358,6 +359,7 @@ CONFIG_LIST="
temporal_denoising
av1_temporal_denoising
coefficient_range_checking
lowbitdepth
aom_highbitdepth
better_hw_compatibility
experimental
......@@ -420,6 +422,7 @@ CMDLINE_SELECT="
av1_temporal_denoising
coefficient_range_checking
better_hw_compatibility
lowbitdepth
aom_highbitdepth
experimental
aom_qm
......@@ -475,6 +478,10 @@ post_process_cmdline() {
soft_enable filter_7bit
soft_enable reference_buffer
soft_enable delta_q
# Enable low-bitdepth pixel pipeline by default
soft_enable lowbitdepth
! enabled ans && soft_enable daala_ec
soft_enable ec_multisymbol
soft_enable palette
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment