output.c File Reference

Output an image and Trance support. More...

#include "contributors.h"
#include "global.h"
#include "image.h"
#include "input.h"

Include dependency graph for output.c:

Go to the source code of this file.

Functions

void write_out_picture (StorablePicture *p, int p_out)
void img2buf (imgpel **imgX, unsigned char *buf, int size_x, int size_y, int symbol_size_in_bytes, int crop_left, int crop_right, int crop_top, int crop_bottom)
void write_picture (StorablePicture *p, int p_out, int real_structure)
void init_out_buffer ()
void uninit_out_buffer ()
void clear_picture (StorablePicture *p)
void write_unpaired_field (FrameStore *fs, int p_out)
void flush_direct_output (int p_out)
void write_stored_frame (FrameStore *fs, int p_out)
void direct_output (StorablePicture *p, int p_out)
void direct_output_paff (StorablePicture *p, int p_out)

Variables

FrameStore * out_buffer


Detailed Description

Output an image and Trance support.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file output.c.


Function Documentation

void clear_picture ( StorablePicture *  p  ) 

void direct_output ( StorablePicture *  p,
int  p_out 
)

Directly output a picture without storing it in the DPB. Fields are buffered before they are written to the file.

Parameters:
p Picture for output
p_out Output file

Definition at line 455 of file output.c.

References frame_store::bottom_field, dpb_combine_field_yuv(), flush_direct_output(), frame_store::frame, free_storable_picture(), frame_store::is_used, storable_picture::structure, frame_store::top_field, and write_picture().

Referenced by direct_output_paff(), and store_picture_in_dpb().

Here is the call graph for this function:

void direct_output_paff ( StorablePicture *  p,
int  p_out 
)

For adaptive frame/field coding remove dangling top field from direct output frame version instead.

Parameters:
p Picture for output
p_out Output file

Definition at line 511 of file output.c.

References frame_store::bottom_field, direct_output(), frame_store::frame, free_storable_picture(), frame_store::is_used, and frame_store::top_field.

Referenced by replace_top_pic_with_frame().

Here is the call graph for this function:

void flush_direct_output ( int  p_out  ) 

Write out unpaired fields from output buffer.

Parameters:
p_out Output file

Definition at line 402 of file output.c.

References frame_store::bottom_field, frame_store::frame, free_storable_picture(), frame_store::is_used, frame_store::top_field, and write_unpaired_field().

Referenced by direct_output(), and write_stored_frame().

Here is the call graph for this function:

void img2buf ( imgpel **  imgX,
unsigned char *  buf,
int  size_x,
int  size_y,
int  symbol_size_in_bytes,
int  crop_left,
int  crop_right,
int  crop_top,
int  crop_bottom 
)

Convert image plane to temporary buffer for file writing.

Parameters:
imgX Pointer to image plane
buf Buffer for file output
size_x horizontal size
size_y vertical size
symbol_size_in_bytes number of bytes used per pel
crop_left pixels to crop from left
crop_right pixels to crop from right
crop_top pixels to crop from top
crop_bottom pixels to crop from bottom

Definition at line 48 of file output.c.

References error(), and testEndian().

Referenced by write_out_picture().

Here is the call graph for this function:

void init_out_buffer ( void   ) 

Initialize output buffer for direct output.

Definition at line 282 of file output.c.

References alloc_frame_store().

Referenced by init_encoder().

Here is the call graph for this function:

void uninit_out_buffer ( void   ) 

Uninitialize output buffer for direct output.

Definition at line 293 of file output.c.

References free_frame_store().

Referenced by free_encoder_memory().

Here is the call graph for this function:

void write_out_picture ( StorablePicture *  p,
int  p_out 
)

Writes out a storable picture.

Parameters:
p Picture to be written
p_out Output file

void write_picture ( StorablePicture *  p,
int  p_out,
int  real_structure 
)

Writes out a storable picture without doing any output modifications.

Parameters:
p Picture to be written
p_out Output file
real_structure real picture structure

Definition at line 159 of file output.c.

References write_out_picture().

Referenced by direct_output(), write_stored_frame(), and write_unpaired_field().

Here is the call graph for this function:

void write_stored_frame ( FrameStore *  fs,
int  p_out 
)

Write a frame (from FrameStore).

Parameters:
fs FrameStore containing the frame
p_out Output file

Definition at line 426 of file output.c.

References flush_direct_output(), frame_store::frame, frame_store::is_output, frame_store::is_used, write_picture(), and write_unpaired_field().

Referenced by output_one_frame_from_dpb().

Here is the call graph for this function:

void write_unpaired_field ( FrameStore *  fs,
int  p_out 
)


Documentation generated with DoxyGen