Lines Matching defs:avctx
30 static av_cold int decode_init(AVCodecContext *avctx)
32 avctx->pix_fmt = AV_PIX_FMT_GBRP10;
33 avctx->bits_per_raw_sample = 10;
38 static int decode_frame(AVCodecContext *avctx, AVFrame *pic,
43 int aligned_width = FFALIGN(avctx->width,
44 avctx->codec_id == AV_CODEC_ID_R10K ? 1 : 64);
46 int r10 = (avctx->codec_tag & 0xFFFFFF) == MKTAG('r', '1', '0', 0);
47 int le = avctx->codec_tag == MKTAG('R', '1', '0', 'k') &&
48 avctx->extradata_size >= 12 && !memcmp(&avctx->extradata[4], "DpxE", 4) &&
49 !avctx->extradata[11];
51 if (avpkt->size < 4 * aligned_width * avctx->height) {
52 av_log(avctx, AV_LOG_ERROR, "packet too small\n");
56 if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
65 for (h = 0; h < avctx->height; h++) {
69 for (w = 0; w < avctx->width; w++) {
72 if (avctx->codec_id == AV_CODEC_ID_AVRP || r10 || le) {
77 if (avctx->codec_id == AV_CODEC_ID_R210) {
94 src += aligned_width - avctx->width;