xpra icon
Bug tracker and wiki

Ticket #229: fake-gl-yuvdecode.patch

File fake-gl-yuvdecode.patch, 1.4 KB (added by Antoine Martin, 7 years ago)

cleaned up patch

  • xpra/gl/gl_window_backing.py

     
    149149    def do_video_paint(self, coding, img_data, x, y, w, h, options, callbacks):
    150150        debug("do_video_paint: options=%s, decoder=%s", options, type(self._video_decoder))
    151151        err, rowstrides, img_data = self._video_decoder.decompress_image_to_yuv(img_data, options)
     152        BUFFER = '\0'*1024*1024*64
     153        err, rowstrides, img_data = 0, [w*2, w*2, w*2], [BUFFER, BUFFER, BUFFER]
    152154        csc_pixel_format = options.get("csc_pixel_format", -1)
    153155        #this needs to be done here so we still hold the video_decoder lock:
    154156        pixel_format = self._video_decoder.get_pixel_format(csc_pixel_format)
  • xpra/x264/codec.pyx

     
    142142        memcpy(padded_buf, buf, buf_len)
    143143        memset(padded_buf+buf_len, 0, 32)
    144144        set_decoder_csc_format(self.context, int(options.get("csc_pixel_format", -1)))
     145        if True:
     146            return 1, [0, 0, 0], ["", "", ""]
    145147        i = 0
    146148        with nogil:
    147149            i = decompress_image(self.context, buf, buf_len, &dout, &outstrides)