libavcodec/libxavs.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdint.h>
#include <xavs.h>
#include "avcodec.h"
Go to the source code of this file.
|
Data Structures |
struct | XavsContext |
Defines |
#define | END_OF_STREAM 0x001 |
#define | XAVS_PART_I8X8 0x002 |
#define | XAVS_PART_P8X8 0x010 |
#define | XAVS_PART_B8X8 0x100 |
Functions |
static void | XAVS_log (void *p, int level, const char *fmt, va_list args) |
static int | encode_nals (AVCodecContext *ctx, uint8_t *buf, int size, xavs_nal_t *nals, int nnal, int skip_sei) |
static int | XAVS_frame (AVCodecContext *ctx, uint8_t *buf, int bufsize, void *data) |
static av_cold int | XAVS_close (AVCodecContext *avctx) |
static av_cold int | XAVS_init (AVCodecContext *avctx) |
Variables |
AVCodec | ff_libxavs_encoder |
Define Documentation
#define END_OF_STREAM 0x001 |
#define XAVS_PART_B8X8 0x100 |
#define XAVS_PART_I8X8 0x002 |
#define XAVS_PART_P8X8 0x010 |
Function Documentation
static int encode_nals |
( |
AVCodecContext * |
ctx, |
|
|
uint8_t * |
buf, |
|
|
int |
size, |
|
|
xavs_nal_t * |
nals, |
|
|
int |
nnal, |
|
|
int |
skip_sei | |
|
) |
| | [static] |
static int XAVS_frame |
( |
AVCodecContext * |
ctx, |
|
|
uint8_t * |
buf, |
|
|
int |
bufsize, |
|
|
void * |
data | |
|
) |
| | [static] |
static void XAVS_log |
( |
void * |
p, |
|
|
int |
level, |
|
|
const char * |
fmt, |
|
|
va_list |
args | |
|
) |
| | [static] |
Variable Documentation
Initial value:
{
.name = "libxavs",
.type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_CAVS,
.priv_data_size = sizeof(XavsContext),
.init = XAVS_init,
.encode = XAVS_frame,
.close = XAVS_close,
.capabilities = CODEC_CAP_DELAY,
.pix_fmts = (const enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("libxavs - the Chinese Audio Video Standard Encoder"),
}
Definition at line 339 of file libxavs.c.