Skip to content

Commit

Permalink
log actual frame size - maybe should be validated?
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@26959 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 12, 2020
1 parent ecb32d3 commit 6e3103f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/xpra/codecs/dec_avcodec2/decoder.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of Xpra.
# Copyright (C) 2012-2018 Antoine Martin <[email protected]>
# Copyright (C) 2012-2020 Antoine Martin <[email protected]>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

Expand Down Expand Up @@ -253,6 +253,8 @@ cdef extern from "libavcodec/avcodec.h":
int *linesize
int format
void *opaque
int width
int height
ctypedef struct AVCodec:
pass
ctypedef struct AVDictionary:
Expand Down Expand Up @@ -964,8 +966,9 @@ cdef class Decoder:
log("avcodec actual output pixel format is %s (%s), expected %s (%s)", self.actual_pix_fmt, self.get_actual_colorspace(), self.pix_fmt, self.colorspace)

cs = self.get_actual_colorspace()
log("actual_colorspace(%s)=%s", self.actual_pix_fmt, cs)
if cs.find("P")>0: #ie: GBRP, YUV420P, YUV422P10LE etc
log("actual_colorspace(%s)=%s, frame size: %4ix%-4i",
self.actual_pix_fmt, cs, av_frame.width, av_frame.height)
if cs.find("P")>0: #ie: GBRP, YUV420P, GBRP10 etc
divs = get_subsampling_divs(cs)
nplanes = 3
for i in range(3):
Expand Down

0 comments on commit 6e3103f

Please sign in to comment.