[trunk] Remove simple warnings about comments, missing case in switch statement
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Sun, 2 Mar 2014 10:16:54 +0000 (10:16 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Sun, 2 Mar 2014 10:16:54 +0000 (10:16 +0000)
src/lib/openjp2/j2k.c
src/lib/openjp2/jp2.c
src/lib/openjp2/tcd.c

index 4d988df57714cbd5c080a43085503748419ff2f4..4ec94195ffdac14d1fea625123a0018c4a9bb6cb 100644 (file)
@@ -5862,6 +5862,9 @@ void opj_j2k_set_cinema_parameters(opj_cparameters_t *parameters, opj_image_t *i
     case OPJ_CINEMA4K_24:
         parameters->cp_rsiz = OPJ_CINEMA4K;
         break;
+    case OPJ_OFF:
+        assert(0);
+        break;
     }
 
     /* No tiling */
@@ -9781,7 +9784,6 @@ OPJ_BOOL opj_j2k_write_first_tile_part (opj_j2k_t *p_j2k,
                                                                         opj_stream_private_t *p_stream,
                                                                         struct opj_event_mgr * p_manager )
 {
-//        OPJ_UINT32 compno;
         OPJ_UINT32 l_nb_bytes_written = 0;
         OPJ_UINT32 l_current_nb_bytes_written;
         OPJ_BYTE * l_begin_data = 00;
@@ -9812,19 +9814,21 @@ OPJ_BOOL opj_j2k_write_first_tile_part (opj_j2k_t *p_j2k,
         p_total_data_size -= l_current_nb_bytes_written;
 
         if (l_cp->m_specific_param.m_enc.m_cinema == 0) {
-//                for (compno = 1; compno < p_j2k->m_private_image->numcomps; compno++) {
-//                        l_current_nb_bytes_written = 0;
-//                        opj_j2k_write_coc_in_memory(p_j2k,compno,p_data,&l_current_nb_bytes_written,p_manager);
-//                        l_nb_bytes_written += l_current_nb_bytes_written;
-//                        p_data += l_current_nb_bytes_written;
-//                        p_total_data_size -= l_current_nb_bytes_written;
-
-//                        l_current_nb_bytes_written = 0;
-//                        opj_j2k_write_qcc_in_memory(p_j2k,compno,p_data,&l_current_nb_bytes_written,p_manager);
-//                        l_nb_bytes_written += l_current_nb_bytes_written;
-//                        p_data += l_current_nb_bytes_written;
-//                        p_total_data_size -= l_current_nb_bytes_written;
-//                }
+#if 0
+                for (compno = 1; compno < p_j2k->m_private_image->numcomps; compno++) {
+                        l_current_nb_bytes_written = 0;
+                        opj_j2k_write_coc_in_memory(p_j2k,compno,p_data,&l_current_nb_bytes_written,p_manager);
+                        l_nb_bytes_written += l_current_nb_bytes_written;
+                        p_data += l_current_nb_bytes_written;
+                        p_total_data_size -= l_current_nb_bytes_written;
+
+                        l_current_nb_bytes_written = 0;
+                        opj_j2k_write_qcc_in_memory(p_j2k,compno,p_data,&l_current_nb_bytes_written,p_manager);
+                        l_nb_bytes_written += l_current_nb_bytes_written;
+                        p_data += l_current_nb_bytes_written;
+                        p_total_data_size -= l_current_nb_bytes_written;
+                }
+#endif
 
                 if (l_cp->tcps[p_j2k->m_current_tile_number].numpocs) {
                         l_current_nb_bytes_written = 0;
index d59ec43403f1f9dd46d81b7e13901b17361aa9b5..92a3726aa8ded0e455ef4f67ac92549c41969a11 100644 (file)
@@ -823,7 +823,7 @@ static OPJ_BOOL opj_jp2_check_color(opj_image_t *image, opj_jp2_color_t *color,
        return OPJ_TRUE;
 }
 
-// file9.jp2
+/* file9.jp2 */
 void opj_jp2_apply_pclr(opj_image_t *image, opj_jp2_color_t *color)
 {
        opj_image_comp_t *old_comps, *new_comps;
index 4388819aca37cdbcbbba3352c20baa98aea9c55a..f44d3e9648c8712ca01a42dde974d69483ed292c 100644 (file)
@@ -1006,7 +1006,7 @@ OPJ_BOOL opj_tcd_code_block_enc_allocate (opj_tcd_cblk_enc_t * p_code_block)
 {
         if (! p_code_block->data) {
 
-                p_code_block->data = (OPJ_BYTE*) opj_malloc(OPJ_J2K_DEFAULT_CBLK_DATA_SIZE); //why +1 ?
+                p_code_block->data = (OPJ_BYTE*) opj_malloc(OPJ_J2K_DEFAULT_CBLK_DATA_SIZE); /*why +1 ?*/
                 if(! p_code_block->data) {
                         return OPJ_FALSE;
                 }