mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 16:57:30 +09:00
This is the reference implementation for the Alliance for Open Media's av1 video code. The commit used was 4d668d7feb1f8abd809d1bca0418570a7f142a36.
82 lines
1.8 KiB
C
82 lines
1.8 KiB
C
/*
|
|
* Copyright (c) 2017, Alliance for Open Media. All rights reserved
|
|
*
|
|
* This source code is subject to the terms of the BSD 2 Clause License and
|
|
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
|
|
* was not distributed with this source code in the LICENSE file, you can
|
|
* obtain it at www.aomedia.org/license/software. If the Alliance for Open
|
|
* Media Patent License 1.0 was not distributed with this source code in the
|
|
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
|
*/
|
|
#ifndef AOM_INSPECTION_H_
|
|
#define AOM_INSPECTION_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
#if CONFIG_ACCOUNTING
|
|
#include "av1/decoder/accounting.h"
|
|
#endif
|
|
|
|
typedef void (*aom_inspect_cb)(void *decoder, void *data);
|
|
|
|
typedef struct insp_mv insp_mv;
|
|
|
|
struct insp_mv {
|
|
int16_t row;
|
|
int16_t col;
|
|
};
|
|
|
|
typedef struct insp_mi_data insp_mi_data;
|
|
|
|
struct insp_mi_data {
|
|
insp_mv mv[2];
|
|
int8_t ref_frame[2];
|
|
int8_t mode;
|
|
int8_t uv_mode;
|
|
int8_t sb_type;
|
|
int8_t skip;
|
|
int8_t segment_id;
|
|
#if CONFIG_DUAL_FILTER
|
|
int8_t filter[2];
|
|
#else
|
|
int8_t filter;
|
|
#endif
|
|
int8_t tx_type;
|
|
int8_t tx_size;
|
|
#if CONFIG_CDEF
|
|
int8_t cdef_level;
|
|
int8_t cdef_strength;
|
|
#endif
|
|
};
|
|
|
|
typedef struct insp_frame_data insp_frame_data;
|
|
|
|
struct insp_frame_data {
|
|
#if CONFIG_ACCOUNTING
|
|
Accounting *accounting;
|
|
#endif
|
|
insp_mi_data *mi_grid;
|
|
int show_frame;
|
|
int frame_type;
|
|
int base_qindex;
|
|
int mi_rows;
|
|
int mi_cols;
|
|
int tile_mi_rows;
|
|
int tile_mi_cols;
|
|
int16_t y_dequant[MAX_SEGMENTS][2];
|
|
int16_t uv_dequant[MAX_SEGMENTS][2];
|
|
#if CONFIG_CDEF
|
|
// TODO(negge): add per frame CDEF data
|
|
#endif
|
|
};
|
|
|
|
void ifd_init(insp_frame_data *fd, int frame_width, int frame_height);
|
|
void ifd_clear(insp_frame_data *fd);
|
|
int ifd_inspect(insp_frame_data *fd, void *decoder);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif // __cplusplus
|
|
#endif // AOM_INSPECTION_H_
|