Lines Matching defs:avctx

56     AVCodecContext *avctx;
91 av_log(s->avctx, AV_LOG_ERROR, "motion offset < 0 (%d)\n", motion_offset);
94 av_log(s->avctx, AV_LOG_ERROR, "motion offset above limit (%d >= %d)\n",
99 av_log(s->avctx, AV_LOG_ERROR, "Invalid decode type, corrupted header?\n");
137 ff_tlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y);
163 ff_tlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y);
184 ff_tlog(s->avctx, "motion byte = %d, (x, y) = (%d, %d)\n", B, x, y);
197 ff_tlog(s->avctx, "motion bytes = %d, %d\n", x, y);
204 av_log(s->avctx, AV_LOG_ERROR, "Help! Mystery opcode 0x6 seen\n");
217 av_log(s->avctx, AV_LOG_ERROR, "too little data for opcode 0x7\n");
261 av_log(s->avctx, AV_LOG_ERROR, "too little data for opcode 0x8\n");
338 av_log(s->avctx, AV_LOG_ERROR, "too little data for opcode 0x9\n");
409 av_log(s->avctx, AV_LOG_ERROR, "too little data for opcode 0xA\n");
507 av_log(s->avctx, AV_LOG_ERROR, "too little data for opcode 0xD\n");
572 ff_tlog(s->avctx, "motion bytes = %d, %d\n", x, y);
931 if (s->avctx->frame_number > 2)
966 s->upper_motion_limit_offset = (s->avctx->height - 8) * frame->linesize[0]
967 + (s->avctx->width - 8) * (1 + s->is_16bpp);
973 for (y = 0; y < s->avctx->height; y += 8) {
974 for (x = 0; x < s->avctx->width; x += 8) {
977 ff_tlog(s->avctx,
988 av_log(s->avctx, AV_LOG_DEBUG,
1039 s->upper_motion_limit_offset = (s->avctx->height - 8) * frame->linesize[0]
1040 + (s->avctx->width - 8) * (1 + s->is_16bpp);
1050 for (y = 0; y < s->avctx->height; y += 8) {
1051 for (x = 0; x < s->avctx->width; x += 8) {
1071 for (y = 0; y < s->avctx->height; y += 8) {
1072 for (x = 0; x < s->avctx->width; x += 8) {
1090 if (s->avctx->frame_number)
1100 av_log(s->avctx, AV_LOG_DEBUG,
1125 s->upper_motion_limit_offset = (s->avctx->height - 8) * frame->linesize[0]
1126 + (s->avctx->width - 8) * (1 + s->is_16bpp);
1129 for (y = 0; y < s->avctx->height; y += 8) {
1130 for (x = 0; x < s->avctx->width; x += 8) {
1135 ff_tlog(s->avctx,
1149 av_log(s->avctx, AV_LOG_ERROR, "decode problem on frame %d, @ block (%d, %d)\n",
1150 s->avctx->frame_number, x, y);
1156 av_log(s->avctx, AV_LOG_DEBUG,
1162 static av_cold int ipvideo_decode_init(AVCodecContext *avctx)
1164 IpvideoContext *s = avctx->priv_data;
1166 s->avctx = avctx;
1168 s->is_16bpp = avctx->bits_per_coded_sample == 16;
1169 avctx->pix_fmt = s->is_16bpp ? AV_PIX_FMT_RGB555 : AV_PIX_FMT_PAL8;
1171 ff_hpeldsp_init(&s->hdsp, avctx->flags);
1182 s->cur_decode_frame->width = avctx->width;
1183 s->prev_decode_frame->width = avctx->width;
1184 s->cur_decode_frame->height = avctx->height;
1185 s->prev_decode_frame->height = avctx->height;
1186 s->cur_decode_frame->format = avctx->pix_fmt;
1187 s->prev_decode_frame->format = avctx->pix_fmt;
1192 static int ipvideo_decode_frame(AVCodecContext *avctx, AVFrame *frame,
1197 IpvideoContext *s = avctx->priv_data;
1211 ret = ff_get_buffer(avctx, s->cur_decode_frame, 0);
1215 ret = ff_get_buffer(avctx, s->prev_decode_frame, 0);
1234 av_log(avctx, AV_LOG_ERROR, "Decoding map for format 0x06\n");
1239 av_log(avctx, AV_LOG_ERROR, "Skip map for format 0x06\n");
1244 av_log(avctx, AV_LOG_ERROR, "Video format 0x06 does not support 16bpp movies\n");
1249 s->decoding_map_size = ((s->avctx->width / 8) * (s->avctx->height / 8)) * 2;
1264 av_log(avctx, AV_LOG_ERROR, "Empty decoding map for format 0x10\n");
1269 av_log(avctx, AV_LOG_ERROR, "Empty skip map for format 0x10\n");
1274 av_log(avctx, AV_LOG_ERROR, "Video format 0x10 does not support 16bpp movies\n");
1289 av_log(avctx, AV_LOG_ERROR, "Empty decoding map for format 0x11\n");
1294 av_log(avctx, AV_LOG_ERROR, "Skip map for format 0x11\n");
1307 av_log(avctx, AV_LOG_ERROR, "Frame type 0x%02X unsupported\n", frame_format);
1312 av_log(avctx, AV_LOG_ERROR, "Invalid IP packet size\n");
1316 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
1320 frame->palette_has_changed = ff_copy_palette(s->pal, avpkt, avctx);
1347 static av_cold int ipvideo_decode_end(AVCodecContext *avctx)
1349 IpvideoContext *s = avctx->priv_data;