#include <TheoraEncoder.h>
Collaboration diagram for TheoraEncoder:
Public Member Functions | |
TheoraEncoder (void) | |
~TheoraEncoder (void) | |
StampedOggPacket ** | initCodec (theora_info inTheoraInfo) |
Initialise the code, We get back three packets we must delete. | |
StampedOggPacket * | encodeTheora (yuv_buffer *inYUVBuffer) |
Encode the frame buffer. We get back a packet to delete or NULL. | |
Protected Member Functions | |
StampedOggPacket * | oldToNewPacket (ogg_packet *inPacket) |
Converts an xiph like ogg packet into a StampedOggPacket. | |
Protected Attributes | |
theora_info | mTheoraInfo |
theora_comment | mTheoraComment |
theora_state | mTheoraState |
unsigned long | mHeadersSeen |
bool | mFirstPacket |
bool | mFirstHeader |
unsigned long | mPacketCount |
|
Definition at line 35 of file TheoraEncoder.cpp. |
|
Definition at line 39 of file TheoraEncoder.cpp. |
|
Encode the frame buffer. We get back a packet to delete or NULL. Returns a packet you must delete, otherwise returns NULL if it fails. Pass it a yuv frame buffer which you own. Definition at line 89 of file TheoraEncoder.cpp. References mTheoraState, oldToNewPacket(), theora_encode_packetout(), and theora_encode_YUVin(). Referenced by TheoraEncodeInputPin::TransformData(). |
Here is the call graph for this function:
|
Initialise the code, We get back three packets we must delete. Returns three header packets which you must delete when done. Give it a theora_info. Definition at line 45 of file TheoraEncoder.cpp. References mTheoraComment, mTheoraInfo, mTheoraState, oldToNewPacket(), theora_comment_init(), theora_encode_comment(), theora_encode_header(), theora_encode_init(), and theora_encode_tables(). Referenced by TheoraEncodeInputPin::TransformData(). |
Here is the call graph for this function:
|
Converts an xiph like ogg packet into a StampedOggPacket. Converts our StampedOggPacket into a packet that the theora library will accept. You still own the old packet. But you must delete the returned packet. Definition at line 74 of file TheoraEncoder.cpp. Referenced by encodeTheora(), and initCodec(). |
|
Definition at line 72 of file TheoraEncoder.h. |
|
Definition at line 71 of file TheoraEncoder.h. |
|
Definition at line 70 of file TheoraEncoder.h. |
|
Definition at line 73 of file TheoraEncoder.h. |
|
Definition at line 63 of file TheoraEncoder.h. Referenced by initCodec(). |
|
Definition at line 62 of file TheoraEncoder.h. Referenced by initCodec(). |
|
Definition at line 64 of file TheoraEncoder.h. Referenced by encodeTheora(), and initCodec(). |