~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/frontends/vdpau/mixer.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
   }
71
71
 
72
72
   vl_csc_get_matrix(VL_CSC_COLOR_STANDARD_BT_601, NULL, true, &vmixer->csc);
73
 
   if (!debug_get_bool_option("G3DVL_NO_CSC", FALSE)) {
 
73
   if (!debug_get_bool_option("G3DVL_NO_CSC", false)) {
74
74
      if (!vl_compositor_set_csc_matrix(&vmixer->cstate, (const vl_csc_matrix *)&vmixer->csc, 1.0f, 0.0f)) {
75
75
         ret = VDP_STATUS_ERROR;
76
76
         goto err_csc_matrix;
692
692
 
693
693
      case VDP_VIDEO_MIXER_FEATURE_LUMA_KEY:
694
694
         vmixer->luma_key.enabled = feature_enables[i];
695
 
         if (!debug_get_bool_option("G3DVL_NO_CSC", FALSE))
 
695
         if (!debug_get_bool_option("G3DVL_NO_CSC", false))
696
696
            if (!vl_compositor_set_csc_matrix(&vmixer->cstate, (const vl_csc_matrix *)&vmixer->csc,
697
697
                        vmixer->luma_key.luma_min, vmixer->luma_key.luma_max)) {
698
698
               mtx_unlock(&vmixer->device->mutex);
815
815
            vl_csc_get_matrix(VL_CSC_COLOR_STANDARD_BT_601, NULL, 1, &vmixer->csc);
816
816
         else
817
817
            memcpy(vmixer->csc, vdp_csc, sizeof(vl_csc_matrix));
818
 
         if (!debug_get_bool_option("G3DVL_NO_CSC", FALSE))
 
818
         if (!debug_get_bool_option("G3DVL_NO_CSC", false))
819
819
            if (!vl_compositor_set_csc_matrix(&vmixer->cstate, (const vl_csc_matrix *)&vmixer->csc,
820
820
                                         vmixer->luma_key.luma_min, vmixer->luma_key.luma_max)) {
821
821
               ret = VDP_STATUS_ERROR;
842
842
            goto fail;
843
843
         }
844
844
         vmixer->luma_key.luma_min = val;
845
 
         if (!debug_get_bool_option("G3DVL_NO_CSC", FALSE))
 
845
         if (!debug_get_bool_option("G3DVL_NO_CSC", false))
846
846
            if (!vl_compositor_set_csc_matrix(&vmixer->cstate, (const vl_csc_matrix *)&vmixer->csc,
847
847
                        vmixer->luma_key.luma_min, vmixer->luma_key.luma_max)) {
848
848
               ret = VDP_STATUS_ERROR;
857
857
            goto fail;
858
858
         }
859
859
         vmixer->luma_key.luma_max = val;
860
 
         if (!debug_get_bool_option("G3DVL_NO_CSC", FALSE))
 
860
         if (!debug_get_bool_option("G3DVL_NO_CSC", false))
861
861
            if (!vl_compositor_set_csc_matrix(&vmixer->cstate, (const vl_csc_matrix *)&vmixer->csc,
862
862
                        vmixer->luma_key.luma_min, vmixer->luma_key.luma_max)) {
863
863
               ret = VDP_STATUS_ERROR;