linux/drivers/media/platform/st/sti/delta/delta-cfg.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) STMicroelectronics SA 2015
 * Author: Hugues Fruchet <[email protected]> for STMicroelectronics.
 */

#ifndef DELTA_CFG_H
#define DELTA_CFG_H

#define DELTA_FW_VERSION

#define DELTA_MIN_WIDTH
#define DELTA_MAX_WIDTH
#define DELTA_MIN_HEIGHT
#define DELTA_MAX_HEIGHT

/* DELTA requires a 32x32 pixels alignment for frames */
#define DELTA_WIDTH_ALIGNMENT
#define DELTA_HEIGHT_ALIGNMENT

#define DELTA_DEFAULT_WIDTH
#define DELTA_DEFAULT_HEIGHT
#define DELTA_DEFAULT_FRAMEFORMAT
#define DELTA_DEFAULT_STREAMFORMAT

#define DELTA_MAX_RESO

/* guard value for number of access units */
#define DELTA_MAX_AUS

/* IP perf dependent, can be tuned */
#define DELTA_PEAK_FRAME_SMOOTHING

/*
 * guard output frame count:
 * - at least 1 frame needed for display
 * - at worst 21
 *   ( max h264 dpb (16) +
 *     decoding peak smoothing (2) +
 *     user display pipeline (3) )
 */
#define DELTA_MIN_FRAME_USER
#define DELTA_MAX_DPB
#define DELTA_MAX_FRAME_USER
#define DELTA_MAX_FRAMES

#if DELTA_MAX_FRAMES > VIDEO_MAX_FRAME
#undef DELTA_MAX_FRAMES
#define DELTA_MAX_FRAMES
#endif

/* extra space to be allocated to store codec specific data per frame */
#define DELTA_MAX_FRAME_PRIV_SIZE

/* PM runtime auto power-off after 5ms of inactivity */
#define DELTA_HW_AUTOSUSPEND_DELAY_MS

#define DELTA_MAX_DECODERS
#ifdef CONFIG_VIDEO_STI_DELTA_MJPEG
extern const struct delta_dec mjpegdec;
#endif

#endif /* DELTA_CFG_H */