From: Anuradha S. <asu...@us...> - 2007-12-11 02:27:31
|
Update of /cvsroot/dirac/compress/doc/documentation/code/programmers_guide In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv19830/doc/documentation/code/programmers_guide Modified Files: common_data_structs.htm encoder_api_example.htm Log Message: Spec conformance - Made the source scanning format into a uint parameter rather than a boolean flag. Index: common_data_structs.htm =================================================================== RCS file: /cvsroot/dirac/compress/doc/documentation/code/programmers_guide/common_data_structs.htm,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** common_data_structs.htm 28 Sep 2007 15:46:08 -0000 1.6 --- common_data_structs.htm 11 Dec 2007 02:27:22 -0000 1.7 *************** *** 355,359 **** This structure defines the parameters common to the video sequence to be encoded by the encoder or the sequence in the bitstream being ! decoded. Some Source parameters like width, height, chroma, interlace, topfieldfirst, frame_Rate, are necessary for encoding/decoding the video sequence. The rest of the --- 355,359 ---- This structure defines the parameters common to the video sequence to be encoded by the encoder or the sequence in the bitstream being ! decoded. Some Source parameters like width, height, chroma, source_sampling, topfieldfirst, frame_Rate, are necessary for encoding/decoding the video sequence. The rest of the *************** *** 370,374 **** style="font-family: Courier;"><span style="font-family: Courier;"> int chroma_width;</span><br style="font-family: Courier;"><span style="font-family: Courier;"> int chroma_height;</span><br ! style="font-family: Courier;"><span style="font-family: Courier;"> int interlace;</span><br style="font-family: Courier;"><span style="font-family: Courier;"> int topfieldfirst;</span><br style="font-family: Courier;"><span style="font-family: Courier;"> dirac_frame_rate_t frame_rate;</span><br --- 370,374 ---- style="font-family: Courier;"><span style="font-family: Courier;"> int chroma_width;</span><br style="font-family: Courier;"><span style="font-family: Courier;"> int chroma_height;</span><br ! style="font-family: Courier;"><span style="font-family: Courier;"> unsigned int source_sampling;</span><br style="font-family: Courier;"><span style="font-family: Courier;"> int topfieldfirst;</span><br style="font-family: Courier;"><span style="font-family: Courier;"> dirac_frame_rate_t frame_rate;</span><br *************** *** 407,411 **** frame. Calculated from the values of height and chroma.<br> </dd> ! <dt><i>interlace</i></dt> <dd>Determines whether the input/decoded sequence is interlaced or progressive. It --- 407,411 ---- frame. Calculated from the values of height and chroma.<br> </dd> ! <dt><i>source_sampling</i></dt> <dd>Determines whether the input/decoded sequence is interlaced or progressive. It Index: encoder_api_example.htm =================================================================== RCS file: /cvsroot/dirac/compress/doc/documentation/code/programmers_guide/encoder_api_example.htm,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** encoder_api_example.htm 5 Sep 2007 13:20:25 -0000 1.3 --- encoder_api_example.htm 11 Dec 2007 02:27:22 -0000 1.4 *************** *** 100,104 **** style="font-family: Courier New,Courier,monospace; font-weight: bold;"> /* override some of the preset defaults */<br> /* Set quality factor to 7.5 */<br> enc_ctx.enc_params.qf = 7.5;</span><br style="font-family: Courier New,Courier,monospace; font-weight: bold;"><span ! style="font-family: Courier New,Courier,monospace; font-weight: bold;"> <br> /* set input video type to progressive video */<br> enc_ctx.source_params.interlace = 0;</span><br style="font-family: Courier New,Courier,monospace; font-weight: bold;"><span style="font-family: Courier New,Courier,monospace; font-weight: bold;"> <br> /* set flag to retrieve locally decoded frames from encoder */<br> enc_ctx.decode_flag = 1;</span><br --- 100,104 ---- style="font-family: Courier New,Courier,monospace; font-weight: bold;"> /* override some of the preset defaults */<br> /* Set quality factor to 7.5 */<br> enc_ctx.enc_params.qf = 7.5;</span><br style="font-family: Courier New,Courier,monospace; font-weight: bold;"><span ! style="font-family: Courier New,Courier,monospace; font-weight: bold;"> <br> /* set input video type to progressive video */<br> enc_ctx.source_params.source_sampling = 0;</span><br style="font-family: Courier New,Courier,monospace; font-weight: bold;"><span style="font-family: Courier New,Courier,monospace; font-weight: bold;"> <br> /* set flag to retrieve locally decoded frames from encoder */<br> enc_ctx.decode_flag = 1;</span><br |