FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
s3tc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "s3tc.h"

Go to the source code of this file.

Functions

static void dxt1_decode_pixels (GetByteContext *gb, uint32_t *d, unsigned int w, unsigned int h, unsigned int qstride, unsigned int flag, uint64_t alpha)
 
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. More...
 
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. More...
 

Function Documentation

static void dxt1_decode_pixels ( GetByteContext gb,
uint32_t *  d,
unsigned int  w,
unsigned int  h,
unsigned int  qstride,
unsigned int  flag,
uint64_t  alpha 
)
inlinestatic

Definition at line 28 of file s3tc.c.

Referenced by ff_decode_dxt1(), and ff_decode_dxt3().

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 82 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 93 of file s3tc.c.

Referenced by txd_decode_frame().