Lines Matching defs:depth
96 int depth;
798 rect->nb_colors = (1 << region->depth);
807 switch (region->depth) {
825 memcpy(rect->data[1], clut_table, (1 << region->depth) * sizeof(*clut_table));
916 if (region->depth == 8)
918 else if (region->depth == 4)
928 if (region->depth < 4) {
929 av_log(avctx, AV_LOG_ERROR, "4-bit pixel string in %d-bit region!\n", region->depth);
933 if (region->depth == 8)
943 if (region->depth < 8) {
944 av_log(avctx, AV_LOG_ERROR, "8-bit pixel string in %d-bit region!\n", region->depth);
1054 int entry_id, depth , full_range;
1094 depth = (*buf) & 0xe0;
1096 if (depth == 0) {
1097 av_log(avctx, AV_LOG_ERROR, "Invalid clut depth 0x%x!\n", *buf);
1123 if (!!(depth & 0x80) + !!(depth & 0x40) + !!(depth & 0x20) > 1) {
1124 ff_dlog(avctx, "More than one bit level marked: %x\n", depth);
1129 if (depth & 0x80 && entry_id < 4)
1131 else if (depth & 0x40 && entry_id < 16)
1133 else if (depth & 0x20)
1210 region->depth = 1 << (((*buf++) >> 2) & 7);
1211 if (region->depth < 2 || region->depth > 8) {
1212 av_log(avctx, AV_LOG_ERROR, "region depth %d is invalid\n", region->depth);
1213 region->depth= 4;
1217 if (region->depth == 8) {
1223 if (region->depth == 4)