#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 (uint8_t *buf, int size, x264_nal_t *nals, int nnal) |
| static int | X264_frame (AVCodecContext *ctx, uint8_t *buf, int bufsize, void *data) |
| static int | X264_close (AVCodecContext *avctx) |
| static int | X264_init (AVCodecContext *avctx) |
Variables | |
| AVCodec | libx264_encoder |
| static int encode_nals | ( | uint8_t * | buf, | |
| int | size, | |||
| x264_nal_t * | nals, | |||
| int | nnal | |||
| ) | [static] |
| static int X264_close | ( | AVCodecContext * | avctx | ) | [static] |
| static int X264_frame | ( | AVCodecContext * | ctx, | |
| uint8_t * | buf, | |||
| int | bufsize, | |||
| void * | data | |||
| ) | [static] |
| static int X264_init | ( | AVCodecContext * | avctx | ) | [static] |
| static void X264_log | ( | void * | p, | |
| int | level, | |||
| const char * | fmt, | |||
| va_list | args | |||
| ) | [static] |
Initial value:
{
.name = "libx264",
.type = CODEC_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 = (enum PixelFormat[]) { PIX_FMT_YUV420P, -1 }
}
1.5.6