Home | History | Annotate | Download | only in libhwcomposer

Lines Matching refs:fimc

432     s5p_fimc_t *fimc = &ctx->fimc;
437 fimc->params.src.buf_addr_phy_rgb_y = phyAddr[0];
438 fimc->params.src.buf_addr_phy_cb = phyAddr[1];
609 s5p_fimc_t * fimc = &ctx->fimc;
610 s5p_fimc_params_t * params = &(fimc->params);
625 params->src.width = widthOfPP(fimc->hw_ver, src_color_space, src_rect->w);
632 ALOGE("%s src size is not supported by fimc : f_w=%d f_h=%d x=%d y=%d \
650 widthOfPP(fimc->hw_ver, dst_color_space, dst_rect->w);
661 widthOfPP(fimc->hw_ver, dst_color_space, dst_rect->h);
663 widthOfPP(fimc->hw_ver, dst_color_space, dst_rect->w);
665 if (0x50 > fimc->hw_ver)
676 widthOfPP(fimc->hw_ver, dst_color_space, dst_rect->w);
687 widthOfPP(fimc->hw_ver, dst_color_space, dst_rect->h);
689 widthOfPP(fimc->hw_ver, dst_color_space, dst_rect->w);
691 if (0x50 > fimc->hw_ver)
701 ALOGE("%s dst size is not supported by fimc : \
729 if (fimc_v4l2_set_dst(fimc->dev_fd,
744 if (fimc_v4l2_set_src(fimc->dev_fd, fimc->hw_ver, &params->src) < 0)
761 if (fimc_handle_oneshot(fimc->dev_fd, &fimc_src_buf) < 0) {
762 fimc_v4l2_clr_buf(fimc->dev_fd);
769 int createFimc(s5p_fimc_t *fimc)
778 if(fimc->dev_fd < 0) {
779 fimc->dev_fd = open(PP_DEVICE_DEV_NAME, O_RDWR);
781 if (fimc->dev_fd < 0) {
788 if (ioctl(fimc->dev_fd, VIDIOC_QUERYCAP, &cap) < 0) {
794 ALOGE("%d has no streaming support", fimc->dev_fd);
799 ALOGE("%d is no video output", fimc->dev_fd);
807 if (ioctl(fimc->dev_fd, VIDIOC_G_FMT, &fmt) < 0) {
815 if (ioctl(fimc->dev_fd, VIDIOC_G_CTRL, &vc) < 0) {
819 fimc->hw_ver = vc.value;
824 if (0 <= fimc->dev_fd)
825 close(fimc->dev_fd);
826 fimc->dev_fd = -1;
831 int destroyFimc(s5p_fimc_t *fimc)
833 if (fimc->out_buf.virt_addr != NULL) {
834 fimc->out_buf.virt_addr = NULL;
835 fimc->out_buf.length = 0;
839 if (0 <= fimc->dev_fd)
840 close(fimc->dev_fd);
841 fimc->dev_fd = -1;
854 s5p_fimc_t *fimc = &ctx->fimc;
868 /* check whether fimc supports the src format */