Lines Matching defs:avctx
47 static av_cold int decode_init(AVCodecContext *avctx)
49 YLCContext *s = avctx->priv_data;
51 avctx->pix_fmt = AV_PIX_FMT_YUYV422;
86 static int build_vlc(AVCodecContext *avctx, VLC *vlc, const uint32_t *table)
135 av_log(avctx, AV_LOG_ERROR, "count overflow\n");
281 static int decode_frame(AVCodecContext *avctx, AVFrame *p,
286 YLCContext *s = avctx->priv_data;
307 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
332 ret = build_vlc(avctx, &s->vlc[i], s->table);
346 for (y = 0; y < avctx->height; y++) {
347 memset(dst, 0, avctx->width * 2);
352 for (y = 0; y < avctx->height; y++) {
353 for (x = 0; x < avctx->width * 2 && y < avctx->height;) {
369 if (x + incr >= avctx->width * 2) {
370 int iy = ((x + incr) / (avctx->width * 2));
371 x = (x + incr) % (avctx->width * 2);
398 for (x = 0; x < avctx->width * 2; x += 4) {
408 for (y = 1; y < avctx->height; y++) {
419 for (x = 4; x < avctx->width * 2; x += 4) {
440 static av_cold int decode_end(AVCodecContext *avctx)
442 YLCContext *s = avctx->priv_data;