libavcodec/libx264.c File Reference

#include "avcodec.h"
#include <x264.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  X264Context

Functions

static void X264_log (void *p, int level, const char *fmt, va_list args)
static int encode_nals (AVCodecContext *ctx, uint8_t *buf, int size, x264_nal_t *nals, int nnal, int skip_sei)
static int X264_frame (AVCodecContext *ctx, uint8_t *buf, int bufsize, void *data)
static av_cold int X264_close (AVCodecContext *avctx)
static av_cold int X264_init (AVCodecContext *avctx)

Variables

AVCodec libx264_encoder


Function Documentation

static int encode_nals ( AVCodecContext ctx,
uint8_t *  buf,
int  size,
x264_nal_t *  nals,
int  nnal,
int  skip_sei 
) [static]

Definition at line 54 of file libx264.c.

Referenced by X264_frame(), and X264_init().

static av_cold int X264_close ( AVCodecContext avctx  )  [static]

Definition at line 136 of file libx264.c.

static int X264_frame ( AVCodecContext ctx,
uint8_t *  buf,
int  bufsize,
void *  data 
) [static]

Definition at line 83 of file libx264.c.

static av_cold int X264_init ( AVCodecContext avctx  )  [static]

Definition at line 149 of file libx264.c.

static void X264_log ( void *  p,
int  level,
const char *  fmt,
va_list  args 
) [static]

Definition at line 38 of file libx264.c.

Referenced by X264_init().


Variable Documentation

Initial value:

 {
    .name           = "libx264",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_H264,
    .priv_data_size = sizeof(X264Context),
    .init           = X264_init,
    .encode         = X264_frame,
    .close          = X264_close,
    .capabilities   = CODEC_CAP_DELAY,
    .pix_fmts       = (const enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE },
    .long_name      = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
}

Definition at line 319 of file libx264.c.


Generated on Fri Oct 26 02:36:52 2012 for FFmpeg by  doxygen 1.5.8