/hardware/qcom/display/msm8226/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 214 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local 217 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 218 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags() 223 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 317 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) { in isSupportedForMDPComp() argument 318 private_handle_t *hnd = (private_handle_t *)layer->handle; in isSupportedForMDPComp() 319 if((has90Transform(layer) and (not isRotationDoable(ctx, hnd))) || in isSupportedForMDPComp() 320 (not isValidDimension(ctx,layer)) in isSupportedForMDPComp() 328 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument 329 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension() [all …]
|
D | hwc_dump_layers.cpp | 221 hwc_layer_1_t *layer = &hwLayers[layerIndex]; in logLayer() local 222 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in logLayer() 223 hwc_rect_t displayFrame = layer->displayFrame; in logLayer() 224 size_t numHwcRects = layer->visibleRegionScreen.numRects; in logLayer() 225 hwc_rect_t const *hwcRects = layer->visibleRegionScreen.rects; in logLayer() 226 private_handle_t *hnd = (private_handle_t *)layer->handle; in logLayer() 255 (layer->compositionType == HWC_FRAMEBUFFER)? "Framebuffer(GPU)": in logLayer() 256 (layer->compositionType == HWC_OVERLAY)? "Overlay": in logLayer() 257 (layer->compositionType == HWC_BACKGROUND)? "Background":"???", in logLayer() 259 (layer->transform == 0)? "ROT_0": in logLayer() [all …]
|
D | hwc_fbupdate.cpp | 74 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in prepareAndValidate() local 75 mModeOn = prepare(ctx, list, layer->displayFrame, fbZorder) && in prepareAndValidate() 90 hwc_layer_1_t *layer, in preRotateExtDisplay() argument 101 ctx->mLayerRotMap[mDpy]->add(layer, mRot); in preRotateExtDisplay() 133 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in configure() local 138 layer = &list->hwLayers[extOnlyLayerIndex]; in configure() 139 layer->compositionType = HWC_OVERLAY; in configure() 149 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in configure() 171 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in configure() 172 hwc_rect_t displayFrame = layer->displayFrame; in configure() [all …]
|
D | hwc_copybit.cpp | 315 hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i]; in prepare() local 316 if (layer->planeAlpha != 0xFF) in prepare() 318 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in prepare() 320 if (layer->transform & HAL_TRANSFORM_ROT_90) { in prepare() 327 dst_h = layer->displayFrame.bottom - layer->displayFrame.top; in prepare() 328 dst_w = layer->displayFrame.right - layer->displayFrame.left; in prepare() 522 hwc_layer_1_t *layer = &list->hwLayers[mDirtyLayerIndex]; in draw() local 524 clear(renderBuffer,layer->dirtyRect); in draw() 526 clear(renderBuffer,layer->displayFrame); in draw() 599 hwc_layer_1_t *layer = &list->hwLayers[i]; in drawOverlap() local [all …]
|
D | hwc_utils.cpp | 685 bool isDownscaleRequired(hwc_layer_1_t const* layer) { in isDownscaleRequired() argument 686 hwc_rect_t displayFrame = layer->displayFrame; in isDownscaleRequired() 687 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in isDownscaleRequired() 699 bool needsScaling(hwc_layer_1_t const* layer) { in needsScaling() argument 701 hwc_rect_t displayFrame = layer->displayFrame; in needsScaling() 702 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in needsScaling() 716 bool needsScalingWithSplit(hwc_context_t* ctx, hwc_layer_1_t const* layer, in needsScalingWithSplit() argument 727 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in needsScalingWithSplit() 728 hwc_rect_t displayFrame = layer->displayFrame; in needsScalingWithSplit() 729 private_handle_t *hnd = (private_handle_t *)layer->handle; in needsScalingWithSplit() [all …]
|
D | hwc_mdpcomp.h | 147 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer, 154 virtual int configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, 194 bool isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer); 203 bool isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer); 230 bool isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer); 269 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer, 282 virtual int configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, 307 virtual bool acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, 311 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer, 324 virtual int configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, [all …]
|
/hardware/samsung_slsi/exynos5/libhwc/ |
D | hwc.cpp | 234 static bool is_transformed(const hwc_layer_1_t &layer) in is_transformed() argument 236 return layer.transform != 0; in is_transformed() 239 static bool is_rotated(const hwc_layer_1_t &layer) in is_rotated() argument 241 return (layer.transform & HAL_TRANSFORM_ROT_90) || in is_rotated() 242 (layer.transform & HAL_TRANSFORM_ROT_180); in is_rotated() 245 static bool is_scaled(const hwc_layer_1_t &layer) in is_scaled() argument 247 return WIDTH(layer.displayFrame) != WIDTH(layer.sourceCrop) || in is_scaled() 248 HEIGHT(layer.displayFrame) != HEIGHT(layer.sourceCrop); in is_scaled() 349 static bool is_x_aligned(const hwc_layer_1_t &layer, int format) in is_x_aligned() argument 357 return (layer.displayFrame.left % pixel_alignment) == 0 && in is_x_aligned() [all …]
|
/hardware/intel/img/hwcomposer/common/base/ |
D | HwcLayer.cpp | 55 HwcLayer::HwcLayer(int index, hwc_layer_1_t *layer) in HwcLayer() argument 59 mLayer(layer), in HwcLayer() 236 bool HwcLayer::update(hwc_layer_1_t *layer) in update() argument 239 mLayer = layer; in update() 244 mPlane->setPosition(layer->displayFrame.left, in update() 245 layer->displayFrame.top, in update() 246 layer->displayFrame.right - layer->displayFrame.left, in update() 247 layer->displayFrame.bottom - layer->displayFrame.top); in update() 248 mPlane->setSourceCrop(layer->sourceCropf.left, in update() 249 layer->sourceCropf.top, in update() [all …]
|
D | HwcLayerList.cpp | 51 hwc_layer_1_t& layer = *(hwcLayer->getLayer()); in checkSupported() local 60 if (layer.flags & HWC_SKIP_LAYER) { in checkSupported() 65 if (layer.handle == 0) { in checkSupported() 118 hwc_layer_1_t& layer = *(hwcLayer->getLayer()); in checkRgbOverlaySupported() local 127 if (layer.flags & HWC_SKIP_LAYER) { in checkRgbOverlaySupported() 132 if (layer.handle == 0) { in checkRgbOverlaySupported() 180 hwc_layer_1_t& layer = *(hwcLayer->getLayer()); in checkCursorSupported() local 189 if (layer.flags & HWC_SKIP_LAYER) { in checkCursorSupported() 194 if (!(layer.flags & HWC_IS_CURSOR_LAYER)) { in checkCursorSupported() 204 if (layer.handle == 0) { in checkCursorSupported() [all …]
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 205 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local 208 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 209 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags() 214 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 308 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) { in isSupportedForMDPComp() argument 309 private_handle_t *hnd = (private_handle_t *)layer->handle; in isSupportedForMDPComp() 310 if((not isYuvBuffer(hnd) and has90Transform(layer)) or in isSupportedForMDPComp() 311 (not isValidDimension(ctx,layer)) in isSupportedForMDPComp() 319 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument 320 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension() [all …]
|
D | hwc_dump_layers.cpp | 221 hwc_layer_1_t *layer = &hwLayers[layerIndex]; in logLayer() local 222 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in logLayer() 223 hwc_rect_t displayFrame = layer->displayFrame; in logLayer() 224 size_t numHwcRects = layer->visibleRegionScreen.numRects; in logLayer() 225 hwc_rect_t const *hwcRects = layer->visibleRegionScreen.rects; in logLayer() 226 private_handle_t *hnd = (private_handle_t *)layer->handle; in logLayer() 255 (layer->compositionType == HWC_FRAMEBUFFER)? "Framebuffer(GPU)": in logLayer() 256 (layer->compositionType == HWC_OVERLAY)? "Overlay": in logLayer() 257 (layer->compositionType == HWC_BACKGROUND)? "Background":"???", in logLayer() 259 (layer->transform == 0)? "ROT_0": in logLayer() [all …]
|
D | hwc_copybit.cpp | 177 hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i]; in prepare() local 178 if (layer->planeAlpha != 0xFF) in prepare() 180 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in prepare() 182 if (layer->transform & HAL_TRANSFORM_ROT_90) { in prepare() 189 dst_h = layer->displayFrame.bottom - layer->displayFrame.top; in prepare() 190 dst_w = layer->displayFrame.right - layer->displayFrame.left; in prepare() 311 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local 316 if(layer->flags & HWC_SKIP_HWC_COMPOSITION){ in draw() 352 int CopyBit::drawLayerUsingCopybit(hwc_context_t *dev, hwc_layer_1_t *layer, in drawLayerUsingCopybit() argument 362 private_handle_t *hnd = (private_handle_t *)layer->handle; in drawLayerUsingCopybit() [all …]
|
D | hwc_fbupdate.cpp | 67 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in prepareAndValidate() local 68 mModeOn = prepare(ctx, list, layer->displayFrame, fbZorder) && in prepareAndValidate() 83 hwc_layer_1_t *layer, in preRotateExtDisplay() argument 94 ctx->mLayerRotMap[mDpy]->add(layer, mRot); in preRotateExtDisplay() 127 hwc_layer_1_t *layer = &list->hwLayers[list->numHwLayers - 1]; in configure() local 132 layer = &list->hwLayers[extOnlyLayerIndex]; in configure() 133 layer->compositionType = HWC_OVERLAY; in configure() 143 pipeSpecs.needsScaling = qhwc::needsScaling(layer); in configure() 165 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in configure() 166 hwc_rect_t displayFrame = layer->displayFrame; in configure() [all …]
|
D | hwc_utils.cpp | 698 bool isDownscaleRequired(hwc_layer_1_t const* layer) { in isDownscaleRequired() argument 699 hwc_rect_t displayFrame = layer->displayFrame; in isDownscaleRequired() 700 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in isDownscaleRequired() 712 bool needsScaling(hwc_layer_1_t const* layer) { in needsScaling() argument 714 hwc_rect_t displayFrame = layer->displayFrame; in needsScaling() 715 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in needsScaling() 729 bool needsScalingWithSplit(hwc_context_t* ctx, hwc_layer_1_t const* layer, in needsScalingWithSplit() argument 740 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in needsScalingWithSplit() 741 hwc_rect_t displayFrame = layer->displayFrame; in needsScalingWithSplit() 742 private_handle_t *hnd = (private_handle_t *)layer->handle; in needsScalingWithSplit() [all …]
|
D | hwc_mdpcomp.h | 144 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer, 151 virtual int configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, 189 bool isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer); 198 bool isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer); 225 bool isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer); 263 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer, 276 virtual int configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, 301 virtual bool acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, 305 virtual int configure(hwc_context_t *ctx, hwc_layer_1_t *layer, 318 virtual int configure4k2kYuv(hwc_context_t *ctx, hwc_layer_1_t *layer, [all …]
|
/hardware/qcom/display/msm8974/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 169 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local 172 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 173 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags() 176 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 244 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) { in isSupportedForMDPComp() argument 245 private_handle_t *hnd = (private_handle_t *)layer->handle; in isSupportedForMDPComp() 246 if((not isYuvBuffer(hnd) and has90Transform(layer)) or in isSupportedForMDPComp() 247 (not isValidDimension(ctx,layer)) in isSupportedForMDPComp() 255 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument 257 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension() [all …]
|
D | hwc_utils.cpp | 303 bool needsScaling(hwc_context_t* ctx, hwc_layer_1_t const* layer, in needsScaling() argument 307 hwc_rect_t displayFrame = layer->displayFrame; in needsScaling() 308 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in needsScaling() 309 trimLayer(ctx, dpy, layer->transform, sourceCrop, displayFrame); in needsScaling() 322 bool isAlphaScaled(hwc_context_t* ctx, hwc_layer_1_t const* layer, in isAlphaScaled() argument 324 if(needsScaling(ctx, layer, dpy) && isAlphaPresent(layer)) { in isAlphaScaled() 330 bool isAlphaPresent(hwc_layer_1_t const* layer) { in isAlphaPresent() argument 331 private_handle_t *hnd = (private_handle_t *)layer->handle; in isAlphaPresent() 377 hwc_layer_1_t const* layer = &list->hwLayers[i]; in setListStats() local 378 private_handle_t *hnd = (private_handle_t *)layer->handle; in setListStats() [all …]
|
D | hwc_copybit.cpp | 176 hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i]; in prepare() local 177 if ((layer->transform & (HAL_TRANSFORM_FLIP_H | in prepare() 179 ((layer->displayFrame.bottom - layer->displayFrame.top) % 16 || in prepare() 180 (layer->displayFrame.right - layer->displayFrame.left) % 16)) in prepare() 182 if (layer->planeAlpha != 0xFF) in prepare() 277 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local 310 int CopyBit::drawLayerUsingCopybit(hwc_context_t *dev, hwc_layer_1_t *layer, in drawLayerUsingCopybit() argument 320 private_handle_t *hnd = (private_handle_t *)layer->handle; in drawLayerUsingCopybit() 338 src.handle = (native_handle_t *)layer->handle; in drawLayerUsingCopybit() 346 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in drawLayerUsingCopybit() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_svc_layercontext.c | 18 int layer; in vp9_init_layer_context() local 30 for (layer = 0; layer < layer_end; ++layer) { in vp9_init_layer_context() 31 LAYER_CONTEXT *const lc = &cpi->svc.layer_context[layer]; in vp9_init_layer_context() 48 lc->target_bandwidth = oxcf->ts_target_bitrate[layer] * 1000; in vp9_init_layer_context() 51 lc->target_bandwidth = oxcf->ss_target_bitrate[layer] * 1000; in vp9_init_layer_context() 68 int layer; in vp9_update_layer_context_change_config() local 78 for (layer = 0; layer < layer_end; ++layer) { in vp9_update_layer_context_change_config() 79 LAYER_CONTEXT *const lc = &cpi->svc.layer_context[layer]; in vp9_update_layer_context_change_config() 83 lc->target_bandwidth = oxcf->ts_target_bitrate[layer] * 1000; in vp9_update_layer_context_change_config() 85 lc->target_bandwidth = oxcf->ss_target_bitrate[layer] * 1000; in vp9_update_layer_context_change_config() [all …]
|
/hardware/qcom/display/msm8960/libhwcomposer/ |
D | hwc_mdpcomp.cpp | 151 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local 154 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 155 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags() 159 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags() 267 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument 269 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension() 279 hwc_rect_t crop = layer->sourceCrop; in isValidDimension() 280 hwc_rect_t dst = layer->displayFrame; in isValidDimension() 284 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform); in isValidDimension() 407 hwc_layer_1_t* layer = &list->hwLayers[i]; in isFullFrameDoable() local [all …]
|
D | hwc_utils.cpp | 361 bool needsScaling(hwc_layer_1_t const* layer) { in needsScaling() argument 364 hwc_rect_t displayFrame = layer->displayFrame; in needsScaling() 365 hwc_rect_t sourceCrop = layer->sourceCrop; in needsScaling() 379 bool isAlphaScaled(hwc_layer_1_t const* layer) { in isAlphaScaled() argument 380 if(needsScaling(layer) && isAlphaPresent(layer)) { in isAlphaScaled() 386 bool isAlphaPresent(hwc_layer_1_t const* layer) { in isAlphaPresent() argument 387 private_handle_t *hnd = (private_handle_t *)layer->handle; in isAlphaPresent() 435 hwc_layer_1_t const* layer = &list->hwLayers[i]; in setListStats() local 436 private_handle_t *hnd = (private_handle_t *)layer->handle; in setListStats() 451 if(layer->transform & HWC_TRANSFORM_ROT_90) in setListStats() [all …]
|
/hardware/ti/omap4-aah/hwc/ |
D | rgz_2d.c | 103 static void rgz_get_src_rect(hwc_layer_1_t* layer, blit_rect_t *subregion_rect, blit_rect_t *res_re… 107 static int rgz_hwc_scaled(hwc_layer_1_t *layer); 172 hwc_layer_1_t *layer = hregion->rgz_layers[l]->hwc_layer; in get_layer_ops() local 173 IMG_native_handle_t *h = (IMG_native_handle_t *)layer->handle; in get_layer_ops() 174 if ((layer->blending != HWC_BLENDING_PREMULT) || is_OPAQUE(h->iFormat)) in get_layer_ops() 308 static void rgz_get_displayframe_rect(hwc_layer_1_t *layer, blit_rect_t *res_rect) in rgz_get_displayframe_rect() argument 310 res_rect->left = layer->displayFrame.left; in rgz_get_displayframe_rect() 311 res_rect->top = layer->displayFrame.top; in rgz_get_displayframe_rect() 312 res_rect->bottom = layer->displayFrame.bottom; in rgz_get_displayframe_rect() 313 res_rect->right = layer->displayFrame.right; in rgz_get_displayframe_rect() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/ |
D | svc_encodeframe.c | 78 int layer; member 671 if (is_keyframe && si->layer == 0) { in calculate_enc_frame_flags() 678 if (si->layer == 0) { in calculate_enc_frame_flags() 681 if (si->layer == si->layers - 1) { in calculate_enc_frame_flags() 691 if (si->layer == 0) { in calculate_enc_frame_flags() 700 if (si->layer == 0) { in calculate_enc_frame_flags() 709 if (2 * si->layers - SVC_REFERENCE_FRAMES <= si->layer) { in calculate_enc_frame_flags() 710 if (si->layer == 0) { in calculate_enc_frame_flags() 718 if (si->layer == 0) { in calculate_enc_frame_flags() 736 int layer, in vpx_svc_get_layer_resolution() argument [all …]
|
/hardware/ti/omap4xxx/hwc/ |
D | hwc.c | 256 hwc_layer_1_t *layer = &list->hwLayers[i]; in dump_set_info() local 257 IMG_native_handle_t *handle = (IMG_native_handle_t *)layer->handle; in dump_set_info() 258 dump_printf(&log, "%p:%s,", handle, layer->compositionType == HWC_OVERLAY ? "DSS" : "SGX"); in dump_set_info() 259 if ((layer->flags & HWC_SKIP_LAYER) || !handle) { in dump_set_info() 263 if (layer->flags & HWC_HINT_CLEAR_FB) in dump_set_info() 266 if (layer->transform) in dump_set_info() 267 dump_printf(&log, "~%d", layer->transform); in dump_set_info() 313 static int scaled(hwc_layer_1_t *layer) in scaled() argument 315 int w = WIDTH(layer->sourceCrop); in scaled() 316 int h = HEIGHT(layer->sourceCrop); in scaled() [all …]
|
/hardware/intel/common/wrs_omxil_core/utils/src/ |
D | audio_parser.c | 300 int layer, int extraslot) in mp3_calculate_frame_length() argument 306 if (layer < 1 || layer > 3) in mp3_calculate_frame_length() 310 one_slot_length = one_slot_length_table[layer]; in mp3_calculate_frame_length() 314 coeff = bitrate_coeff_table[layer]; in mp3_calculate_frame_length() 319 if (layer == 3) in mp3_calculate_frame_length() 335 int *version, int *layer, int *crc, int *bitrate, in mp3_header_parse() argument 348 if (!version || !layer || !crc || !bitrate || !frequency || in mp3_header_parse() 393 *layer = layer_index; in mp3_header_parse() 400 *layer, header.padding_bit); in mp3_header_parse()
|