MythTV  master
Macros | Functions | Variables
color.c File Reference
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "libavutil/mem.h"
#include "libavutil/cpu.h"
#include "color.h"
Include dependency graph for color.c:

Go to the source code of this file.

Macros

#define C_YUV420_YUYV()
 
#define C_YUYV_YUV420()
 

Functions

static void yv12_to_yuy2_c (const unsigned char *y_src, int y_src_pitch, const unsigned char *u_src, int u_src_pitch, const unsigned char *v_src, int v_src_pitch, unsigned char *yuy2_map, int yuy2_pitch, int width, int height, int progressive)
 
static void yuy2_to_yv12_c (const unsigned char *yuy2_map, int yuy2_pitch, unsigned char *y_dst, int y_dst_pitch, unsigned char *u_dst, int u_dst_pitch, unsigned char *v_dst, int v_dst_pitch, int width, int height)
 
static void vfilter_chroma_332_packed422_scanline_c (uint8_t *output, int width, uint8_t *m, uint8_t *t, uint8_t *b)
 
void init_yuv_conversion (void)
 
void apply_chroma_filter (uint8_t *data, int stride, int width, int height)
 

Variables

void(* yv12_to_yuy2 )(const unsigned char *y_src, int y_src_pitch, const unsigned char *u_src, int u_src_pitch, const unsigned char *v_src, int v_src_pitch, unsigned char *yuy2_map, int yuy2_pitch, int width, int height, int progressive)
 
void(* yuy2_to_yv12 )(const unsigned char *yuy2_map, int yuy2_pitch, unsigned char *y_dst, int y_dst_pitch, unsigned char *u_dst, int u_dst_pitch, unsigned char *v_dst, int v_dst_pitch, int width, int height)
 
void(* vfilter_chroma_332_packed422_scanline )(uint8_t *output, int width, uint8_t *m, uint8_t *t, uint8_t *b)
 

Macro Definition Documentation

◆ C_YUV420_YUYV

#define C_YUV420_YUYV ( )
Value:
*p_line1++ = *p_y1++; *p_line2++ = *p_y2++; \
*p_line1++ = *p_u; *p_line2++ = (*p_u++ + *p_u2++)>>1; \
*p_line1++ = *p_y1++; *p_line2++ = *p_y2++; \
*p_line1++ = *p_v; *p_line2++ = (*p_v++ + *p_v2++)>>1;

Definition at line 59 of file color.c.

◆ C_YUYV_YUV420

#define C_YUYV_YUV420 ( )
Value:
*p_y1++ = *p_line1++; *p_y2++ = *p_line2++; \
*p_u++ = (*p_line1++ + *p_line2++)>>1; \
*p_y1++ = *p_line1++; *p_y2++ = *p_line2++; \
*p_v++ = (*p_line1++ + *p_line2++)>>1;

Definition at line 374 of file color.c.

Function Documentation

◆ yv12_to_yuy2_c()

static void yv12_to_yuy2_c ( const unsigned char *  y_src,
int  y_src_pitch,
const unsigned char *  u_src,
int  u_src_pitch,
const unsigned char *  v_src,
int  v_src_pitch,
unsigned char *  yuy2_map,
int  yuy2_pitch,
int  width,
int  height,
int  progressive 
)
static

Definition at line 71 of file color.c.

Referenced by init_yuv_conversion().

◆ yuy2_to_yv12_c()

static void yuy2_to_yv12_c ( const unsigned char *  yuy2_map,
int  yuy2_pitch,
unsigned char *  y_dst,
int  y_dst_pitch,
unsigned char *  u_dst,
int  u_dst_pitch,
unsigned char *  v_dst,
int  v_dst_pitch,
int  width,
int  height 
)
static

Definition at line 381 of file color.c.

Referenced by init_yuv_conversion().

◆ vfilter_chroma_332_packed422_scanline_c()

static void vfilter_chroma_332_packed422_scanline_c ( uint8_t *  output,
int  width,
uint8_t *  m,
uint8_t *  t,
uint8_t *  b 
)
static

Definition at line 589 of file color.c.

Referenced by init_yuv_conversion().

◆ init_yuv_conversion()

void init_yuv_conversion ( void  )

Definition at line 606 of file color.c.

Referenced by GreedyHDeintFilter().

◆ apply_chroma_filter()

void apply_chroma_filter ( uint8_t *  data,
int  stride,
int  width,
int  height 
)

Definition at line 628 of file color.c.

Referenced by GreedyHDeint().

Variable Documentation

◆ yv12_to_yuy2

void(* yv12_to_yuy2) (const unsigned char *y_src, int y_src_pitch, const unsigned char *u_src, int u_src_pitch, const unsigned char *v_src, int v_src_pitch, unsigned char *yuy2_map, int yuy2_pitch, int width, int height, int progressive)

Definition at line 43 of file color.c.

Referenced by GreedyHDeint(), and init_yuv_conversion().

◆ yuy2_to_yv12

void(* yuy2_to_yv12) (const unsigned char *yuy2_map, int yuy2_pitch, unsigned char *y_dst, int y_dst_pitch, unsigned char *u_dst, int u_dst_pitch, unsigned char *v_dst, int v_dst_pitch, int width, int height)

Definition at line 50 of file color.c.

Referenced by GreedyHDeint(), and init_yuv_conversion().

◆ vfilter_chroma_332_packed422_scanline

void(* vfilter_chroma_332_packed422_scanline) (uint8_t *output, int width, uint8_t *m, uint8_t *t, uint8_t *b)

Definition at line 56 of file color.c.

Referenced by apply_chroma_filter(), and init_yuv_conversion().