32 if (avctx->
width & 1) {
49 int aligned_width = ((avctx->
width + 47) / 48) * 48;
50 int stride = aligned_width * 8 / 3;
60 y = (uint16_t*)pic->
data[0];
61 u = (uint16_t*)pic->
data[1];
62 v = (uint16_t*)pic->
data[2];
70 *
b++ = (val >> 10) & 0x3FF; \
71 *c++ = (val >> 20) & 0x3FF; \
74 for (h = 0; h < avctx->
height; h++) {
75 const uint32_t *src = (
const uint32_t*)psrc;
77 for (w = 0; w < avctx->
width - 5; w += 6) {
83 if (w < avctx->
width - 1) {
89 if (w < avctx->
width - 3) {
90 *u++ = (val >> 10) & 0x3FF;
91 *y++ = (val >> 20) & 0x3FF;
95 *y++ = (val >> 10) & 0x3FF;
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
memory handling functions
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static av_cold int decode_init(AVCodecContext *avctx)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define READ_PIXELS(a, b, c)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#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.
common internal API header
enum AVPictureType pict_type
Picture type of the frame.
int width
picture width / height.
Libavcodec external API header.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
main external API structure.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
#define AV_PIX_FMT_YUV422P10
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
common internal api header.
int key_frame
1 -> keyframe, 0-> not
This structure stores compressed data.