GRASS Programmer's Manual  6.5.svn(2014)-r66266
 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. More...
 
int gsd_write_mpegframe (void)
 Get RGB pixbuf and convert to YUV 4:2:0. More...
 
int gsd_close_mpeg (void)
 Close the mpeg, free buffer, and close file. More...
 

Detailed Description

OGSF library - FFMPEG stuff.

GRASS OpenGL gsurf OGSF Library

(C) 1999-2008, 2012 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 (May 2008) and update for FFMPEG >= 0.7 (November 2012) by Martin Landa <landa.martin gmail.com>

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 475 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 317 of file gsd_img_mpeg.c.

References b, G_verbose_message(), G_warning(), l, 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 428 of file gsd_img_mpeg.c.

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