diff options
author | deva <deva> | 2005-05-02 09:18:13 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-02 09:18:13 +0000 |
commit | caa613c4a19736ed56731e3786847bd5ee37dc11 (patch) | |
tree | 85c9ad5998b3c2b1e435c52200acb682ff372e66 /src/encoder.cc | |
parent | 96e869ac64acad8f6329f2d0333cc7f7f95436b0 (diff) |
Fixed decoding problem in snapshot thumbnails.
Diffstat (limited to 'src/encoder.cc')
-rw-r--r-- | src/encoder.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/encoder.cc b/src/encoder.cc index ff09cdb..d1d9362 100644 --- a/src/encoder.cc +++ b/src/encoder.cc @@ -25,6 +25,10 @@ */ /* * $Log$ + * Revision 1.20 2005/05/02 09:18:13 deva + * + * Fixed decoding problem in snapshot thumbnails. + * * Revision 1.19 2005/05/01 12:23:20 deva * * Now snapshot is read from frame queue. @@ -210,7 +214,7 @@ void Encoder::getScreenshot(unsigned char *rgb) pixels[ 1 ] = NULL; pixels[ 2 ] = NULL; - pitches[ 0 ] = 720 * 3; + pitches[ 0 ] = 720 * 4; pitches[ 1 ] = 0; pitches[ 2 ] = 0; @@ -226,17 +230,15 @@ void Encoder::getScreenshot(unsigned char *rgb) dv_parse_header(decoder, frame->data); - /* decoder->system = e_dv_system_625_50; // PAL lines, PAL framerate decoder->sampling = e_dv_sample_422; // 4 bytes y, 2 bytes u, 2 bytes v decoder->std = e_dv_std_iec_61834; decoder->num_dif_seqs = 12; - */ // libdv img decode to rgb dv_decode_full_frame(decoder, frame->data, - e_dv_color_rgb, + e_dv_color_bgr0, pixels, pitches); |