Lines Matching defs:cxhdl

1574 int cx2341x_handler_init(struct cx2341x_handler *cxhdl,
1577 struct v4l2_ctrl_handler *hdl = &cxhdl->hdl;
1578 u32 caps = cxhdl->capabilities;
1583 cxhdl->width = 720;
1584 cxhdl->height = 480;
1590 cxhdl->stream_type = cx2341x_ctrl_new_menu(hdl,
1594 cxhdl->stream_vbi_fmt = cx2341x_ctrl_new_menu(hdl,
1598 cxhdl->audio_sampling_freq = cx2341x_ctrl_new_menu(hdl,
1602 cxhdl->audio_encoding = cx2341x_ctrl_new_menu(hdl,
1606 cxhdl->audio_l2_bitrate = cx2341x_ctrl_new_menu(hdl,
1610 cxhdl->audio_mode = cx2341x_ctrl_new_menu(hdl,
1614 cxhdl->audio_mode_extension = cx2341x_ctrl_new_menu(hdl,
1618 cxhdl->audio_emphasis = cx2341x_ctrl_new_menu(hdl,
1622 cxhdl->audio_crc = cx2341x_ctrl_new_menu(hdl,
1629 cxhdl->audio_ac3_bitrate = cx2341x_ctrl_new_menu(hdl,
1633 cxhdl->video_encoding = cx2341x_ctrl_new_menu(hdl,
1641 cxhdl->video_b_frames = cx2341x_ctrl_new_std(hdl,
1643 cxhdl->video_gop_size = cx2341x_ctrl_new_std(hdl,
1645 1, 34, 1, cxhdl->is_50hz ? 12 : 15);
1647 cxhdl->video_bitrate_mode = cx2341x_ctrl_new_menu(hdl,
1651 cxhdl->video_bitrate = cx2341x_ctrl_new_std(hdl,
1654 cxhdl->video_bitrate_peak = cx2341x_ctrl_new_std(hdl,
1659 cxhdl->video_mute = cx2341x_ctrl_new_std(hdl,
1661 cxhdl->video_mute_yuv = cx2341x_ctrl_new_std(hdl,
1665 cxhdl->video_spatial_filter_mode = cx2341x_ctrl_new_custom(hdl,
1670 cxhdl->video_spatial_filter = cx2341x_ctrl_new_custom(hdl,
1673 cxhdl->video_luma_spatial_filter_type = cx2341x_ctrl_new_custom(hdl,
1679 cxhdl->video_chroma_spatial_filter_type = cx2341x_ctrl_new_custom(hdl,
1685 cxhdl->video_temporal_filter_mode = cx2341x_ctrl_new_custom(hdl,
1691 cxhdl->video_temporal_filter = cx2341x_ctrl_new_custom(hdl,
1694 cxhdl->video_median_filter_type = cx2341x_ctrl_new_custom(hdl,
1700 cxhdl->video_luma_median_filter_bottom = cx2341x_ctrl_new_custom(hdl,
1703 cxhdl->video_luma_median_filter_top = cx2341x_ctrl_new_custom(hdl,
1706 cxhdl->video_chroma_median_filter_bottom = cx2341x_ctrl_new_custom(hdl,
1709 cxhdl->video_chroma_median_filter_top = cx2341x_ctrl_new_custom(hdl,
1722 v4l2_ctrl_cluster(8, &cxhdl->audio_sampling_freq);
1723 v4l2_ctrl_cluster(2, &cxhdl->video_b_frames);
1724 v4l2_ctrl_cluster(5, &cxhdl->stream_type);
1725 v4l2_ctrl_cluster(2, &cxhdl->video_mute);
1726 v4l2_ctrl_cluster(3, &cxhdl->video_spatial_filter_mode);
1727 v4l2_ctrl_cluster(2, &cxhdl->video_luma_spatial_filter_type);
1728 v4l2_ctrl_cluster(2, &cxhdl->video_spatial_filter);
1729 v4l2_ctrl_cluster(4, &cxhdl->video_luma_median_filter_top);
1735 void cx2341x_handler_set_50hz(struct cx2341x_handler *cxhdl, int is_50hz)
1737 cxhdl->is_50hz = is_50hz;
1738 cxhdl->video_gop_size->default_value = cxhdl->is_50hz ? 12 : 15;
1742 int cx2341x_handler_setup(struct cx2341x_handler *cxhdl)
1744 int h = cxhdl->height;
1745 int w = cxhdl->width;
1748 err = cx2341x_hdl_api(cxhdl, CX2341X_ENC_SET_OUTPUT_PORT, 2, cxhdl->port, 0);
1751 err = cx2341x_hdl_api(cxhdl, CX2341X_ENC_SET_FRAME_RATE, 1, cxhdl->is_50hz);
1755 if (v4l2_ctrl_g_ctrl(cxhdl->video_encoding) == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) {
1759 err = cx2341x_hdl_api(cxhdl, CX2341X_ENC_SET_FRAME_SIZE, 2, h, w);
1762 return v4l2_ctrl_handler_setup(&cxhdl->hdl);
1766 void cx2341x_handler_set_busy(struct cx2341x_handler *cxhdl, int busy)
1768 v4l2_ctrl_grab(cxhdl->audio_sampling_freq, busy);
1769 v4l2_ctrl_grab(cxhdl->audio_encoding, busy);
1770 v4l2_ctrl_grab(cxhdl->audio_l2_bitrate, busy);
1771 v4l2_ctrl_grab(cxhdl->audio_ac3_bitrate, busy);
1772 v4l2_ctrl_grab(cxhdl->stream_vbi_fmt, busy);
1773 v4l2_ctrl_grab(cxhdl->stream_type, busy);
1774 v4l2_ctrl_grab(cxhdl->video_bitrate_mode, busy);
1775 v4l2_ctrl_grab(cxhdl->video_bitrate, busy);
1776 v4l2_ctrl_grab(cxhdl->video_bitrate_peak, busy);