Qt 4.8
Public Types | Public Functions | Properties | List of all members
QVideoSurfaceFormat Class Reference

The QVideoSurfaceFormat class specifies the stream format of a video presentation surface. More...

#include <qvideosurfaceformat.h>

Public Types

enum  Direction { TopToBottom, BottomToTop }
 Enumerates the layout direction of video scan lines. More...
 
enum  YCbCrColorSpace {
  YCbCr_Undefined, YCbCr_BT601, YCbCr_BT709, YCbCr_xvYCC601,
  YCbCr_xvYCC709, YCbCr_JPEG
}
 Enumerates the Y'CbCr color space of video frames. More...
 

Public Functions

int frameHeight () const
 Returns the height of frame in a video stream. More...
 
qreal frameRate () const
 Returns the frame rate of a video stream in frames per second. More...
 
QSize frameSize () const
 Returns the size of frames in a video stream. More...
 
int frameWidth () const
 Returns the width of frames in a video stream. More...
 
QAbstractVideoBuffer::HandleType handleType () const
 Returns the type of handle the surface uses to present the frame data. More...
 
bool isValid () const
 Identifies if a video surface format has a valid pixel format and frame size. More...
 
bool operator!= (const QVideoSurfaceFormat &format) const
 Returns true if other is different to a video format, and false if they are the same. More...
 
QVideoSurfaceFormatoperator= (const QVideoSurfaceFormat &format)
 Assigns the values of other to a video stream description. More...
 
bool operator== (const QVideoSurfaceFormat &format) const
 Returns true if other is the same as a video format, and false if they are the different. More...
 
QSize pixelAspectRatio () const
 Returns a video stream's pixel aspect ratio. More...
 
QVideoFrame::PixelFormat pixelFormat () const
 Returns the pixel format of frames in a video stream. More...
 
QVariant property (const char *name) const
 Returns the value of the video format's name property. More...
 
QList< QByteArraypropertyNames () const
 Returns a list of video format dynamic property names. More...
 
 QVideoSurfaceFormat ()
 Constructs a null video stream format. More...
 
 QVideoSurfaceFormat (const QSize &size, QVideoFrame::PixelFormat pixelFormat, QAbstractVideoBuffer::HandleType handleType=QAbstractVideoBuffer::NoHandle)
 Contructs a description of stream which receives stream of type buffers with given frame size and pixel format. More...
 
 QVideoSurfaceFormat (const QVideoSurfaceFormat &format)
 Constructs a copy of other. More...
 
Direction scanLineDirection () const
 Returns the direction of scan lines. More...
 
void setFrameRate (qreal rate)
 Sets the frame rate of a video stream in frames per second. More...
 
void setFrameSize (const QSize &size)
 Sets the size of frames in a video stream to size. More...
 
void setFrameSize (int width, int height)
 Sets the width and height of frames in a video stream. More...
 
void setPixelAspectRatio (const QSize &ratio)
 Sets a video stream's pixel aspect ratio. More...
 
void setPixelAspectRatio (int width, int height)
 Sets the horizontal and vertical elements of a video stream's pixel aspect ratio. More...
 
void setProperty (const char *name, const QVariant &value)
 Sets the video format's name property to value. More...
 
void setScanLineDirection (Direction direction)
 Sets the direction of scan lines. More...
 
void setViewport (const QRect &viewport)
 Sets the viewport of a video stream to viewport. More...
 
void setYCbCrColorSpace (YCbCrColorSpace colorSpace)
 Sets the Y'CbCr color space of a video stream. More...
 
QSize sizeHint () const
 Returns a suggested size in pixels for the video stream. More...
 
QRect viewport () const
 Returns the viewport of a video stream. More...
 
YCbCrColorSpace yCbCrColorSpace () const
 Returns the Y'CbCr color space of a video stream. More...
 
 ~QVideoSurfaceFormat ()
 Destroys a video stream description. More...
 

Properties

QSharedDataPointer< QVideoSurfaceFormatPrivated
 

Detailed Description

The QVideoSurfaceFormat class specifies the stream format of a video presentation surface.

Since
4.6

A video surface presents a stream of video frames. The surface's format describes the type of the frames and determines how they should be presented.

The core properties of a video stream required to setup a video surface are the pixel format given by pixelFormat(), and the frame dimensions given by frameSize().

If the surface is to present frames using a frame's handle a surface format will also include a handle type which is given by the handleType() function.

The region of a frame that is actually displayed on a video surface is given by the viewport(). A stream may have a viewport less than the entire region of a frame to allow for videos smaller than the nearest optimal size of a video frame. For example the width of a frame may be extended so that the start of each scan line is eight byte aligned.

Other common properties are the pixelAspectRatio(), scanLineDirection(), and frameRate(). Additionally a stream may have some additional type specific properties which are listed by the dynamicPropertyNames() function and can be accessed using the property(), and setProperty() functions.

Definition at line 62 of file qvideosurfaceformat.h.

Enumerations

◆ Direction

Enumerates the layout direction of video scan lines.

  • TopToBottom Scan lines are arranged from the top of the frame to the bottom.
  • BottomToTop Scan lines are arranged from the bottom of the frame to the top.
Enumerator
TopToBottom 
BottomToTop 

Definition at line 65 of file qvideosurfaceformat.h.

◆ YCbCrColorSpace

Enumerates the Y'CbCr color space of video frames.

  • YCbCr_Undefined No color space is specified.
  • YCbCr_BT601 A Y'CbCr color space defined by ITU-R recommendation BT.601 with Y value range from 16 to 235, and Cb/Cr range from 16 to 240. Used in standard definition video.
  • YCbCr_BT709 A Y'CbCr color space defined by ITU-R BT.709 with the same values range as YCbCr_BT601. Used for HDTV.
  • YCbCr_xvYCC601 The BT.601 color space with the value range extended to 0 to 255. It is backward compatibile with BT.601 and uses values outside BT.601 range to represent wider colors range.
  • YCbCr_xvYCC709 The BT.709 color space with the value range extended to 0 to 255.
  • YCbCr_JPEG The full range Y'CbCr color space used in JPEG files.
Enumerator
YCbCr_Undefined 
YCbCr_BT601 
YCbCr_BT709 
YCbCr_xvYCC601 
YCbCr_xvYCC709 
YCbCr_JPEG 

Definition at line 71 of file qvideosurfaceformat.h.

Constructors and Destructors

◆ QVideoSurfaceFormat() [1/3]

QVideoSurfaceFormat::QVideoSurfaceFormat ( )

Constructs a null video stream format.

Definition at line 212 of file qvideosurfaceformat.cpp.

214 {
215 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ QVideoSurfaceFormat() [2/3]

QVideoSurfaceFormat::QVideoSurfaceFormat ( const QSize size,
QVideoFrame::PixelFormat  pixelFormat,
QAbstractVideoBuffer::HandleType  handleType = QAbstractVideoBuffer::NoHandle 
)

Contructs a description of stream which receives stream of type buffers with given frame size and pixel format.

Definition at line 222 of file qvideosurfaceformat.cpp.

224  : d(new QVideoSurfaceFormatPrivate(size, format, type))
225 {
226 }
int type
Definition: qmetatype.cpp:239
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ QVideoSurfaceFormat() [3/3]

QVideoSurfaceFormat::QVideoSurfaceFormat ( const QVideoSurfaceFormat format)

Constructs a copy of other.

Definition at line 232 of file qvideosurfaceformat.cpp.

233  : d(other.d)
234 {
235 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ ~QVideoSurfaceFormat()

QVideoSurfaceFormat::~QVideoSurfaceFormat ( )

Destroys a video stream description.

Definition at line 252 of file qvideosurfaceformat.cpp.

253 {
254 }

Functions

◆ frameHeight()

int QVideoSurfaceFormat::frameHeight ( ) const

Returns the height of frame in a video stream.

Definition at line 334 of file qvideosurfaceformat.cpp.

335 {
336  return d->frameSize.height();
337 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
int height() const
Returns the height.
Definition: qsize.h:129

◆ frameRate()

qreal QVideoSurfaceFormat::frameRate ( ) const

Returns the frame rate of a video stream in frames per second.

Definition at line 412 of file qvideosurfaceformat.cpp.

413 {
414  return d->frameRate;
415 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ frameSize()

QSize QVideoSurfaceFormat::frameSize ( ) const

Returns the size of frames in a video stream.

See also
frameWidth(), frameHeight()

Definition at line 314 of file qvideosurfaceformat.cpp.

Referenced by operator<<().

315 {
316  return d->frameSize;
317 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ frameWidth()

int QVideoSurfaceFormat::frameWidth ( ) const

Returns the width of frames in a video stream.

See also
frameSize(), frameHeight()

Definition at line 325 of file qvideosurfaceformat.cpp.

326 {
327  return d->frameSize.width();
328 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
int width() const
Returns the width.
Definition: qsize.h:126

◆ handleType()

QAbstractVideoBuffer::HandleType QVideoSurfaceFormat::handleType ( ) const

Returns the type of handle the surface uses to present the frame data.

If the handle type is QAbstractVideoBuffer::NoHandle buffers with any handle type are valid provided they can be QAbstractVideoBuffer::map(){mapped} with the QAbstractVideoBuffer::ReadOnly flag. If the handleType() is not QAbstractVideoBuffer::NoHandle then the handle type of the buffer be the same as that of the surface format.

Definition at line 303 of file qvideosurfaceformat.cpp.

Referenced by QAbstractVideoSurface::isFormatSupported().

304 {
305  return d->handleType;
306 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
QAbstractVideoBuffer::HandleType handleType

◆ isValid()

bool QVideoSurfaceFormat::isValid ( ) const

Identifies if a video surface format has a valid pixel format and frame size.

Returns true if the format is valid, and false otherwise.

Definition at line 262 of file qvideosurfaceformat.cpp.

263 {
265 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
QVideoFrame::PixelFormat pixelFormat
bool isValid() const
Returns true if both the width and height is equal to or greater than 0; otherwise returns false...
Definition: qsize.h:123

◆ operator!=()

bool QVideoSurfaceFormat::operator!= ( const QVideoSurfaceFormat format) const

Returns true if other is different to a video format, and false if they are the same.

Definition at line 280 of file qvideosurfaceformat.cpp.

281 {
282  return d != other.d && !(*d == *other.d);
283 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ operator=()

QVideoSurfaceFormat & QVideoSurfaceFormat::operator= ( const QVideoSurfaceFormat format)

Assigns the values of other to a video stream description.

Definition at line 241 of file qvideosurfaceformat.cpp.

242 {
243  d = other.d;
244 
245  return *this;
246 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ operator==()

bool QVideoSurfaceFormat::operator== ( const QVideoSurfaceFormat format) const

Returns true if other is the same as a video format, and false if they are the different.

Definition at line 271 of file qvideosurfaceformat.cpp.

272 {
273  return d == other.d || *d == *other.d;
274 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ pixelAspectRatio()

QSize QVideoSurfaceFormat::pixelAspectRatio ( ) const

Returns a video stream's pixel aspect ratio.

Definition at line 430 of file qvideosurfaceformat.cpp.

Referenced by operator<<().

431 {
432  return d->pixelAspectRatio;
433 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ pixelFormat()

QVideoFrame::PixelFormat QVideoSurfaceFormat::pixelFormat ( ) const

Returns the pixel format of frames in a video stream.

Definition at line 289 of file qvideosurfaceformat.cpp.

Referenced by QAbstractVideoSurface::isFormatSupported(), and operator<<().

290 {
291  return d->pixelFormat;
292 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
QVideoFrame::PixelFormat pixelFormat

◆ property()

QVariant QVideoSurfaceFormat::property ( const char *  name) const

Returns the value of the video format's name property.

Definition at line 517 of file qvideosurfaceformat.cpp.

Referenced by operator<<().

518 {
519  if (qstrcmp(name, "handleType") == 0) {
521  } else if (qstrcmp(name, "pixelFormat") == 0) {
523  } else if (qstrcmp(name, "handleType") == 0) {
525  } else if (qstrcmp(name, "frameSize") == 0) {
526  return d->frameSize;
527  } else if (qstrcmp(name, "frameWidth") == 0) {
528  return d->frameSize.width();
529  } else if (qstrcmp(name, "frameHeight") == 0) {
530  return d->frameSize.height();
531  } else if (qstrcmp(name, "viewport") == 0) {
532  return d->viewport;
533  } else if (qstrcmp(name, "scanLineDirection") == 0) {
535  } else if (qstrcmp(name, "frameRate") == 0) {
537  } else if (qstrcmp(name, "pixelAspectRatio") == 0) {
539  } else if (qstrcmp(name, "sizeHint") == 0) {
540  return sizeHint();
541  } else if (qstrcmp(name, "yCbCrColorSpace") == 0) {
543  } else {
544  int id = 0;
545  for (; id < d->propertyNames.count() && d->propertyNames.at(id) != name; ++id) {}
546 
547  return id < d->propertyValues.count()
548  ? d->propertyValues.at(id)
549  : QVariant();
550  }
551 }
The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:92
QSize sizeHint() const
Returns a suggested size in pixels for the video stream.
QVideoSurfaceFormat::Direction scanLineDirection
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
QVideoFrame::PixelFormat pixelFormat
int width() const
Returns the width.
Definition: qsize.h:126
QVideoSurfaceFormat::YCbCrColorSpace ycbcrColorSpace
const char * name
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
Definition: qvariant.h:336
QAbstractVideoBuffer::HandleType handleType
int height() const
Returns the height.
Definition: qsize.h:129
int qstrcmp(const QByteArray &str1, const char *str2)
Definition: qbytearray.cpp:336

◆ propertyNames()

QList< QByteArray > QVideoSurfaceFormat::propertyNames ( ) const

Returns a list of video format dynamic property names.

Definition at line 497 of file qvideosurfaceformat.cpp.

Referenced by operator<<().

498 {
499  return (QList<QByteArray>()
500  << "handleType"
501  << "pixelFormat"
502  << "frameSize"
503  << "frameWidth"
504  << "viewport"
505  << "scanLineDirection"
506  << "frameRate"
507  << "pixelAspectRatio"
508  << "sizeHint"
509  << "yCbCrColorSpace")
510  + d->propertyNames;
511 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ scanLineDirection()

QVideoSurfaceFormat::Direction QVideoSurfaceFormat::scanLineDirection ( ) const

Returns the direction of scan lines.

Definition at line 394 of file qvideosurfaceformat.cpp.

395 {
396  return d->scanLineDirection;
397 }
QVideoSurfaceFormat::Direction scanLineDirection
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ setFrameRate()

void QVideoSurfaceFormat::setFrameRate ( qreal  rate)

Sets the frame rate of a video stream in frames per second.

Definition at line 421 of file qvideosurfaceformat.cpp.

422 {
423  d->frameRate = rate;
424 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ setFrameSize() [1/2]

void QVideoSurfaceFormat::setFrameSize ( const QSize size)

Sets the size of frames in a video stream to size.

This will reset the viewport() to fill the entire frame.

Definition at line 345 of file qvideosurfaceformat.cpp.

346 {
347  d->frameSize = size;
348  d->viewport = QRect(QPoint(0, 0), size);
349 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58

◆ setFrameSize() [2/2]

void QVideoSurfaceFormat::setFrameSize ( int  width,
int  height 
)

Sets the width and height of frames in a video stream.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

This will reset the viewport() to fill the entire frame.

Definition at line 362 of file qvideosurfaceformat.cpp.

363 {
364  d->frameSize = QSize(width, height);
365  d->viewport = QRect(0, 0, width, height);
366 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53

◆ setPixelAspectRatio() [1/2]

void QVideoSurfaceFormat::setPixelAspectRatio ( const QSize ratio)

Sets a video stream's pixel aspect ratio.

Definition at line 439 of file qvideosurfaceformat.cpp.

440 {
442 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
static double ratio(Bigint *a, Bigint *b)

◆ setPixelAspectRatio() [2/2]

void QVideoSurfaceFormat::setPixelAspectRatio ( int  horizontal,
int  vertical 
)

Sets the horizontal and vertical elements of a video stream's pixel aspect ratio.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 453 of file qvideosurfaceformat.cpp.

454 {
455  d->pixelAspectRatio = QSize(horizontal, vertical);
456 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53

◆ setProperty()

void QVideoSurfaceFormat::setProperty ( const char *  name,
const QVariant value 
)

Sets the video format's name property to value.

Definition at line 557 of file qvideosurfaceformat.cpp.

558 {
559  if (qstrcmp(name, "handleType") == 0) {
560  // read only.
561  } else if (qstrcmp(name, "pixelFormat") == 0) {
562  // read only.
563  } else if (qstrcmp(name, "frameSize") == 0) {
564  if (value.canConvert<QSize>()) {
565  d->frameSize = qvariant_cast<QSize>(value);
566  d->viewport = QRect(QPoint(0, 0), d->frameSize);
567  }
568  } else if (qstrcmp(name, "frameWidth") == 0) {
569  // read only.
570  } else if (qstrcmp(name, "frameHeight") == 0) {
571  // read only.
572  } else if (qstrcmp(name, "viewport") == 0) {
573  if (value.canConvert<QRect>())
574  d->viewport = qvariant_cast<QRect>(value);
575  } else if (qstrcmp(name, "scanLineDirection") == 0) {
576  if (value.canConvert<Direction>())
577  d->scanLineDirection = qvariant_cast<Direction>(value);
578  } else if (qstrcmp(name, "frameRate") == 0) {
579  if (value.canConvert<qreal>())
580  d->frameRate = qvariant_cast<qreal>(value);
581  } else if (qstrcmp(name, "pixelAspectRatio") == 0) {
582  if (value.canConvert<QSize>())
583  d->pixelAspectRatio = qvariant_cast<QSize>(value);
584  } else if (qstrcmp(name, "sizeHint") == 0) {
585  // read only.
586  } else if (qstrcmp(name, "yCbCrColorSpace") == 0) {
587  if (value.canConvert<YCbCrColorSpace>())
588  d->ycbcrColorSpace = qvariant_cast<YCbCrColorSpace>(value);
589  } else {
590  int id = 0;
591  for (; id < d->propertyNames.count() && d->propertyNames.at(id) != name; ++id) {}
592 
593  if (id < d->propertyValues.count()) {
594  if (value.isNull()) {
595  d->propertyNames.removeAt(id);
597  } else {
598  d->propertyValues[id] = value;
599  }
600  } else if (!value.isNull()) {
602  d->propertyValues.append(value);
603  }
604  }
605 }
double qreal
Definition: qglobal.h:1193
QVideoSurfaceFormat::Direction scanLineDirection
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
bool isNull() const
Returns true if this is a NULL variant, false otherwise.
Definition: qvariant.cpp:3102
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QVideoSurfaceFormat::YCbCrColorSpace ycbcrColorSpace
bool canConvert(Type t) const
Returns true if the variant&#39;s type can be cast to the requested type, t.
Definition: qvariant.cpp:2886
const char * name
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
T qvariant_cast(const QVariant &)
Definition: qvariant.h:571
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53
int qstrcmp(const QByteArray &str1, const char *str2)
Definition: qbytearray.cpp:336
YCbCrColorSpace
Enumerates the Y&#39;CbCr color space of video frames.
void removeAt(int i)
Removes the item at index position i.
Definition: qlist.h:480

◆ setScanLineDirection()

void QVideoSurfaceFormat::setScanLineDirection ( Direction  direction)

Sets the direction of scan lines.

Definition at line 403 of file qvideosurfaceformat.cpp.

404 {
406 }
QVideoSurfaceFormat::Direction scanLineDirection
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
Qt::LayoutDirection direction

◆ setViewport()

void QVideoSurfaceFormat::setViewport ( const QRect viewport)

Sets the viewport of a video stream to viewport.

Definition at line 385 of file qvideosurfaceformat.cpp.

386 {
387  d->viewport = viewport;
388 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
QRect viewport() const
Returns the viewport of a video stream.

◆ setYCbCrColorSpace()

void QVideoSurfaceFormat::setYCbCrColorSpace ( QVideoSurfaceFormat::YCbCrColorSpace  space)

Sets the Y'CbCr color space of a video stream.

It is only used with raw YUV frame types.

Definition at line 472 of file qvideosurfaceformat.cpp.

473 {
474  d->ycbcrColorSpace = space;
475 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
QVideoSurfaceFormat::YCbCrColorSpace ycbcrColorSpace

◆ sizeHint()

QSize QVideoSurfaceFormat::sizeHint ( ) const

Returns a suggested size in pixels for the video stream.

This is the size of the viewport scaled according to the pixel aspect ratio.

Definition at line 483 of file qvideosurfaceformat.cpp.

Referenced by property().

484 {
485  QSize size = d->viewport.size();
486 
487  if (d->pixelAspectRatio.height() != 0)
489 
490  return size;
491 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
void setWidth(int w)
Sets the width to the given width.
Definition: qsize.h:132
int width() const
Returns the width.
Definition: qsize.h:126
QSize size() const
Returns the size of the rectangle.
Definition: qrect.h:309
int height() const
Returns the height.
Definition: qsize.h:129
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53

◆ viewport()

QRect QVideoSurfaceFormat::viewport ( ) const

Returns the viewport of a video stream.

The viewport is the region of a video frame that is actually displayed.

By default the viewport covers an entire frame.

Definition at line 376 of file qvideosurfaceformat.cpp.

Referenced by operator<<(), and setViewport().

377 {
378  return d->viewport;
379 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d

◆ yCbCrColorSpace()

QVideoSurfaceFormat::YCbCrColorSpace QVideoSurfaceFormat::yCbCrColorSpace ( ) const

Returns the Y'CbCr color space of a video stream.

Definition at line 462 of file qvideosurfaceformat.cpp.

463 {
464  return d->ycbcrColorSpace;
465 }
QSharedDataPointer< QVideoSurfaceFormatPrivate > d
QVideoSurfaceFormat::YCbCrColorSpace ycbcrColorSpace

Properties

◆ d

QSharedDataPointer<QVideoSurfaceFormatPrivate> QVideoSurfaceFormat::d
private

The documentation for this class was generated from the following files: