QVideoSurfaceFormat Class ReferenceThe QVideoSurfaceFormat class specifies the stream format of a video presentation surface. Далее... #include <QVideoSurfaceFormat> Этот класс был введён в Qt 4.6. Открытые типы
Открытые функции
Подробное описаниеThe QVideoSurfaceFormat class specifies the stream format of a video presentation surface. 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. Описание типов-членовenum QVideoSurfaceFormat::DirectionEnumerates the layout direction of video scan lines.
enum QVideoSurfaceFormat::YCbCrColorSpaceEnumerates the Y'CbCr color space of video frames.
Описание функций-членовQVideoSurfaceFormat::QVideoSurfaceFormat ()Constructs a null video stream format. QVideoSurfaceFormat::QVideoSurfaceFormat ( const QSize & size, QVideoFrame::PixelFormat format, QAbstractVideoBuffer::HandleType type = QAbstractVideoBuffer::NoHandle )Contructs a description of stream which receives stream of type buffers with given frame size and pixel format. QVideoSurfaceFormat::QVideoSurfaceFormat ( const QVideoSurfaceFormat & other )Создаёт копию other. QVideoSurfaceFormat::~QVideoSurfaceFormat ()Destroys a video stream description. int QVideoSurfaceFormat::frameHeight () constReturns the height of frame in a video stream. qreal QVideoSurfaceFormat::frameRate () constReturns the frame rate of a video stream in frames per second. See also setFrameRate(). QSize QVideoSurfaceFormat::frameSize () constReturns the size of frames in a video stream. See also setFrameSize(), frameWidth(), and frameHeight(). int QVideoSurfaceFormat::frameWidth () constReturns the width of frames in a video stream. See also frameSize() and frameHeight(). QAbstractVideoBuffer::HandleType QVideoSurfaceFormat::handleType () constReturns 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 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. bool QVideoSurfaceFormat::isValid () constIdentifies if a video surface format has a valid pixel format and frame size. Returns true if the format is valid, and false otherwise. QSize QVideoSurfaceFormat::pixelAspectRatio () constReturns a video stream's pixel aspect ratio. See also setPixelAspectRatio(). QVideoFrame::PixelFormat QVideoSurfaceFormat::pixelFormat () constReturns the pixel format of frames in a video stream. QVariant QVideoSurfaceFormat::property ( const char * name ) constReturns the value of the video format's name property. See also setProperty(). QList<QByteArray> QVideoSurfaceFormat::propertyNames () constReturns a list of video format dynamic property names. Direction QVideoSurfaceFormat::scanLineDirection () constReturns the direction of scan lines. See also setScanLineDirection(). void QVideoSurfaceFormat::setFrameRate ( qreal rate )Sets the frame rate of a video stream in frames per second. See also frameRate(). 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. See also frameSize(). void QVideoSurfaceFormat::setFrameSize ( int width, int height )Это перегруженная функция. Sets the width and height of frames in a video stream. This will reset the viewport() to fill the entire frame. void QVideoSurfaceFormat::setPixelAspectRatio ( const QSize & ratio )Sets a video stream's pixel aspect ratio. See also pixelAspectRatio(). void QVideoSurfaceFormat::setPixelAspectRatio ( int horizontal, int vertical )Это перегруженная функция. Sets the horizontal and vertical elements of a video stream's pixel aspect ratio. void QVideoSurfaceFormat::setProperty ( const char * name, const QVariant & value )Sets the video format's name property to value. See also property(). void QVideoSurfaceFormat::setScanLineDirection ( Direction direction )Sets the direction of scan lines. See also scanLineDirection(). void QVideoSurfaceFormat::setViewport ( const QRect & viewport )Sets the viewport of a video stream to viewport. See also viewport(). void QVideoSurfaceFormat::setYCbCrColorSpace ( YCbCrColorSpace space )Sets the Y'CbCr color space of a video stream. It is only used with raw YUV frame types. See also yCbCrColorSpace(). QSize QVideoSurfaceFormat::sizeHint () constReturns a suggested size in pixels for the video stream. This is the size of the viewport scaled according to the pixel aspect ratio. QRect QVideoSurfaceFormat::viewport () constReturns 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. Смотрите также setViewport(). YCbCrColorSpace QVideoSurfaceFormat::yCbCrColorSpace () constReturns the Y'CbCr color space of a video stream. See also setYCbCrColorSpace(). bool QVideoSurfaceFormat::operator!= ( const QVideoSurfaceFormat & other ) constReturns true if other is different to a video format, and false if they are the same. QVideoSurfaceFormat & QVideoSurfaceFormat::operator= ( const QVideoSurfaceFormat & other )Assigns the values of other to a video stream description. bool QVideoSurfaceFormat::operator== ( const QVideoSurfaceFormat & other ) constReturns true if other is the same as a video format, and false if they are the different. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |