diff options
author | Marcel Tunnissen <Marcel.Tuennissen@stericsson.com> | 2011-02-03 09:34:38 +0100 |
---|---|---|
committer | Henrik Öhman <henrik.ohman@stericsson.com> | 2011-03-10 10:54:38 +0100 |
commit | 8bab4b6e4e367c2ea303dd423b178cede0f3254a (patch) | |
tree | 5c2973baa6f0cc51f2af08d155234c7e850f858e /include | |
parent | 70b3d3b87e11d47235f379d16ec53b3a85d1cbfd (diff) |
video: mcde: Add support for setting a palette
Add support for using the the palette in the pixel pipeline of channel A and B
in MCDE.
ST-Ericsson ID: ER319889
Linux-next: ST-Ericsson ID: ER 282779
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I606a05cfc0ac7d4d84780338956f54187bfa551e
Signed-off-by: Marcel Tunnissen <Marcel.Tuennissen@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14600
Tested-by: Marcel TUNNISSEN <marcel.tuennissen@stericsson.com>
Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com>
Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/video/mcde.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/video/mcde.h b/include/video/mcde.h index a03bf51f64b..1777e272329 100644 --- a/include/video/mcde.h +++ b/include/video/mcde.h @@ -295,12 +295,25 @@ struct mcde_overlay { struct mcde_ovly_state *state; }; +/* + * Three functions for mapping 8 bits colour channels on 12 bits colour + * channels. The colour channels (ch0, ch1, ch2) can represent (r, g, b) or + * (Y, Cb, Cr) respectively. + */ +struct mcde_palette_table { + u16 (*map_col_ch0)(u8); + u16 (*map_col_ch1)(u8); + u16 (*map_col_ch2)(u8); +}; + struct mcde_chnl_state; struct mcde_chnl_state *mcde_chnl_get(enum mcde_chnl chnl_id, enum mcde_fifo fifo, const struct mcde_port *port); int mcde_chnl_set_pixel_format(struct mcde_chnl_state *chnl, enum mcde_port_pix_fmt pix_fmt); +int mcde_chnl_set_palette(struct mcde_chnl_state *chnl, + struct mcde_palette_table *palette); void mcde_chnl_set_col_convert(struct mcde_chnl_state *chnl, struct mcde_col_convert *col_convert); int mcde_chnl_set_video_mode(struct mcde_chnl_state *chnl, |