TUT HEVC Encoder
Loading...
Searching...
No Matches
yuv_io.h File Reference
#include <stdio.h>
#include "global.h"
#include "kvazaar.h"
Include dependency graph for yuv_io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int yuv_io_read (FILE *file, unsigned input_width, unsigned input_height, unsigned from_bitdepth, unsigned to_bitdepth, kvz_picture *img_out, unsigned file_format)
 Read a single frame from a file.
 
int yuv_io_seek (FILE *file, unsigned frames, unsigned input_width, unsigned input_height, unsigned file_format)
 Seek forward in a YUV file.
 
int yuv_io_write (FILE *file, const kvz_picture *img, unsigned output_width, unsigned output_height)
 Write a single frame to a file.
 

Function Documentation

◆ yuv_io_read()

int yuv_io_read ( FILE * file,
unsigned in_width,
unsigned out_width,
unsigned in_bitdepth,
unsigned out_bitdepth,
kvz_picture * img_out,
unsigned file_format )

Read luma and chroma values from file. Extend pixels if the image buffer is larger than the input image.

Parameters
fileinput file
input_widthwidth of the input video in pixels
input_heightheight of the input video in pixels
img_outimage buffer
Returns
1 on success, 0 on failure
Here is the call graph for this function:
Here is the caller graph for this function:

◆ yuv_io_seek()

int yuv_io_seek ( FILE * file,
unsigned frames,
unsigned input_width,
unsigned input_height,
unsigned file_format )
Parameters
filethe input file
framesnumber of frames to seek
input_widthwidth of the input video in pixels
input_heightheight of the input video in pixels
Returns
1 on success, 0 on failure
Here is the call graph for this function:
Here is the caller graph for this function:

◆ yuv_io_write()

int yuv_io_write ( FILE * file,
const kvz_picture * img,
unsigned output_width,
unsigned output_height )
Parameters
fileoutput file
imgimage to output
output_widthwidth of the output in pixels
output_heightheight of the output in pixels
Returns
1 on success, 0 on failure
Here is the caller graph for this function: