30 if (avctx->
width & 1) {
46 const AVFrame *pic,
int *got_packet)
63 y = (uint16_t *)pic->
data[0];
64 u = (uint16_t *)pic->
data[1];
65 v = (uint16_t *)pic->
data[2];
68 for (j = 0; j < avctx->
width; j++) {
71 val |= (uint32_t) v[j] << 22;
This structure describes decoded (raw) audio or video data.
AVFrame * coded_frame
the picture in the bitstream
static av_cold int v410_encode_init(AVCodecContext *avctx)
#define AV_PIX_FMT_YUV444P10
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
int reference
is this picture used as reference The values for this are the same as the MpegEncContext.picture_structure variable, that is 1->top field, 2->bottom field, 3->frame/both fields.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
int flags
A combination of AV_PKT_FLAG values.
AVFrame * avcodec_alloc_frame(void)
Allocate an AVFrame and set its fields to default values.
enum AVPictureType pict_type
Picture type of the frame, see ?_TYPE below.
int width
picture width / height.
int ff_alloc_packet(AVPacket *avpkt, int size)
Check AVPacket size and/or allocate data.
int linesize[AV_NUM_DATA_POINTERS]
Size, in bytes, of the data for each picture/channel plane.
main external API structure.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
common internal api header.
common internal and external API header
#define AVERROR_INVALIDDATA
static int v410_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet)
int key_frame
1 -> keyframe, 0-> not
static av_cold int v410_encode_close(AVCodecContext *avctx)
AVPixelFormat
Pixel format.
This structure stores compressed data.