Lines Matching refs:depth
56 int depth;
467 static void build_luma_lut(AVCodecContext *avctx, int depth)
470 int max = (1 << depth) - 1;
472 if (ctx->depth == depth)
474 ctx->depth = depth;
481 int w, int h, int depth)
494 else if (srcy[i] > ((1 << depth) - 1))
504 static void postprocess_chroma(AVFrame *frame, int w, int h, int depth)
512 const unsigned add = 1 << (depth - 1);
513 const unsigned shift = 16 - depth;
518 dstu[i] = av_clip_uintp2_c(add + srcu[i], depth) << shift;
519 dstv[i] = av_clip_uintp2_c(add + srcv[i], depth) << shift;
609 uint32_t pktsize, depth;
641 depth = bytestream2_get_be32(&ctx->gb);
642 if (depth < 8 || depth > 15) {
643 avpriv_request_sample(avctx, "Depth %d", depth);
647 build_luma_lut(avctx, depth);
687 postprocess_luma(avctx, p, ctx->w, ctx->h, ctx->depth);
688 postprocess_chroma(p, ctx->w >> 1, ctx->h >> 1, ctx->depth);