-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log actual frame size - maybe should be validated?
git-svn-id: https://xpra.org/svn/Xpra/trunk@26959 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|
@@ -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: | ||
|
@@ -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): | ||
|