vorbisencode.h File Reference

Vorbis encoding routine routine for Indra. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

S32 check_for_invalid_wav_formats (const char *in_fname, char *error_msg)
S32 encode_vorbis_file (const char *in_fname, const char *out_fname)
S32 encode_vorbis_file_at (const char *in_fname, const char *out_fname, S32 bitrate)

Variables

const S32 LLVORBISENC_NOERR = 0
const S32 LLVORBISENC_SOURCE_OPEN_ERR = 1
const S32 LLVORBISENC_DEST_OPEN_ERR = 2
const S32 LLVORBISENC_WAV_FORMAT_ERR = 3
const S32 LLVORBISENC_PCM_FORMAT_ERR = 4
const S32 LLVORBISENC_MONO_ERR = 5
const S32 LLVORBISENC_STEREO_ERR = 6
const S32 LLVORBISENC_MULTICHANNEL_ERR = 7
const S32 LLVORBISENC_UNSUPPORTED_SAMPLE_RATE = 8
const S32 LLVORBISENC_UNSUPPORTED_WORD_SIZE = 9
const S32 LLVORBISENC_CLIP_TOO_LONG = 10


Detailed Description

Vorbis encoding routine routine for Indra.

LicenseInfo
firstyear=2000&license=viewergpl

Copyright (c) 2000-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file vorbisencode.h.


Function Documentation

S32 check_for_invalid_wav_formats ( const char *  in_fname,
char *  error_msg 
)

Definition at line 73 of file vorbisencode.cpp.

References f, FALSE, ll_apr_file_open(), ll_apr_file_read(), ll_apr_file_seek(), LL_APR_RB, LLVORBISENC_CLIP_TOO_LONG, LLVORBISENC_MULTICHANNEL_ERR, LLVORBISENC_NOERR, LLVORBISENC_PCM_FORMAT_ERR, LLVORBISENC_SOURCE_OPEN_ERR, LLVORBISENC_UNSUPPORTED_SAMPLE_RATE, LLVORBISENC_UNSUPPORTED_WORD_SIZE, LLVORBISENC_WAV_FORMAT_ERR, and TRUE.

Referenced by encode_vorbis_file_at(), and upload_pick().

S32 encode_vorbis_file ( const char *  in_fname,
const char *  out_fname 
)

Definition at line 196 of file vorbisencode.cpp.

References encode_vorbis_file_at().

S32 encode_vorbis_file_at ( const char *  in_fname,
const char *  out_fname,
S32  bitrate 
)

Definition at line 201 of file vorbisencode.cpp.

References check_for_invalid_wav_formats(), i, ll_apr_file_open(), ll_apr_file_read(), ll_apr_file_seek(), ll_apr_file_write(), LL_APR_RB, LL_APR_WPB, ll_rand(), llclamp(), llendl, llinfos, LLVORBISENC_DEST_OPEN_ERR, LLVORBISENC_NOERR, LLVORBISENC_SOURCE_OPEN_ERR, llwarns, MAX_STRING, NULL, READ_BUFFER, and S32.

Referenced by encode_vorbis_file(), and upload_new_resource().


Variable Documentation

const S32 LLVORBISENC_CLIP_TOO_LONG = 10

Definition at line 45 of file vorbisencode.h.

Referenced by check_for_invalid_wav_formats().

const S32 LLVORBISENC_DEST_OPEN_ERR = 2

Definition at line 37 of file vorbisencode.h.

Referenced by encode_vorbis_file_at(), and upload_new_resource().

const S32 LLVORBISENC_MONO_ERR = 5

Definition at line 40 of file vorbisencode.h.

const S32 LLVORBISENC_MULTICHANNEL_ERR = 7

Definition at line 42 of file vorbisencode.h.

Referenced by check_for_invalid_wav_formats().

const S32 LLVORBISENC_NOERR = 0

Definition at line 35 of file vorbisencode.h.

Referenced by check_for_invalid_wav_formats(), encode_vorbis_file_at(), and upload_new_resource().

const S32 LLVORBISENC_PCM_FORMAT_ERR = 4

Definition at line 39 of file vorbisencode.h.

Referenced by check_for_invalid_wav_formats().

const S32 LLVORBISENC_SOURCE_OPEN_ERR = 1

Definition at line 36 of file vorbisencode.h.

Referenced by check_for_invalid_wav_formats(), and encode_vorbis_file_at().

const S32 LLVORBISENC_STEREO_ERR = 6

Definition at line 41 of file vorbisencode.h.

const S32 LLVORBISENC_UNSUPPORTED_SAMPLE_RATE = 8

Definition at line 43 of file vorbisencode.h.

Referenced by check_for_invalid_wav_formats().

const S32 LLVORBISENC_UNSUPPORTED_WORD_SIZE = 9

Definition at line 44 of file vorbisencode.h.

Referenced by check_for_invalid_wav_formats().

const S32 LLVORBISENC_WAV_FORMAT_ERR = 3

Definition at line 38 of file vorbisencode.h.

Referenced by check_for_invalid_wav_formats().


Generated on Thu Jul 1 06:11:03 2010 for Second Life Viewer by  doxygen 1.4.7