mod_oggchef.cpp File Reference

#include "query_utils.h"
#include "anx_time.h"
#include "apr_stdcall.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_protocol.h"
#include "apr_strings.h"
#include <stdio.h>
#include <string.h>
#include <libOOOgg/libOOOgg.h>
#include <libOOOgg/dllstuff.h>
#include <libOOOggSeek/AutoAnxSeekTable.h>
#include <libOOOggSeek/AutoOggSeekTable.h>
#include <libOOOggChef/AnnodexRecomposer.h>
#include <libOOOggChef/CMMLRecomposer.h>
#include <libOOOggChef/IRecomposer.h>
#include <libOOOggChef/utils.h>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <list>
#include <string>

Include dependency graph for mod_oggchef.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define MIME_QUALITY_PAIR(s)   ( make_pair<float, char *>(get_accept_quality(inRequest, s), s) )

Typedefs

typedef pair< float, char * > tQualityPair

Functions

typedef int (C_FUNCTION_POINTER *tIntToInt)(int)
string transformString (const string &inString, tIntToInt inCFunctionToApply)
bool isAnnodexFile (string locFilename)
bool isOggFile (string locFilename)
bool isCMMLFile (string locFilename)
bool qualityPairComparator (const tQualityPair &p1, const tQualityPair &p2)
const vector< string > * preferredOutputMIMETypes (request_rec *inRequest)
bool httpDataSender (unsigned char *inBuffer, unsigned long inBufferLength, void *inUserData)
int AP_MODULE_ENTRY_POINT oggchef_handler (request_rec *inRequest)
void AP_MODULE_ENTRY_POINT oggchef_register_hooks (apr_pool_t *)

Variables

module AP_MODULE_DECLARE_DATA oggchef_module


Define Documentation

#define MIME_QUALITY_PAIR  )     ( make_pair<float, char *>(get_accept_quality(inRequest, s), s) )
 

Referenced by preferredOutputMIMETypes().


Typedef Documentation

typedef pair<float, char *> tQualityPair
 

Definition at line 106 of file mod_oggchef.cpp.

Referenced by preferredOutputMIMETypes().


Function Documentation

bool httpDataSender unsigned char *  inBuffer,
unsigned long  inBufferLength,
void *  inUserData
 

Definition at line 167 of file mod_oggchef.cpp.

Referenced by oggchef_handler().

typedef int C_FUNCTION_POINTER *  tIntToInt  ) 
 

bool isAnnodexFile string  locFilename  ) 
 

Definition at line 82 of file mod_oggchef.cpp.

References transformString().

Referenced by oggchef_handler(), and preferredOutputMIMETypes().

Here is the call graph for this function:

bool isCMMLFile string  locFilename  ) 
 

Definition at line 98 of file mod_oggchef.cpp.

References transformString().

Referenced by oggchef_handler(), and preferredOutputMIMETypes().

Here is the call graph for this function:

bool isOggFile string  locFilename  ) 
 

Definition at line 90 of file mod_oggchef.cpp.

References transformString().

Referenced by oggchef_handler(), and preferredOutputMIMETypes().

Here is the call graph for this function:

int AP_MODULE_ENTRY_POINT oggchef_handler request_rec *  inRequest  )  [static]
 

Definition at line 178 of file mod_oggchef.cpp.

References anx_parse_time(), AP_MODULE_ENTRY_POINT, fileExists(), httpDataSender(), isAnnodexFile(), isCMMLFile(), isOggFile(), make_cgi_table(), preferredOutputMIMETypes(), IRecomposer::recomposeStreamFrom(), and wantOnlyCMML().

Referenced by oggchef_register_hooks().

Here is the call graph for this function:

void AP_MODULE_ENTRY_POINT oggchef_register_hooks apr_pool_t *   )  [static]
 

Definition at line 267 of file mod_oggchef.cpp.

References AP_HOOK_HANDLER_FUNCTION, AP_MODULE_ENTRY_POINT, and oggchef_handler().

Here is the call graph for this function:

const vector<string>* preferredOutputMIMETypes request_rec *  inRequest  ) 
 

Definition at line 113 of file mod_oggchef.cpp.

References get_accept_quality(), isAnnodexFile(), isCMMLFile(), isOggFile(), MIME_QUALITY_PAIR, and tQualityPair.

Referenced by oggchef_handler().

Here is the call graph for this function:

bool qualityPairComparator const tQualityPair p1,
const tQualityPair p2
 

Definition at line 108 of file mod_oggchef.cpp.

string transformString const string &  inString,
tIntToInt  inCFunctionToApply
 

Definition at line 72 of file mod_oggchef.cpp.

Referenced by isAnnodexFile(), isCMMLFile(), and isOggFile().


Variable Documentation

module AP_MODULE_DECLARE_DATA oggchef_module
 

Initial value:

 {
    STANDARD20_MODULE_STUFF, 
    NULL,                  
    NULL,                  
    NULL,                  
    NULL,                  
    NULL,                  
    AP_REGISTER_HOOK_FUNCTION(oggchef_register_hooks)  
}

Definition at line 276 of file mod_oggchef.cpp.


Generated on Tue Feb 15 15:00:31 2005 for oggdsf by  doxygen 1.3.9