Mercurial > libavcodec.hg
comparison dvbsub.c @ 2946:ac94d509884e libavcodec
dvbsub encoder, patch by Wolfram Gloger < wmglo AH dent POIS med POIS uni-muenchen POIS de >
Original thread:
Date: 8 Oct 2005 09:35:38 -0000
Subject: [Ffmpeg-devel] [PATCH] dvdsub encoder -- 2nd version
author | gpoirier |
---|---|
date | Mon, 14 Nov 2005 22:17:29 +0000 |
parents | 95c35706acbb |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2945:394ea2703387 | 2946:ac94d509884e |
---|---|
341 if (!s->hide_state) { | 341 if (!s->hide_state) { |
342 | 342 |
343 for (object_id = 0; object_id < h->num_rects; object_id++) { | 343 for (object_id = 0; object_id < h->num_rects; object_id++) { |
344 /* Object Data segment */ | 344 /* Object Data segment */ |
345 | 345 |
346 if (h->rects[region_id].nb_colors <= 4) { | 346 if (h->rects[object_id].nb_colors <= 4) { |
347 /* 2 bpp, some decoders do not support it correctly */ | 347 /* 2 bpp, some decoders do not support it correctly */ |
348 bpp_index = 0; | 348 bpp_index = 0; |
349 } else if (h->rects[region_id].nb_colors <= 16) { | 349 } else if (h->rects[object_id].nb_colors <= 16) { |
350 /* 4 bpp, standard encoding */ | 350 /* 4 bpp, standard encoding */ |
351 bpp_index = 1; | 351 bpp_index = 1; |
352 } else { | 352 } else { |
353 return -1; | 353 return -1; |
354 } | 354 } |