Navigation Menu

Skip to content

Commit

Permalink
For hbd use scalar code for subpel (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleSiefring committed Jan 15, 2019
1 parent df6793d commit ebea677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mc.rs
Expand Up @@ -281,7 +281,7 @@ mod nasm {
) {
#[cfg(all(target_arch = "x86_64", not(windows), feature = "nasm"))]
{
if is_x86_feature_detected!("avx2") {
if is_x86_feature_detected!("avx2") && bit_depth == 8 {
let mut dst8: AlignedArray<[u8; 128 * 128]> =
UninitializedAlignedArray();
let mut src8: [u8; (128 + 7) * (128 + 7)] =
Expand Down Expand Up @@ -329,7 +329,7 @@ mod nasm {
col_frac: i32, row_frac: i32, mode_x: FilterMode, mode_y: FilterMode,
bit_depth: usize
) {
if is_x86_feature_detected!("avx2") {
if is_x86_feature_detected!("avx2") && bit_depth == 8 {
let mut src8: [u8; (128 + 7) * (128 + 7)] =
unsafe { mem::uninitialized() };
convert_slice_2d(
Expand Down Expand Up @@ -363,7 +363,7 @@ mod nasm {
dst: &'a mut PlaneMutSlice<'a>, tmp1: &[i16], tmp2: &[i16], width: usize,
height: usize, bit_depth: usize
) {
if is_x86_feature_detected!("avx2") {
if is_x86_feature_detected!("avx2") && bit_depth == 8 {
let mut dst8: AlignedArray<[u8; 128 * 128]> =
UninitializedAlignedArray();
unsafe {
Expand Down

0 comments on commit ebea677

Please sign in to comment.