Lines Matching defs:avctx

36     void (*decode_frame)(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb);
39 static void decode_ca4i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
41 SheerVideoContext *s = avctx->priv_data;
50 for (y = 0; y < avctx->height; y++) {
52 for (x = 0; x < avctx->width; x++) {
61 for (x = 0; x < avctx->width; x++) {
83 static void decode_ca4p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
85 SheerVideoContext *s = avctx->priv_data;
95 for (x = 0; x < avctx->width; x++) {
104 for (x = 0; x < avctx->width; x++) {
124 for (y = 1; y < avctx->height; y++) {
126 for (x = 0; x < avctx->width; x++) {
141 for (x = 0; x < avctx->width; x++) {
171 static void decode_ybr10i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
173 SheerVideoContext *s = avctx->priv_data;
181 for (y = 0; y < avctx->height; y++) {
183 for (x = 0; x < avctx->width; x++) {
191 for (x = 0; x < avctx->width; x++) {
210 static void decode_ybr10(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
212 SheerVideoContext *s = avctx->priv_data;
221 for (x = 0; x < avctx->width; x++) {
229 for (x = 0; x < avctx->width; x++) {
246 for (y = 1; y < avctx->height; y++) {
248 for (x = 0; x < avctx->width; x++) {
261 for (x = 0; x < avctx->width; x++) {
286 static void decode_yry10i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
288 SheerVideoContext *s = avctx->priv_data;
296 for (y = 0; y < avctx->height; y++) {
298 for (x = 0; x < avctx->width; x += 2) {
307 for (x = 0; x < avctx->width; x += 2) {
328 static void decode_yry10(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
330 SheerVideoContext *s = avctx->priv_data;
339 for (x = 0; x < avctx->width; x += 2) {
348 for (x = 0; x < avctx->width; x += 2) {
367 for (y = 1; y < avctx->height; y++) {
369 for (x = 0; x < avctx->width; x += 2) {
383 for (x = 0; x < avctx->width; x += 2) {
411 static void decode_ca2i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
413 SheerVideoContext *s = avctx->priv_data;
422 for (y = 0; y < avctx->height; y++) {
424 for (x = 0; x < avctx->width; x += 2) {
435 for (x = 0; x < avctx->width; x += 2) {
461 static void decode_ca2p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
463 SheerVideoContext *s = avctx->priv_data;
473 for (x = 0; x < avctx->width; x += 2) {
484 for (x = 0; x < avctx->width; x += 2) {
508 for (y = 1; y < avctx->height; y++) {
510 for (x = 0; x < avctx->width; x += 2) {
527 for (x = 0; x < avctx->width; x += 2) {
563 static void decode_c82i(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
565 SheerVideoContext *s = avctx->priv_data;
574 for (y = 0; y < avctx->height; y += 1) {
576 for (x = 0; x < avctx->width; x += 2) {
587 for (x = 0; x < avctx->width; x += 2) {
613 static void decode_c82p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
615 SheerVideoContext *s = avctx->priv_data;
625 for (x = 0; x < avctx->width; x += 2) {
636 for (x = 0; x < avctx->width; x += 2) {
660 for (y = 1; y < avctx->height; y++) {
662 for (x = 0; x < avctx->width; x += 2) {
679 for (x = 0; x < avctx->width; x += 2) {
715 static void decode_ybyr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
717 SheerVideoContext *s = avctx->priv_data;
726 for (x = 0; x < avctx->width; x += 2) {
735 for (x = 0; x < avctx->width; x += 2) {
754 for (y = 1; y < avctx->height; y++) {
756 for (x = 0; x < avctx->width; x += 2) {
770 for (x = 0; x < avctx->width; x += 2) {
798 static void decode_byryi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
800 SheerVideoContext *s = avctx->priv_data;
809 for (x = 0; x < avctx->width; x += 2) {
818 for (x = 0; x < avctx->width; x += 2) {
837 for (y = 1; y < avctx->height; y++) {
839 for (x = 0; x < avctx->width; x += 2) {
853 for (x = 0; x < avctx->width; x += 2) {
872 static void decode_byry(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
874 SheerVideoContext *s = avctx->priv_data;
883 for (x = 0; x < avctx->width; x += 2) {
892 for (x = 0; x < avctx->width; x += 2) {
911 for (y = 1; y < avctx->height; y++) {
913 for (x = 0; x < avctx->width; x += 2) {
927 for (x = 0; x < avctx->width; x += 2) {
955 static void decode_ybri(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
957 SheerVideoContext *s = avctx->priv_data;
966 for (x = 0; x < avctx->width; x++) {
974 for (x = 0; x < avctx->width; x++) {
991 for (y = 1; y < avctx->height; y++) {
993 for (x = 0; x < avctx->width; x++) {
1006 for (x = 0; x < avctx->width; x++) {
1023 static void decode_ybr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1025 SheerVideoContext *s = avctx->priv_data;
1034 for (x = 0; x < avctx->width; x++) {
1042 for (x = 0; x < avctx->width; x++) {
1059 for (y = 1; y < avctx->height; y++) {
1061 for (x = 0; x < avctx->width; x++) {
1074 for (x = 0; x < avctx->width; x++) {
1099 static void decode_aybri(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1101 SheerVideoContext *s = avctx->priv_data;
1111 for (x = 0; x < avctx->width; x++) {
1120 for (x = 0; x < avctx->width; x++) {
1140 for (y = 1; y < avctx->height; y++) {
1142 for (x = 0; x < avctx->width; x++) {
1157 for (x = 0; x < avctx->width; x++) {
1177 static void decode_aybr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1179 SheerVideoContext *s = avctx->priv_data;
1189 for (x = 0; x < avctx->width; x++) {
1198 for (x = 0; x < avctx->width; x++) {
1218 for (y = 1; y < avctx->height; y++) {
1220 for (x = 0; x < avctx->width; x++) {
1235 for (x = 0; x < avctx->width; x++) {
1265 static void decode_argxi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1267 SheerVideoContext *s = avctx->priv_data;
1276 for (y = 0; y < avctx->height; y++) {
1278 for (x = 0; x < avctx->width; x++) {
1287 for (x = 0; x < avctx->width; x++) {
1309 static void decode_argx(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1311 SheerVideoContext *s = avctx->priv_data;
1321 for (x = 0; x < avctx->width; x++) {
1330 for (x = 0; x < avctx->width; x++) {
1350 for (y = 1; y < avctx->height; y++) {
1352 for (x = 0; x < avctx->width; x++) {
1367 for (x = 0; x < avctx->width; x++) {
1397 static void decode_rgbxi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1399 SheerVideoContext *s = avctx->priv_data;
1407 for (y = 0; y < avctx->height; y++) {
1409 for (x = 0; x < avctx->width; x++) {
1417 for (x = 0; x < avctx->width; x++) {
1436 static void decode_rgbx(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1438 SheerVideoContext *s = avctx->priv_data;
1447 for (x = 0; x < avctx->width; x++) {
1455 for (x = 0; x < avctx->width; x++) {
1472 for (y = 1; y < avctx->height; y++) {
1474 for (x = 0; x < avctx->width; x++) {
1487 for (x = 0; x < avctx->width; x++) {
1512 static void decode_argbi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1514 SheerVideoContext *s = avctx->priv_data;
1520 for (x = 0; x < avctx->width; x++) {
1529 for (x = 0; x < avctx->width; x++) {
1545 for (y = 1; y < avctx->height; y++) {
1547 for (x = 0; x < avctx->width; x++) {
1562 for (x = 0; x < avctx->width; x++) {
1578 static void decode_argb(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1580 SheerVideoContext *s = avctx->priv_data;
1586 for (x = 0; x < avctx->width; x++) {
1595 for (x = 0; x < avctx->width; x++) {
1611 for (y = 1; y < avctx->height; y++) {
1613 for (x = 0; x < avctx->width; x++) {
1628 for (x = 0; x < avctx->width; x++) {
1654 static void decode_rgbi(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1656 SheerVideoContext *s = avctx->priv_data;
1662 for (x = 0; x < avctx->width; x++) {
1670 for (x = 0; x < avctx->width; x++) {
1684 for (y = 1; y < avctx->height; y++) {
1686 for (x = 0; x < avctx->width; x++) {
1699 for (x = 0; x < avctx->width; x++) {
1713 static void decode_rgb(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
1715 SheerVideoContext *s = avctx->priv_data;
1721 for (x = 0; x < avctx->width; x++) {
1729 for (x = 0; x < avctx->width; x++) {
1743 for (y = 1; y < avctx->height; y++) {
1745 for (x = 0; x < avctx->width; x++) {
1758 for (x = 0; x < avctx->width; x++) {
1804 static int decode_frame(AVCodecContext *avctx, AVFrame *p,
1807 SheerVideoContext *s = avctx->priv_data;
1822 av_log(avctx, AV_LOG_DEBUG, "format: %s\n", av_fourcc2str(format));
1825 avctx->pix_fmt = AV_PIX_FMT_RGB0;
1830 avctx->pix_fmt = AV_PIX_FMT_RGB0;
1835 avctx->pix_fmt = AV_PIX_FMT_GBRAP10;
1840 avctx->pix_fmt = AV_PIX_FMT_GBRAP10;
1845 avctx->pix_fmt = AV_PIX_FMT_GBRP10;
1850 avctx->pix_fmt = AV_PIX_FMT_GBRP10;
1855 avctx->pix_fmt = AV_PIX_FMT_ARGB;
1860 avctx->pix_fmt = AV_PIX_FMT_ARGB;
1867 avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
1874 avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
1881 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
1888 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
1893 avctx->pix_fmt = AV_PIX_FMT_YUV444P10;
1898 avctx->pix_fmt = AV_PIX_FMT_YUV444P10;
1903 avctx->pix_fmt = AV_PIX_FMT_YUVA444P10;
1908 avctx->pix_fmt = AV_PIX_FMT_YUVA444P10;
1913 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
1918 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
1923 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
1928 avctx->pix_fmt = AV_PIX_FMT_YUVA422P;
1933 avctx->pix_fmt = AV_PIX_FMT_YUVA422P;
1938 avctx->pix_fmt = AV_PIX_FMT_YUV422P10;
1943 avctx->pix_fmt = AV_PIX_FMT_YUV422P10;
1948 avctx->pix_fmt = AV_PIX_FMT_YUVA422P10;
1953 avctx->pix_fmt = AV_PIX_FMT_YUVA422P10;
1958 avpriv_request_sample(avctx, "unsupported format: 0x%X", format);
1970 if (avpkt->size < 20 + avctx->width * avctx->height / 16) {
1971 av_log(avctx, AV_LOG_ERROR, "Input packet too small\n");
1978 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0)
1984 s->decode_frame(avctx, p, &gb);
1991 static av_cold int decode_end(AVCodecContext *avctx)
1993 SheerVideoContext *s = avctx->priv_data;