| .. | .. |
|---|
| 241 | 241 | |
|---|
| 242 | 242 | void tpg_set_font(const u8 *f); |
|---|
| 243 | 243 | void tpg_gen_text(const struct tpg_data *tpg, |
|---|
| 244 | | - u8 *basep[TPG_MAX_PLANES][2], int y, int x, char *text); |
|---|
| 244 | + u8 *basep[TPG_MAX_PLANES][2], int y, int x, const char *text); |
|---|
| 245 | 245 | void tpg_calc_text_basep(struct tpg_data *tpg, |
|---|
| 246 | 246 | u8 *basep[TPG_MAX_PLANES][2], unsigned p, u8 *vbuf); |
|---|
| 247 | 247 | unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line); |
|---|
| .. | .. |
|---|
| 252 | 252 | bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc); |
|---|
| 253 | 253 | void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop, |
|---|
| 254 | 254 | const struct v4l2_rect *compose); |
|---|
| 255 | +const char *tpg_g_color_order(const struct tpg_data *tpg); |
|---|
| 255 | 256 | |
|---|
| 256 | 257 | static inline void tpg_s_pattern(struct tpg_data *tpg, enum tpg_pattern pattern) |
|---|
| 257 | 258 | { |
|---|
| .. | .. |
|---|
| 324 | 325 | static inline void tpg_s_hue(struct tpg_data *tpg, |
|---|
| 325 | 326 | s16 hue) |
|---|
| 326 | 327 | { |
|---|
| 328 | + hue = clamp_t(s16, hue, -128, 128); |
|---|
| 327 | 329 | if (tpg->hue == hue) |
|---|
| 328 | 330 | return; |
|---|
| 329 | 331 | tpg->hue = hue; |
|---|