Lines Matching refs:depth
207 int depth;
824 rect->nb_colors = (1 << region->depth);
833 switch (region->depth) {
847 memcpy(rect->pict.data[1], clut_table, (1 << region->depth) * sizeof(uint32_t));
910 if (region->depth == 8)
912 else if (region->depth == 4)
922 if (region->depth < 4) {
923 av_log(avctx, AV_LOG_ERROR, "4-bit pixel string in %d-bit region!\n", region->depth);
927 if (region->depth == 8)
937 if (region->depth < 8) {
938 av_log(avctx, AV_LOG_ERROR, "8-bit pixel string in %d-bit region!\n", region->depth);
1041 int entry_id, depth , full_range;
1081 depth = (*buf) & 0xe0;
1083 if (depth == 0) {
1084 av_log(avctx, AV_LOG_ERROR, "Invalid clut depth 0x%x!\n", *buf);
1111 if (!!(depth & 0x80) + !!(depth & 0x40) + !!(depth & 0x20) > 1) {
1112 av_dlog(avctx, "More than one bit level marked: %x\n", depth);
1117 if (depth & 0x80)
1119 else if (depth & 0x40)
1121 else if (depth & 0x20)
1178 region->depth = 1 << (((*buf++) >> 2) & 7);
1179 if(region->depth<2 || region->depth>8){
1180 av_log(avctx, AV_LOG_ERROR, "region depth %d is invalid\n", region->depth);
1181 region->depth= 4;
1185 if (region->depth == 8) {
1191 if (region->depth == 4)
1389 switch (region->depth) {