src/multimedia/video/qvideosurfaceformat.cpp
changeset 37 758a864f9613
parent 18 2f34d5167611
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   250     Returns true if the format is valid, and false otherwise.
   250     Returns true if the format is valid, and false otherwise.
   251 */
   251 */
   252 
   252 
   253 bool QVideoSurfaceFormat::isValid() const
   253 bool QVideoSurfaceFormat::isValid() const
   254 {
   254 {
   255     return d->pixelFormat == QVideoFrame::Format_Invalid && d->frameSize.isValid();
   255     return d->pixelFormat != QVideoFrame::Format_Invalid && d->frameSize.isValid();
   256 }
   256 }
   257 
   257 
   258 /*!
   258 /*!
   259     Returns true if \a other is the same as a video format, and false if they are the different.
   259     Returns true if \a other is the same as a video format, and false if they are the different.
   260 */
   260 */