#include "avcodec.h"#include <x264.h>#include <math.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 (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 |
| static int encode_nals | ( | uint8_t * | buf, | |
| int | size, | |||
| x264_nal_t * | nals, | |||
| int | nnal | |||
| ) | [static] |
| static int X264_close | ( | AVCodecContext * | avctx | ) | [static] |
| 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.

| int X264_init | ( | AVCodecContext * | avctx | ) |
Definition at line 126 of file x264.c.
References AVCodecContext::bit_rate, CODEC_FLAG_QSCALE, AVCodecContext::coded_frame, AVCodecContext::coder_type, AVRational::den, X264Context::enc, FF_CODER_TYPE_AC, FF_QP2LAMBDA, AVCodecContext::flags, AVCodecContext::global_quality, AVCodecContext::gop_size, AVCodecContext::height, AVCodecContext::max_b_frames, AVCodecContext::max_qdiff, AVRational::num, X264Context::out_pic, X264Context::params, AVCodecContext::priv_data, AVCodecContext::qmax, AVCodecContext::qmin, AVCodecContext::rc_buffer_size, AVCodecContext::sample_aspect_ratio, AVCodecContext::thread_count, AVCodecContext::time_base, AVCodecContext::width, and X264_log().

| 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().

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().
1.5.5