Go to the documentation of this file.
52 int min_stride = 2 * avctx->
width;
64 min_stride = (avctx->
width + 15) / 16 * 40;
73 if (
frame->interlaced_frame)
76 for (y = 0; y < avctx->
height; y++) {
78 if (
frame->interlaced_frame)
79 src_y = ((y&1)^
frame->top_field_first) ? y/2 : (y/2 + avctx->
height/2);
85 uint16_t *luma = (uint16_t*)&
frame->data[0][y*
frame->linesize[0]];
86 uint16_t *
cb = (uint16_t*)&
frame->data[1][y*
frame->linesize[1]];
87 uint16_t *
cr = (uint16_t*)&
frame->data[2][y*
frame->linesize[2]];
90 for (x = 0; x < 16 && x + 16*
block < avctx->
width; x++) {
91 int xd = x + 16*
block;
93 luma [xd] = (4*buf_src[2*x + 0]) + ((buf_src[32 + (x>>1)]>>4)&3);
95 luma [xd] = (4*buf_src[2*x + 0]) + (buf_src[32 + (x>>1)] &3);
96 cb[xd>>1] = (4*buf_src[2*x + 1]) + ((buf_src[32 + (x>>1)]>>2)&3);
97 cr[xd>>1] = (4*buf_src[2*x + 3]) + (buf_src[32 + (x>>1)]>>6);
static av_cold int m101_decode_init(AVCodecContext *avctx)
static double cb(void *priv, double x, double y)
This structure describes decoded (raw) audio or video data.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int m101_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
@ AV_PIX_FMT_YUYV422
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
@ AV_PICTURE_TYPE_I
Intra.
#define AV_PIX_FMT_YUV422P10
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
const char * name
Name of the codec implementation.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a frame
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32
main external API structure.
#define avpriv_request_sample(...)
This structure stores compressed data.
static double cr(void *priv, double x, double y)
int width
picture width / height.
The exact code depends on how similar the blocks are and how related they are to the block
#define AVERROR_INVALIDDATA
Invalid data found when processing input.