summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/encoder.cc10
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);