forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add VideoFrame.colorRange. set from ffmpeg decoder
not set if a frame is converted. so no range transform in ColorTransform. TODO: ImageConverter set correct range, and set range in VideoFrame.convert()
- Loading branch information
Showing
6 changed files
with
54 additions
and
9 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
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
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
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
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,8 +1,8 @@ | ||
/****************************************************************************** | ||
QtAV: Media play library based on Qt and FFmpeg | ||
Copyright (C) 2013-2015 Wang Bin <[email protected]> | ||
Copyright (C) 2012-2016 Wang Bin <[email protected]> | ||
* This file is part of QtAV | ||
* This file is part of QtAV (from 2013) | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
|
@@ -235,10 +235,6 @@ VideoDecoderId VideoDecoderFFmpeg::id() const | |
VideoFrame VideoDecoderFFmpeg::frame() | ||
{ | ||
DPTR_D(VideoDecoderFFmpeg); | ||
/*qDebug("color space: %d, range: %d, prim: %d, t: %d" | ||
, d.codec_ctx->colorspace, d.codec_ctx->color_range | ||
, d.codec_ctx->color_primaries, d.codec_ctx->color_trc); | ||
*/ | ||
if (d.frame->width <= 0 || d.frame->height <= 0 || !d.codec_ctx) | ||
return VideoFrame(); | ||
// it's safe if width, height, pixfmt will not change, only data change | ||
|
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