Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
quantChroma.c
Package: chapter15.rar [view]
Upload User: hjq518
Upload Date: 2021-12-09
Package Size: 5084k
Code Size: 2k
Category:
Audio program
Development Platform:
Visual C++
- /*!
- *************************************************************************************
- * file quantChroma.c
- *
- * brief
- * Quantization initialization function for Chroma blocks
- *
- * author
- * Main contributors (see contributors.h for copyright, address and affiliation details)
- * - Alexis Michael Tourapis <alexismt@ieee.org>
- *
- *************************************************************************************
- */
- #include "contributors.h"
- #include "global.h"
- #include "quant4x4.h"
- #include "quantChroma.h"
- /*!
- ************************************************************************
- * brief
- * Quantization initialization function
- *
- ************************************************************************
- */
- void init_quant_Chroma(InputParameters *params, ImageParameters *img, Slice *currSlice)
- {
- if (params->UseRDOQuant == 1 && params->RDOQ_CR == 1)
- {
- quant_ac4x4cr = quant_ac4x4_trellis;
- if ( currSlice->symbol_mode == CABAC )
- {
- if (params->yuv_format == YUV422)
- quant_dc_cr = quant_dc4x2_trellis;
- else
- quant_dc_cr = quant_dc2x2_trellis;
- }
- else
- {
- if (params->yuv_format == YUV422)
- quant_dc_cr = quant_dc4x2_normal;
- else
- quant_dc_cr = quant_dc2x2_normal;
- }
- }
- else if (params->UseRDOQuant == 1 || (!img->AdaptiveRounding))
- {
- quant_ac4x4cr = quant_ac4x4_normal;
- if (params->yuv_format == YUV422)
- quant_dc_cr = quant_dc4x2_normal;
- else
- quant_dc_cr = quant_dc2x2_normal;
- }
- else
- {
- quant_ac4x4cr = quant_ac4x4_around;
- if (params->yuv_format == YUV422)
- quant_dc_cr = quant_dc4x2_around;
- else
- quant_dc_cr = quant_dc2x2_around;
- }
- }