FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
s3tc.h File Reference
#include <stdint.h>
#include "bytestream.h"

Go to the source code of this file.

Macros

#define FF_S3TC_DXT1   0x31545844
 
#define FF_S3TC_DXT3   0x33545844
 

Functions

void ff_decode_dxt1 (GetByteContext *gb, uint8_t *dst, const unsigned int w, const unsigned int h, const unsigned int stride)
 Decode DXT1 encoded data to RGB32.
 
void ff_decode_dxt3 (GetByteContext *gb, uint8_t *dst, const unsigned int w, const unsigned int h, const unsigned int stride)
 Decode DXT3 encoded data to RGB32.
 

Macro Definition Documentation

#define FF_S3TC_DXT1   0x31545844

Definition at line 29 of file s3tc.h.

Referenced by txd_decode_frame().

#define FF_S3TC_DXT3   0x33545844

Definition at line 30 of file s3tc.h.

Referenced by txd_decode_frame().

Function Documentation

void ff_decode_dxt1 ( GetByteContext gb,
uint8_t dst,
const unsigned int  w,
const unsigned int  h,
const unsigned int  stride 
)

Decode DXT1 encoded data to RGB32.

Parameters
gbGetByteContext
dstdestination buffer
wwidth of output image
hheight of output image
strideline size of output image

Definition at line 77 of file s3tc.c.

Referenced by txd_decode_frame().

void ff_decode_dxt3 ( GetByteContext gb,
uint8_t dst,
const unsigned int  w,
const unsigned int  h,
const unsigned int  stride 
)

Decode DXT3 encoded data to RGB32.

Parameters
gbGetByteContext
dstdestination buffer
wwidth of output image
hheight of output image
strideline size of output image

Definition at line 88 of file s3tc.c.

Referenced by txd_decode_frame().