r1009: Move the dependencies to newer package names
[cinelerra_cv/mob.git] / mpeg2enc / writepic.c
blobd69e610992604afd05e0f81a0ba65a14a0b220df
1 /* writepic.c, write reconstructed pictures */
3 /* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */
5 /*
6 * Disclaimer of Warranty
8 * These software programs are available to the user without any license fee or
9 * royalty on an "as is" basis. The MPEG Software Simulation Group disclaims
10 * any and all warranties, whether express, implied, or statuary, including any
11 * implied warranties or merchantability or of fitness for a particular
12 * purpose. In no event shall the copyright-holder be liable for any
13 * incidental, punitive, or consequential damages of any kind whatsoever
14 * arising from the use of these programs.
16 * This disclaimer of warranty extends to the user of these programs and user's
17 * customers, employees, agents, transferees, successors, and assigns.
19 * The MPEG Software Simulation Group does not represent or warrant that the
20 * programs furnished hereunder are free of infringement of any third-party
21 * patents.
23 * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,
24 * are subject to royalty fees to patent holders. Many of these patents are
25 * general enough such that they are unavoidable regardless of implementation
26 * design.
30 #include <stdio.h>
31 #include <stdlib.h>
32 #include "colormodels.h"
33 #include "config.h"
34 #include "global.h"
36 void writeframe(int number, unsigned char *frame[])
38 int chrom_hsize, chrom_vsize;
39 char name[128];
40 FILE *fd;
42 if(!qt_output) return;
43 //printf("writeframe 1\n");
44 chrom_hsize = (chroma_format==CHROMA444) ? horizontal_size
45 : horizontal_size>>1;
47 chrom_vsize = (chroma_format!=CHROMA420) ? vertical_size
48 : vertical_size>>1;
50 quicktime_set_cmodel(qt_output, BC_YUV420P);
51 quicktime_encode_video(qt_output,
52 frame,
53 0);