/*
 * Copyright   2012-2019, Samsung Electronics Co. Ltd
 * MinHo Kim <m8891.kim@samsung.co.kr>
 * This software is proprietary of Samsung Electronics.
 * No part of this software, either material or conceptual may be copied or
 * distributed, transmitted,
 * transcribed, stored in a retrieval system or translated into any human
 * or computer language in any form by any means,
 * electronic, mechanical, manual or otherwise, or disclosed
 * to third parties without the express written permission of Samsung
 * Electronics.
 */

#ifndef __DPP_H__
#define __DPP_H__

enum dpp_pixel_format {
    /* RGB 32bit */
    PIXEL_FORMAT_ARGB_8888 = 0,
    PIXEL_FORMAT_ABGR_8888,
    PIXEL_FORMAT_RGBA_8888,
    PIXEL_FORMAT_BGRA_8888,
    PIXEL_FORMAT_MAX,
};

#define DPP_SC_RATIO_MAX    ((1 << 20) * 8 / 8)
#define DPP_SC_RATIO_7_8    ((1 << 20) * 8 / 7)
#define DPP_SC_RATIO_6_8    ((1 << 20) * 8 / 6)
#define DPP_SC_RATIO_5_8    ((1 << 20) * 8 / 5)
#define DPP_SC_RATIO_4_8    ((1 << 20) * 8 / 4)
#define DPP_SC_RATIO_3_8    ((1 << 20) * 8 / 3)

void dpp_reg_init(uint32_t width, uint32_t height);
void dpp_reg_ready(uint32_t fb_addr);
int dpp_reg_start(void);
int dpp_reg_wait_done(void);
void dpp_reg_deinit(void);

#endif /* __DPP_H__ */