hvirtual/quicktime/ffmpeg/libavcodec/x264.c File Reference

#include "avcodec.h"
#include <x264.h>
#include <math.h>

Include dependency graph for x264.c:

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 (uint8_t *buf, int size, x264_nal_t *nals, int nnal)
int X264_frame (AVCodecContext *ctx, uint8_t *buf, int bufsize, void *data)
static int X264_close (AVCodecContext *avctx)
int X264_init (AVCodecContext *avctx)

Variables

AVCodec x264_encoder


Function Documentation

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

Definition at line 49 of file x264.c.

References s.

Referenced by X264_frame().

static int X264_close ( AVCodecContext avctx  )  [static]

Definition at line 115 of file x264.c.

References X264Context::enc, and AVCodecContext::priv_data.

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

Definition at line 65 of file x264.c.

References X264Context::enc, encode_nals(), FF_B_TYPE, FF_I_TYPE, FF_P_TYPE, FF_QP2LAMBDA, X264Context::out_pic, X264Context::pic, and AVCodecContext::priv_data.

Here is the call graph for this function:

int X264_init ( AVCodecContext avctx  ) 

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

Definition at line 32 of file x264.c.

References AV_LOG_DEBUG, AV_LOG_ERROR, AV_LOG_INFO, and av_vlog().

Referenced by X264_init().

Here is the call graph for this function:


Variable Documentation

Initial value:

 {
    .name = "h264",
    .type = CODEC_TYPE_VIDEO,
    .id = CODEC_ID_H264,
    .priv_data_size = sizeof(X264Context),
    .init = X264_init,
    .encode = X264_frame,
    .close = X264_close,
    .pix_fmts = (enum PixelFormat[]) { PIX_FMT_YUV420P, -1 }
}

Definition at line 174 of file x264.c.

Referenced by avcodec_register_all().


Generated on Mon Apr 28 14:06:44 2008 for Cinelerra by  doxygen 1.5.5