chromium/third_party/dav1d/libdav1d/src/scan.c

/*
 * Copyright © 2018, VideoLAN and dav1d authors
 * Copyright © 2018, Two Orioles, LLC
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this
 *    list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "config.h"

#include "common/attributes.h"
#include "common/intops.h"

#include "src/scan.h"
#include "src/thread.h"

static const uint16_t ALIGN(scan_4x4[], 32) =;

static const uint16_t ALIGN(scan_4x8[], 32) =;

static const uint16_t ALIGN(scan_4x16[], 32) =;

static const uint16_t ALIGN(scan_8x4[], 32) =;

static const uint16_t ALIGN(scan_8x8[], 32) =;

static const uint16_t ALIGN(scan_8x16[], 32) =;

static const uint16_t ALIGN(scan_8x32[], 32) =;

static const uint16_t ALIGN(scan_16x4[], 32) =;

static const uint16_t ALIGN(scan_16x8[], 32) =;

static const uint16_t ALIGN(scan_16x16[], 32) =;

static const uint16_t ALIGN(scan_16x32[], 32) =;

static const uint16_t ALIGN(scan_32x8[], 32) =;

static const uint16_t ALIGN(scan_32x16[], 32) =;

static const uint16_t ALIGN(scan_32x32[], 32) =;

const uint16_t *const dav1d_scans[N_RECT_TX_SIZES] =;

static uint8_t last_nonzero_col_from_eob_4x4[16];
static uint8_t last_nonzero_col_from_eob_8x8[64];
static uint8_t last_nonzero_col_from_eob_16x16[256];
static uint8_t last_nonzero_col_from_eob_32x32[1024];
static uint8_t last_nonzero_col_from_eob_4x8[32];
static uint8_t last_nonzero_col_from_eob_8x4[32];
static uint8_t last_nonzero_col_from_eob_8x16[128];
static uint8_t last_nonzero_col_from_eob_16x8[128];
static uint8_t last_nonzero_col_from_eob_16x32[512];
static uint8_t last_nonzero_col_from_eob_32x16[512];
static uint8_t last_nonzero_col_from_eob_4x16[64];
static uint8_t last_nonzero_col_from_eob_16x4[64];
static uint8_t last_nonzero_col_from_eob_8x32[256];
static uint8_t last_nonzero_col_from_eob_32x8[256];

static COLD void init_tbl(uint8_t *const last_nonzero_col_from_eob,
                          const uint16_t *const scan, const int w, const int h)
{}

static COLD void init_internal(void) {}

COLD void dav1d_init_last_nonzero_col_from_eob_tables(void) {}

const uint8_t *const dav1d_last_nonzero_col_from_eob[N_RECT_TX_SIZES] =;