filehandle.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int rewrite_paramsets (ImageParameters *p_Img, InputParameters *p_Inp)
int start_sequence (ImageParameters *p_Img, InputParameters *p_Inp)
int terminate_sequence (ImageParameters *p_Img, InputParameters *p_Inp)
int write_PPS (ImageParameters *p_Img, InputParameters *p_Inp, int len, int PPS_id)


Detailed Description

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

Definition in file filehandle.h.


Function Documentation

int rewrite_paramsets ( ImageParameters p_Img,
InputParameters p_Inp 
)

This function opens the output files and generates the appropriate sequence header.

As a sequence header, here we write both sequence and picture parameter sets. As soon as IDR is implemented, this should go to the IDR part, as both parsets have to be transmitted as part of an IDR. An alternative may be to consider this function the IDR start function.

Lets write now the Picture Parameter sets. Output will be equal to the total number of bits spend here.

Definition at line 130 of file filehandle.c.

References FreeNALU(), GenerateSEImessage_NALU(), GenerateSeq_parameter_set_NALU(), inp_par_enc::SendAUD, Write_AUD_NALU(), and write_PPS().

Referenced by write_non_vcl_nalu().

Here is the call graph for this function:

int start_sequence ( ImageParameters p_Img,
InputParameters p_Inp 
)

This function opens the output files and generates the appropriate sequence header.

As a sequence header, here we write both sequence and picture parameter sets. As soon as IDR is implemented, this should go to the IDR part, as both parsets have to be transmitted as part of an IDR. An alternative may be to consider this function the IDR start function.

Lets write now the Picture Parameter sets. Output will be equal to the total number of bits spend here.

Definition at line 69 of file filehandle.c.

References error(), errortext, ET_SIZE, FreeNALU(), GenerateSEImessage_NALU(), GenerateSeq_parameter_set_NALU(), inp_par_enc::of_mode, OpenAnnexbFile(), OpenRTPFile(), inp_par_enc::outfile, PAR_OF_ANNEXB, PAR_OF_RTP, inp_par_enc::SendAUD, Write_AUD_NALU(), write_PPS(), WriteAnnexbNALU(), and WriteRTPNALU().

Referenced by init_encoder().

Here is the call graph for this function:

int terminate_sequence ( ImageParameters p_Img,
InputParameters p_Inp 
)

This function terminates the sequence and closes the output files.

Definition at line 176 of file filehandle.c.

References CloseAnnexbFile(), CloseRTPFile(), error(), errortext, ET_SIZE, inp_par_enc::of_mode, PAR_OF_ANNEXB, and PAR_OF_RTP.

Referenced by free_encoder_memory().

Here is the call graph for this function:

int write_PPS ( ImageParameters p_Img,
InputParameters p_Inp,
int  len,
int  PPS_id 
)

This function generates and writes the PPS.

Definition at line 51 of file filehandle.c.

References FreeNALU(), and GeneratePic_parameter_set_NALU().

Referenced by rewrite_paramsets(), start_sequence(), and write_non_vcl_nalu().

Here is the call graph for this function:


Documentation generated with DoxyGen