comparison avienc.c @ 128:45633cd5518a libavformat

* introducing new public interface in imgconvert.c + avcodec_get_pix_fmt converts textual representation of pixel format into the actual id. Complements avcodec_get_pix_fmt_name. + avpicture_layout serializes given picture into a flat array. Complements avpicture_fill. * adding a new option -pix_fmt to the ffmpeg, in order to control pixel format for the codecs that do support it, like rawvideo, for example. * reducing complexity of the rawvideo codec by splitting it in two and making it more reliable via hooking up to the avpicture_layout. Plus adding new FourCC as described here: http://www.fourcc.org * A tiny fix for avienc.c that makes avih and video strf consistent regarding codec FourCC.
author romansh
date Wed, 07 May 2003 19:01:45 +0000
parents a1ad0f8b75bf
children 720bab5adc70
comparison
equal deleted inserted replaced
127:b7ce3b3dc171 128:45633cd5518a
209 put_le32(pb, enc->height); 209 put_le32(pb, enc->height);
210 put_le16(pb, 1); /* planes */ 210 put_le16(pb, 1); /* planes */
211 211
212 put_le16(pb, enc->bits_per_sample ? enc->bits_per_sample : 24); /* depth */ 212 put_le16(pb, enc->bits_per_sample ? enc->bits_per_sample : 24); /* depth */
213 /* compression type */ 213 /* compression type */
214 put_le32(pb, for_asf ? codec_get_asf_tag(tags, enc->codec_id) : codec_get_tag(tags, enc->codec_id)); 214 put_le32(pb, for_asf ? codec_get_asf_tag(tags, enc->codec_id) : enc->codec_tag);
215 put_le32(pb, enc->width * enc->height * 3); 215 put_le32(pb, enc->width * enc->height * 3);
216 put_le32(pb, 0); 216 put_le32(pb, 0);
217 put_le32(pb, 0); 217 put_le32(pb, 0);
218 put_le32(pb, 0); 218 put_le32(pb, 0);
219 put_le32(pb, 0); 219 put_le32(pb, 0);