GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gsd_img_mpeg.c File Reference

OGSF library - FFMPEG stuff. More...

#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include <grass/ogsf_proto.h>
#include <grass/gstypes.h>
Include dependency graph for gsd_img_mpeg.c:

Go to the source code of this file.

Functions

int gsd_init_mpeg (const char *filename)
 Initialize FAME setup mpeg defaults and open file for writing.
int gsd_write_mpegframe (void)
 Get RGB pixbuf and convert to YUV 4:2:0.
int gsd_close_mpeg (void)
 Close the mpeg, free buffer, and close file.

Detailed Description

OGSF library - FFMPEG stuff.

GRASS OpenGL gsurf OGSF Library

(C) 1999-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author:
Bill Brown USACERL, GMSL/University of Illinois
Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)

Definition in file gsd_img_mpeg.c.


Function Documentation

int gsd_close_mpeg ( void  )

Close the mpeg, free buffer, and close file.

Returns:
0

Definition at line 421 of file gsd_img_mpeg.c.

References G_debug().

int gsd_init_mpeg ( const char *  filename)

Initialize FAME setup mpeg defaults and open file for writing.

Parameters:
filenamefile name
Returns:
-1 on failure
0 on success

Definition at line 286 of file gsd_img_mpeg.c.

References b, G_verbose_message(), G_warning(), NULL, and r.

int gsd_write_mpegframe ( void  )

Get RGB pixbuf and convert to YUV 4:2:0.

Image and write to mpeg stream

Returns:
0

Definition at line 374 of file gsd_img_mpeg.c.

References b, g, G_free(), gsd_getimage(), and r.