Into

Modules

Documentation

classPiiVideoWriter

#include <PiiVideoWriter.h>

An interface for writing video files with avcodec.

Description

Constructors and destructor

(
  • const QString & fileName
  • int width = 100
  • int height = 100
  • int frameRate = 25
)

Public member functions

int
int
( )
void

Initialize the writer.

bool
( )
bool
( )
void
( )
void
(
  • int frameRate
)
void
(
  • int height
)
void
(
  • int width
  • int height
)
void
(
  • int width
)
int
( )

Protected member functions

bool
bool
( )
bool
( )
bool

Function details

  • PiiVideoWriter

    (
    • const QString & fileName
    • int width = 100
    • int height = 100
    • int frameRate = 25
    )
  • ~PiiVideoWriter

    ()
  • QString fileName

    ()
  • int frameRate

    ()
  • int height

    ()
  • void initialize

    ()

    Initialize the writer.

    This function must be called before frames are being written into video. The implementation initializes libavcodec.

    Exceptions
    PiiVideoException&

    if the initialization could not be performed.

  • bool saveNextColorFrame

    ( )
  • bool saveNextGrayFrame

    ( )
  • void setFileName

    ( )
  • void setFrameRate

    (
    • int frameRate
    )
  • void setHeight

    (
    • int height
    )
  • void setSize

    (
    • int width
    • int height
    )
  • void setWidth

    (
    • int width
    )
  • int width

    ()
  • bool allocateMediaContext

    ()
    [protected]
  • bool convertColorToYUV

    ( )
    [protected]
  • bool convertGrayToYUV

    ( )
    [protected]
  • bool initializeCodec

    ()
    [protected]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.