tpg_data
int tpg_alloc(struct tpg_data *tpg, unsigned max_w)
static void tpg_precalculate_colors(struct tpg_data *tpg)
static void gen_twopix(struct tpg_data *tpg,
unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line)
static unsigned tpg_get_pat_lines(const struct tpg_data *tpg)
static unsigned tpg_get_pat_line(const struct tpg_data *tpg, unsigned line)
static enum tpg_color tpg_get_color(const struct tpg_data *tpg,
static void tpg_calculate_square_border(struct tpg_data *tpg)
static void tpg_precalculate_line(struct tpg_data *tpg)
void tpg_free(struct tpg_data *tpg)
static noinline void tpg_print_str_2(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2],
static noinline void tpg_print_str_4(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2],
static noinline void tpg_print_str_6(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2],
static noinline void tpg_print_str_8(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2],
void tpg_gen_text(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2],
const char *tpg_g_color_order(const struct tpg_data *tpg)
void tpg_update_mv_step(struct tpg_data *tpg)
bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc)
static unsigned tpg_calc_frameline(const struct tpg_data *tpg, unsigned src_y,
static unsigned tpg_calc_buffer_line(const struct tpg_data *tpg, unsigned y,
static void tpg_recalc(struct tpg_data *tpg)
void tpg_calc_text_basep(struct tpg_data *tpg,
static int tpg_pattern_avg(const struct tpg_data *tpg,
void tpg_log_status(struct tpg_data *tpg)
static void tpg_fill_params_pattern(const struct tpg_data *tpg, unsigned p,
static void tpg_fill_params_extras(const struct tpg_data *tpg,
static void tpg_fill_plane_extras(const struct tpg_data *tpg,
static void tpg_fill_plane_pattern(const struct tpg_data *tpg,
void tpg_fill_plane_buffer(struct tpg_data *tpg, v4l2_std_id std,
void tpg_fillbuffer(struct tpg_data *tpg, v4l2_std_id std, unsigned p, u8 *vbuf)
void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop,
void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height,
static enum tpg_color tpg_get_textbg_color(struct tpg_data *tpg)
static enum tpg_color tpg_get_textfg_color(struct tpg_data *tpg)
static void color_to_hsv(struct tpg_data *tpg, int r, int g, int b,
static void color_to_ycbcr(struct tpg_data *tpg, int r, int g, int b,
static void ycbcr_to_color(struct tpg_data *tpg, int y, int cb, int cr,
static void precalculate_color(struct tpg_data *tpg, int k)
void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h)
struct tpg_data tpg;
static void *plane_vaddr(struct tpg_data *tpg, struct vb2_buffer *buf,
struct tpg_data tpg;
struct tpg_data tpg;
static void *plane_vaddr(struct tpg_data *tpg, struct vivid_buffer *buf,
struct tpg_data *tpg = &dev->tpg;
struct tpg_data *tpg = &dev->tpg;
void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h);
int tpg_alloc(struct tpg_data *tpg, unsigned max_w);
void tpg_free(struct tpg_data *tpg);
void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height,
void tpg_log_status(struct tpg_data *tpg);
void tpg_gen_text(const struct tpg_data *tpg,
void tpg_calc_text_basep(struct tpg_data *tpg,
unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line);
void tpg_fill_plane_buffer(struct tpg_data *tpg, v4l2_std_id std,
void tpg_fillbuffer(struct tpg_data *tpg, v4l2_std_id std,
bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc);
void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop,
const char *tpg_g_color_order(const struct tpg_data *tpg);
static inline void tpg_s_pattern(struct tpg_data *tpg, enum tpg_pattern pattern)
static inline void tpg_s_quality(struct tpg_data *tpg,
static inline enum tpg_quality tpg_g_quality(const struct tpg_data *tpg)
static inline void tpg_s_alpha_component(struct tpg_data *tpg,
static inline void tpg_s_alpha_mode(struct tpg_data *tpg,
static inline void tpg_s_brightness(struct tpg_data *tpg,
static inline void tpg_s_contrast(struct tpg_data *tpg,
static inline void tpg_s_saturation(struct tpg_data *tpg,
static inline void tpg_s_hue(struct tpg_data *tpg,
static inline void tpg_s_rgb_range(struct tpg_data *tpg,
static inline void tpg_s_real_rgb_range(struct tpg_data *tpg,
static inline void tpg_s_colorspace(struct tpg_data *tpg, u32 colorspace)
static inline u32 tpg_g_colorspace(const struct tpg_data *tpg)
static inline void tpg_s_ycbcr_enc(struct tpg_data *tpg, u32 ycbcr_enc)
static inline u32 tpg_g_ycbcr_enc(const struct tpg_data *tpg)
static inline void tpg_s_hsv_enc(struct tpg_data *tpg, u32 hsv_enc)
static inline u32 tpg_g_hsv_enc(const struct tpg_data *tpg)
static inline void tpg_s_xfer_func(struct tpg_data *tpg, u32 xfer_func)
static inline u32 tpg_g_xfer_func(const struct tpg_data *tpg)
static inline void tpg_s_quantization(struct tpg_data *tpg, u32 quantization)
static inline u32 tpg_g_quantization(const struct tpg_data *tpg)
static inline unsigned tpg_g_buffers(const struct tpg_data *tpg)
static inline unsigned tpg_g_planes(const struct tpg_data *tpg)
static inline bool tpg_g_interleaved(const struct tpg_data *tpg)
static inline unsigned tpg_g_twopixelsize(const struct tpg_data *tpg, unsigned plane)
static inline unsigned tpg_hdiv(const struct tpg_data *tpg,
static inline unsigned tpg_hscale(const struct tpg_data *tpg, unsigned x)
static inline unsigned tpg_hscale_div(const struct tpg_data *tpg,
static inline unsigned tpg_g_bytesperline(const struct tpg_data *tpg, unsigned plane)
static inline void tpg_s_bytesperline(struct tpg_data *tpg, unsigned plane, unsigned bpl)
static inline unsigned tpg_g_line_width(const struct tpg_data *tpg, unsigned plane)
static inline unsigned tpg_calc_line_width(const struct tpg_data *tpg,
static inline unsigned tpg_calc_plane_size(const struct tpg_data *tpg, unsigned plane)
static inline void tpg_s_buf_height(struct tpg_data *tpg, unsigned h)
static inline void tpg_s_field(struct tpg_data *tpg, unsigned field, bool alternate)
static inline void tpg_s_perc_fill(struct tpg_data *tpg,
static inline unsigned tpg_g_perc_fill(const struct tpg_data *tpg)
static inline void tpg_s_perc_fill_blank(struct tpg_data *tpg,
static inline void tpg_s_video_aspect(struct tpg_data *tpg,
static inline enum tpg_video_aspect tpg_g_video_aspect(const struct tpg_data *tpg)
static inline void tpg_s_pixel_aspect(struct tpg_data *tpg,
static inline void tpg_s_show_border(struct tpg_data *tpg,
static inline void tpg_s_show_square(struct tpg_data *tpg,
static inline void tpg_s_insert_sav(struct tpg_data *tpg, bool insert_sav)
static inline void tpg_s_insert_eav(struct tpg_data *tpg, bool insert_eav)
static inline void tpg_s_insert_hdmi_video_guard_band(struct tpg_data *tpg,
void tpg_update_mv_step(struct tpg_data *tpg);
static inline void tpg_s_mv_hor_mode(struct tpg_data *tpg,
static inline void tpg_s_mv_vert_mode(struct tpg_data *tpg,
static inline void tpg_init_mv_count(struct tpg_data *tpg)
static inline void tpg_update_mv_count(struct tpg_data *tpg, bool frame_is_field)
static inline void tpg_s_hflip(struct tpg_data *tpg, bool hflip)
static inline bool tpg_g_hflip(const struct tpg_data *tpg)
static inline void tpg_s_vflip(struct tpg_data *tpg, bool vflip)
static inline bool tpg_g_vflip(const struct tpg_data *tpg)
static inline bool tpg_pattern_is_static(const struct tpg_data *tpg)